gapi Active Member Licensed User Longtime User Apr 13, 2012 #1 Hi all, anyone know how can show N images (.jpg) with default android behavior ? With scroller and zoom funcs ? I need to use some intent? tnx
Hi all, anyone know how can show N images (.jpg) with default android behavior ? With scroller and zoom funcs ? I need to use some intent? tnx
NJDude Expert Licensed User Longtime User Apr 13, 2012 #2 You can start by checking THIS example. Last edited: Apr 13, 2012 Upvote 0
gapi Active Member Licensed User Longtime User Apr 13, 2012 #3 thanks NJDude already knew him but for open three .jpg from scard, all I need is a classic viewer ... with intent would save a lot of lines of code or not ? Upvote 0
thanks NJDude already knew him but for open three .jpg from scard, all I need is a classic viewer ... with intent would save a lot of lines of code or not ?
NJDude Expert Licensed User Longtime User Apr 13, 2012 #4 If you just want an intent to open pictures then this is the one: B4X: Dim iIntent As Intent iIntent.Initialize(iIntent.ACTION_VIEW, "<PATH-TO-THE-PICTURE>") iIntent.SetType("image/jpeg") StartActivity(iIntent) You will have to add the path to the pictures. Upvote 0
If you just want an intent to open pictures then this is the one: B4X: Dim iIntent As Intent iIntent.Initialize(iIntent.ACTION_VIEW, "<PATH-TO-THE-PICTURE>") iIntent.SetType("image/jpeg") StartActivity(iIntent) You will have to add the path to the pictures.
gapi Active Member Licensed User Longtime User Apr 13, 2012 #5 great NJDude very strong these intent ... don't understand why they do not make more extensive use of them. What are the advantages and not ? tnx Upvote 0
great NJDude very strong these intent ... don't understand why they do not make more extensive use of them. What are the advantages and not ? tnx
gapi Active Member Licensed User Longtime User Apr 14, 2012 #6 NJDude said: If you just want an intent to open pictures then this is the one: B4X: Dim iIntent As Intent iIntent.Initialize(iIntent.ACTION_VIEW, "<PATH-TO-THE-PICTURE>") iIntent.SetType("image/jpeg") StartActivity(iIntent) You will have to add the path to the pictures. Click to expand... Can I limit viewer to 3 images (a.jpg;b.jpg;c.jpg) in folder ? Without view all files ? tnx Upvote 0
NJDude said: If you just want an intent to open pictures then this is the one: B4X: Dim iIntent As Intent iIntent.Initialize(iIntent.ACTION_VIEW, "<PATH-TO-THE-PICTURE>") iIntent.SetType("image/jpeg") StartActivity(iIntent) You will have to add the path to the pictures. Click to expand... Can I limit viewer to 3 images (a.jpg;b.jpg;c.jpg) in folder ? Without view all files ? tnx
NJDude Expert Licensed User Longtime User Apr 14, 2012 #7 If you want to limit it to 3 images then you will have to load the images's name and path to a List or ListView or something like that. Upvote 0
If you want to limit it to 3 images then you will have to load the images's name and path to a List or ListView or something like that.
gapi Active Member Licensed User Longtime User Apr 14, 2012 #8 NJDude said: If you want to limit it to 3 images then you will have to load the images's name and path to a List or ListView or something like that. Click to expand... But without intent ? Or with ? :sign0060: Upvote 0
NJDude said: If you want to limit it to 3 images then you will have to load the images's name and path to a List or ListView or something like that. Click to expand... But without intent ? Or with ? :sign0060:
NJDude Expert Licensed User Longtime User Apr 14, 2012 #9 Anyway you like it, if you want to use an intent you can do it. Upvote 0
gapi Active Member Licensed User Longtime User Apr 14, 2012 #10 mmm... with List don't work here code: B4X: Dim images As List images.Initialize images.Add(Main.RootImage & img1) images.Add(Main.RootImage & img2) images.Add(Main.RootImage & img3) iIntent.Initialize(iIntent.ACTION_VIEW, images) iIntent.SetType("image/jpeg") StartActivity(iIntent) Upvote 0
mmm... with List don't work here code: B4X: Dim images As List images.Initialize images.Add(Main.RootImage & img1) images.Add(Main.RootImage & img2) images.Add(Main.RootImage & img3) iIntent.Initialize(iIntent.ACTION_VIEW, images) iIntent.SetType("image/jpeg") StartActivity(iIntent)
NJDude Expert Licensed User Longtime User Apr 14, 2012 #11 I don't know what you're really trying to do but this sample might give you an idea. Attachments Sample.zip 9.4 KB · Views: 526 Upvote 0