Android custom image gallery with checkbox in grid to select multiple

I would like to reblog this post.

Vikas Patel's Blog

Some times we may require to select multiple images from gallery. So using the following method you will be able to select multiple images. Additionally it will also remove gallery app dependency.

It may not be sufficient method as I need to maintain two array in this activity, but it could vary on requirements. Please comment if you have any suggestion in code.

Main.xml

galleryitem.xml

AndroidCustomGalleryActivity.java

Download full source code:
Download

Update: need more features? see my open source project
Update: Please remove code that closes cursor. As this will not work in Android 4.0 and newer.

http://vikaskanani.wordpress.com/android-custom-gallery-and-instant-upload-project/

 

 

 

 

View original post

Advertisements

2 thoughts on “Android custom image gallery with checkbox in grid to select multiple

  1. Because i am using am creating an app to select any files in the gallery it may be image , video, or pdf kindly give some idea

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s