G GaNdAlF89 Active Member Licensed User Longtime User Nov 26, 2014 #1 Hi guys!! In my app I have a pdf and a video files. My question is: how can I open these files with 3rd part app? E.g. when I click on a button (that corresponds to the pdf file), I see a message like "Open with" and a list of installed apps which can open the pdf file. The same thing with the video file. Thanks for support!
Hi guys!! In my app I have a pdf and a video files. My question is: how can I open these files with 3rd part app? E.g. when I click on a button (that corresponds to the pdf file), I see a message like "Open with" and a list of installed apps which can open the pdf file. The same thing with the video file. Thanks for support!
LucaMs Expert Licensed User Longtime User Nov 26, 2014 #2 https://www.b4x.com/android/forum/pages/results/?query=open+with&page=1&prefix=0 Upvote 0
Chandrashekhar Member Licensed User Longtime User Nov 26, 2014 #3 Hi, You can use intent with ACTION_VIEW and you want some specific application to handle request, you can use intent.setcomponent. Upvote 0
Hi, You can use intent with ACTION_VIEW and you want some specific application to handle request, you can use intent.setcomponent.
Peter Simpson Expert Licensed User Longtime User Nov 26, 2014 #4 https://www.b4x.com/android/forum/threads/open-external-documents.35046/#content Upvote 0
G GaNdAlF89 Active Member Licensed User Longtime User Nov 26, 2014 #5 Thanks to all! @ Chandrashekhar How can I see the list of installed apps that can handle request? Upvote 0
Chandrashekhar Member Licensed User Longtime User Nov 26, 2014 #6 Code: Dim i As Intent Dim u As Uri u.Parse(File.Combine(File.dirrootexternal,"/wr/"&"FILE NAME HERE")) i.Initialize(i.ACTION_SEND,"") i.SetType("image/png") i.PutExtra("android.intent.extra.STREAM",u) StartActivity(i) This is how I "SHARE" in one of my application. Cheers Upvote 0
Code: Dim i As Intent Dim u As Uri u.Parse(File.Combine(File.dirrootexternal,"/wr/"&"FILE NAME HERE")) i.Initialize(i.ACTION_SEND,"") i.SetType("image/png") i.PutExtra("android.intent.extra.STREAM",u) StartActivity(i) This is how I "SHARE" in one of my application. Cheers