Hello. I'm working on a project which generate kmz files with the device's gps coordinates and some extra information. Through a button, the user can open the file and view it on Google Earth, OruxMap or some app capable to open it. When the user click on the button, my app should show a dialog box with all the available applications capable of opening a kmz file. Something like "Open with..." Currently, I use ...
But in this way the file is opened directly with the default application and not offer all apps available.
How can I get something like "Open with..." ?
Thanks
B4X:
Dim Intent1 As Intent
Intent1.Initialize(Intent1.ACTION_VIEW, "file://" & File.Combine( Main.PathProyectoActivo & "/", "temp.kml"))
Intent1.SetComponent("android/com.android.internal.app.ResolverActivity")
Intent1.SetType("application/kml")
StartActivity(Intent1)
But in this way the file is opened directly with the default application and not offer all apps available.
How can I get something like "Open with..." ?
Thanks