GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - liuling07/PhotoPicker: An android library to pick photo from gallery

BranchesTags
Open more actions menu

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
gradle/wrapper
gradle/wrapper
 
 
photopicker
photopicker
 
 
sample
sample
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
PhotoPicker.iml
PhotoPicker.iml
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
photo-picker-sample01.png
photo-picker-sample01.png
 
 
photo-picker-sample02.png
photo-picker-sample02.png
 
 
photo-picker-sample03.png
photo-picker-sample03.png
 
 
sample.apk
sample.apk
 
 
sample.gif
sample.gif
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

PhotoPicker

An android library to pick photo from gallery

Sample

multi-selection mode

image

single-selection mode

image

image

gif

image

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

  • Blog:http://www.liuling123.com
  • Email:[email protected]、[email protected]

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.

About

An android library to pick photo from gallery

raw.githubusercontent.com/liuling07/PhotoPicker/master/sample.apk

Resources

Readme
Apache-2.0 license
Activity

Stars

330 stars

Watchers

21 watching

Forks

128 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.