luiswagnersantos Member Licensed User Longtime User Dec 14, 2011 #1 [ resolved ] Associating files with programs to open native android I have several pdf files on the memory card and would like to open them with a standard program: adobe reader and others How do? someone has examples? thank you Last edited: Dec 15, 2011
[ resolved ] Associating files with programs to open native android I have several pdf files on the memory card and would like to open them with a standard program: adobe reader and others How do? someone has examples? thank you
Erel B4X founder Staff member Licensed User Longtime User Dec 15, 2011 #2 Do you want to open them from your program or with a different file manager? You can send an Intent from your program to start the PDF viewer. However you cannot affect other file manager. Upvote 0
Do you want to open them from your program or with a different file manager? You can send an Intent from your program to start the PDF viewer. However you cannot affect other file manager.
luiswagnersantos Member Licensed User Longtime User Dec 15, 2011 #3 hello. I want to open the pdf file with another manager. example: Aldiko book reader (my favorite) I want to put a button and when the user clicks the application opens with the management determined by me. This pdf file to be in the memory card. tank you Upvote 0
hello. I want to open the pdf file with another manager. example: Aldiko book reader (my favorite) I want to put a button and when the user clicks the application opens with the management determined by me. This pdf file to be in the memory card. tank you
luiswagnersantos Member Licensed User Longtime User Dec 15, 2011 #4 luiswagnersantos said: hello. I want to open the pdf file with another manager. example: Aldiko book reader (my favorite) I want to put a button and when the user clicks the application opens with the management determined by me. This pdf file to be in the memory card. tank you Click to expand... it´s correct ? Sub btnpdf_Click Dim i As Intent i.Initialize(i.ACTION_VIEW, "file:///sdcard/cat001.pdf") ' i.SetType("xpdf/html") StartActivity(i) Try StartActivity(i) Catch ToastMessageShow("Can´t not open file!.", True) End Try End Sub With this code the manager program open with various options. Upvote 0
luiswagnersantos said: hello. I want to open the pdf file with another manager. example: Aldiko book reader (my favorite) I want to put a button and when the user clicks the application opens with the management determined by me. This pdf file to be in the memory card. tank you Click to expand... it´s correct ? Sub btnpdf_Click Dim i As Intent i.Initialize(i.ACTION_VIEW, "file:///sdcard/cat001.pdf") ' i.SetType("xpdf/html") StartActivity(i) Try StartActivity(i) Catch ToastMessageShow("Can´t not open file!.", True) End Try End Sub With this code the manager program open with various options.
Erel B4X founder Staff member Licensed User Longtime User Dec 15, 2011 #5 This looks correct. Upvote 0