android - How to Display a picture from gallery -



android - How to Display a picture from gallery -

i have gallery (this gallery mixed embedded component in linerlayout) presenting thumbnails. want , whenever user clicks on of image picture should displayed in total screen. please help me regarding this.

you pass in image gallery , have display image.

looking @ gallery manifest:

<activity android:name="com.android.camera.imagegallery" android:label="@string/gallery_label" android:configchanges="orientation|keyboardhidden" android:icon="@drawable/ic_launcher_gallery"> <intent-filter> <action android:name="android.intent.action.view" /> <category android:name="android.intent.category.default" /> <data android:mimetype="vnd.android.cursor.dir/image" /> </intent-filter> </activity>

with info clear can pass in intent action_view , set info image, can uri "file:/". when starting intent may want startactivityforresult(), application can come you. refer gallery source code.

android layout gallery

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -