How to call googlemap intent within droidscript

218 views
Skip to first unread message

Syed Munawer Hassan

unread,
Aug 20, 2016, 9:47:16 AM8/20/16
to DroidScript
when I call google Map intent to drove me out of app is there any way to call it within app ?

Alex F

unread,
Aug 20, 2016, 11:39:25 AM8/20/16
to DroidScript
app.SendIntent( "com.google.android.apps.maps", "com.google.android.maps.MapsActivity" )

Alex F

unread,
Aug 20, 2016, 11:40:21 AM8/20/16
to DroidScript
app.SendIntent( "com.google.android.apps.maps", "com.google.android.maps.MapsActivity" )

Charles Wilt

unread,
Aug 20, 2016, 11:40:28 AM8/20/16
to DroidScript
Are you trying to use the maps app or the web page?

Can you post your code?

Syed Munawer Hassan

unread,
Aug 21, 2016, 7:00:43 AM8/21/16
to DroidScript
   function CheckInternetConnectivity()
    {
         var httpRequest = new XMLHttpRequest(); 
    httpRequest.onreadystatechange = function() { HandleReply(httpRequest); };   
    httpRequest.open("GET", "http://google.com/", true); 
    httpRequest.send(null); 
function HandleReply( httpRequest ) 

    if( httpRequest.readyState==4 ) { 
        if( httpRequest.status==0 ) { 
            app.Alert( "Internet is not connected \n You will see offline map"); 
         app.SendIntent("com.google.android.apps.maps",null,"android.intent.action.VIEW","android.intent.category.DEFAULT","geo:0,0?q=" + GetLong+","+GetLat);
            } 
        else  {
layLocation.SetVisibility("Show");
        VehicleLocation.LoadUrl(GetLoc);
        }
    } 
}
        }
 
Reply all
Reply to author
Forward
0 new messages