Android Question Alternative for b4i AppOpenURL

David Meier

Active Member
Licensed User
Longtime User
Hi

What is the equivalent of b4i's AppOpenURL in B4A?

With b4i am using AppOpenURL to open the internal map of iOS and indicating restaurants on a given map. I Need to do the same thing on Android (using androids maps). I did some tests with Google intents and get my result. But I am unsure whether this is the way to do it :confused:

This is what I am doing:
B4X:
    Private MapIntent As Intent
    Private Destination As String
    Destination = "https://www.google.com/maps/search/?api=1&query=Restaurant+M%C3%BCnchenstein"
    MapIntent.Initialize(MapIntent.ACTION_VIEW, Destination)
    MapIntent.SetComponent("android/com.android.internal.app.ResolverActivity")  
    StartActivity(MapIntent)

Kind regards David
 

David Meier

Active Member
Licensed User
Longtime User
Thank you dear Erel
Setting the component to ...app.ResolverActivity I found out browsing the forum. I don't really know much about it. Is it a risk using it? Can/shall I do it in a different way?
Regards
David
 
Upvote 0
Top