May 14, 2012 Replies: 10 Hi all, how can from button, show map location on google ? (without webview) thanks Click to expand...
NJDude Expert Licensed User Longtime User May 14, 2012 #2 You could get the position using the GPS and then pass that to the Google Maps apps like this: Code: Dim MapIntent As Intent Location = "geo:0,0?q=" & "40.7142, -74.0064" MapIntent.Initialize(MapIntent.ACTION_VIEW, Location) StartActivity(MapIntent)
You could get the position using the GPS and then pass that to the Google Maps apps like this: Code: Dim MapIntent As Intent Location = "geo:0,0?q=" & "40.7142, -74.0064" MapIntent.Initialize(MapIntent.ACTION_VIEW, Location) StartActivity(MapIntent)
gapi Active Member Licensed User Longtime User May 14, 2012 #3 thanks NJDude but I haven't latitude and longitude, I only address, city and zipcode ...
NJDude Expert Licensed User Longtime User May 14, 2012 #4 No problem, you can use that too: Code: Location = "geo:0,0?q=" & "100 Main St, State, ZIP"
gapi Active Member Licensed User Longtime User May 14, 2012 #5 NJDude said: No problem, you can use that too: Code: Location = "geo:0,0?q=" & "100 Main St, State, ZIP" Click to expand... thanks
NJDude said: No problem, you can use that too: Code: Location = "geo:0,0?q=" & "100 Main St, State, ZIP" Click to expand... thanks
warwound Expert Licensed User Longtime User May 15, 2012 #6 And an example of starting the StreetView app (if it's installed on the device) can be found here: http://www.b4x.com/forum/basic4andr.../17459-start-navigation-button.html#post99936. Martin.
And an example of starting the StreetView app (if it's installed on the device) can be found here: http://www.b4x.com/forum/basic4andr.../17459-start-navigation-button.html#post99936. Martin.
E elck Member Licensed User Longtime User Feb 18, 2013 #7 Great Warwound, thanks! Are there any parameters that the Google Maps App accepts ( a bit like the static maps that you explained elsewhere?) when used in an intent as demonstrated above?
Great Warwound, thanks! Are there any parameters that the Google Maps App accepts ( a bit like the static maps that you explained elsewhere?) when used in an intent as demonstrated above?
warwound Expert Licensed User Longtime User Feb 18, 2013 #8 It's all documented here: Intents List: Invoking Google Applications on Android Devices. Martin.
R rboeck Well-Known Member Licensed User Longtime User Mar 9, 2013 #9 Hi, in an app i want let the user choose, if he want's to use google maps or maybe sometime google earth. For now i have managed to start google earth with the following code: Dim Intent1 As Intent Dim a As String a= "geo:" & LatS2 & "," & LongS2 Intent1.Initialize(Intent1.ACTION_VIEW,a ) Intent1.SetComponent("com.google.earth/.EarthActivity") StartActivity(Intent1) Click to expand... Because there is no zoom, i dont know, if the position is ok; has anybody more luck to control google earth like google maps? Greetings, Reinhard
Hi, in an app i want let the user choose, if he want's to use google maps or maybe sometime google earth. For now i have managed to start google earth with the following code: Dim Intent1 As Intent Dim a As String a= "geo:" & LatS2 & "," & LongS2 Intent1.Initialize(Intent1.ACTION_VIEW,a ) Intent1.SetComponent("com.google.earth/.EarthActivity") StartActivity(Intent1) Click to expand... Because there is no zoom, i dont know, if the position is ok; has anybody more luck to control google earth like google maps? Greetings, Reinhard
warwound Expert Licensed User Longtime User Dec 2, 2014 #11 Anyone reading this thread might be interested to read about the Google Play Services version 6.5 update that is due to be released anytime now: http://android-developers.blogspot.co.uk/2014/11/google-play-services-65.html. We’re also exposing the Google Maps for Android app intents available to your apps including displaying the map, searching, starting turn by turn navigation, and opening Street View so you can build upon the familiar and powerful maps already available on the device. Click to expand...
Anyone reading this thread might be interested to read about the Google Play Services version 6.5 update that is due to be released anytime now: http://android-developers.blogspot.co.uk/2014/11/google-play-services-65.html. We’re also exposing the Google Maps for Android app intents available to your apps including displaying the map, searching, starting turn by turn navigation, and opening Street View so you can build upon the familiar and powerful maps already available on the device. Click to expand...