https://github.com/wordpress-mobile/mediapicker-android
MediaPicker is an Android Fragment that allows capture and selection of media assets from a variety of sources.
https://github.com/wordpress-mobile/mediapicker-android
Last synced: 11 months ago
JSON representation
MediaPicker is an Android Fragment that allows capture and selection of media assets from a variety of sources.
- Host: GitHub
- URL: https://github.com/wordpress-mobile/mediapicker-android
- Owner: wordpress-mobile
- License: gpl-2.0
- Created: 2015-01-07T23:05:27.000Z (about 11 years ago)
- Default Branch: trunk
- Last Pushed: 2021-12-03T03:52:53.000Z (about 4 years ago)
- Last Synced: 2025-03-24T07:50:45.344Z (11 months ago)
- Language: Java
- Homepage:
- Size: 303 KB
- Stars: 19
- Watchers: 2
- Forks: 4
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deprecated
Note: This library has been deprecated, support and maintainence will no longer be provided.
# MediaPicker
MediaPicker is an Android Fragment that allows capture and selection of media assets from a variety of sources.
# Features
* Select individual or multiple media items (image or video)
* Capture new media content during selection
* Configuration of which media content is presented; both media source and content type
* MediaSource interface to provide media from anywhere
## Usage
The MediaPicker library comes with two MediaSources for accessing media on device view the MediaStore.
The sample project is an example of how to configure the MediaPickerFragment to display different sets of media content (one for images, one for videos).
## Testing
Much of the functionality of the library is tested. You can run tests and generate a code coverage report by running the jacocoTestReport task.
[Robolectric][2] is used to unit test Android elements in isolation, please use this framework when writing new tests to keep them lightweight.
## Installation
The MediaPicker library is hosted on Maven Central. Example build.gradle dependency:
>dependencies {
compile 'org.wordpress:mediapicker:1.+'
}
## Author(s)
WordPress, mobile@automattic.com
## License(s)
MediaPicker is available under the GNU GPL v2 or MIT licenses.
## Apps that use this library
* [WordPress for Android][1]
[1]: https://github.com/wordpress-mobile/WordPress-Android
[2]: http://robolectric.org/