Android实现从选择本地视频和相片:Media Chooser
jopen
11年前
Media Chooser实现选择本地视频和相片,有两种模式,一种是文件夹选择模式,一种是文件选择模式。
Setup
Add following permission to your applications manifest file.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Add following code to the application node of your application's manifest file
<activity android:name="com.learnncode.mediachooser.activity.BucketHomeFragmentActivity" android:screenOrientation="portrait" > </activity> <activity android:name="com.learnncode.mediachooser.activity.HomeFragmentActivity" android:screenOrientation="portrait" > </activity>