Associating files with programs to open native android

luiswagnersantos

Member
Licensed User
Longtime User
[ 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:

luiswagnersantos

Member
Licensed User
Longtime User
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

luiswagnersantos

Member
Licensed User
Longtime User
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
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
Top