1###################################### 2# Android Photopicker README 3###################################### 4 5Note: This photopicker app is currently under development, and is not 6(currently) being shipped with mediaprovider. You might be looking for: 7 8/packages/providers/MediaProvider/photopicker 9 10###################################### 11# To install for development / testing: 12###################################### 13 14Consider using photopicker_utils.sh for deploying/incremental installs/removing. 15 16Build a mediaprovider APEX which includes Photopicker. The initial deployment 17needs to be from the APEX to ensure Photopicker receives its certificate specific 18permissions. 19 20Incremental builds can be done by making the Photopicker target and directly 21installing the resulting APK. 22 23###################################### 24# Troubleshooting 25###################################### 26 27Launching ACTION_PICK_IMAGES or ACTION_GET_CONTENT should bring you into the new 28PhotopickerActivity. If not, try debugging the intents to see if the activity 29is getting picked up by Android: 30 31adb shell pm query-activities -a "android.intent.action.GET_CONTENT" -t "image/*" 32 33This should give a print out of all activities (and their respective priorities) 34that can handle this intent and com.android.photopicker.MainActivity should be 35in the list. If not, try the installation steps above again. (Be sure to reboot) 36 37 38###################################### 39# Testing 40###################################### 41To run the tests: 42 43atest PhotopickerTests 44 45Note: PhotopickerTests bundles the application code with the tests, so the 46app does not need to be installed first for the test suite to be run. The test 47suite will bring along all the code it needs. 48