liuling07/PhotoPicker
À propos
Bibliothèque Android permettant de sélectionner des photos dans la galerie.
Développement web et applicatifProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalPhotoPicker
An android library to pick photo from gallery
Sample
multi-selection mode
single-selection mode

gif
Usage
Intent intent = new Intent(MainActivity.this, PhotoPickerActivity.class);
intent.putExtra(PhotoPickerActivity.EXTRA_SHOW_CAMERA, showCamera);
intent.putExtra(PhotoPickerActivity.EXTRA_SELECT_MODE, selectedMode);
intent.putExtra(PhotoPickerActivity.EXTRA_MAX_MUN, maxNum);
startActivityForResult(intent, PICK_PHOTO);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if(requestCode == PICK_PHOTO){
if(resultCode == RESULT_OK){
ArrayList<String> result = data.getStringArrayListExtra(PhotoPickerActivity.KEY_RESULT);
//do what you want to to.
}
}
}
About me
License
Copyright 2015 liuling
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Explorer des projets similaires
Chargement…