Wednesday, October 10, 2012

[android-developers] show an image in Android gallery via url

Is it possible to show the image from url by using the default android gallery app?

I can actually play the video from url by using the default android video player.

Below is the snippet of my code:

Intent intent=new Intent();
intent
.setDataAndType(Uri.parse(ImageUrl,"Image");
intent
.setClassName("com.google.andorid.gallery3d","com.android.gallery3d.app.Gallery");
startActivity
(intent);

I am sure that the ImageUrl is obtained correctly.

This intent can wake up the gallery app but can not play the image accordingly.

Please kindly let me know if you can figure it out.

: ) thanks in advance.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment