Dim i As Intent
i.Initialize(i.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal & "/", "filename.pdf"))
i.SetComponent("android/com.android.internal.app.ResolverActivity")
i.SetType("application/pdf")
StartActivity(i)
Android will show all possible apps and the user needs to choose one
If you have installed one or more apps which can be usd to view pdf then android will show you (the user) a list from which he can select the one he want.
Thank you, I think that I don't say you well.
I have created a pdf viewer and I want that android used my pdf viewer that I have created. How do I say android that it use 'my software', solely?
Dim i As Intent
i.Initialize(i.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal & "/", "filename.pdf"))
i.SetComponent("android/com.android.internal.app.ResolverActivity")
i.SetType("application/pdf")
StartActivity(i)
Android will show all possible apps and the user needs to choose one
Dim pm As PackageManager
Dim In As Intent
In.Initialize("","")
In=pm.GetApplicationIntent("tutorial.user.com")
If In.IsInitialized Then
StartActivity(In)
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.