I am trying to start Maps from a webview via an intent like here
It works in my emulator, but on my phone I get an exception:
B4X:
android.content.ActivityNotFoundException: Unable to find explicit activity class {android/com.android.internal.app.ResolverActivity}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2112)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1757)
at android.app.Activity.startActivityForResult(Activity.java:4803)
These specially formed urls only works in the main browser, not in a webview. Here is just shows the map page in the webview.
But this works:
B4X:
Sub wv_OverrideUrl (Url As String) As Boolean
Log(Url)
If Regex.IsMatch2(".*://www.google.\w+/maps/.*", Regex.CASE_INSENSITIVE, Url) Then
Intent1.Initialize(Intent1.ACTION_VIEW, Url)
StartActivity(Intent1)
Return True
End If
Return False
End Sub