User Tools

Site Tools


intents:google_maps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
intents:google_maps [2016/05/06 17:55]
stevegarman [Google Maps]
intents:google_maps [2018/12/30 01:29]
114.125.41.104 [Turn by Turn Navigation]
Line 8: Line 8:
  
 <code JavaScript simpleMap.js> <code JavaScript simpleMap.js>
 +
 function OnStart() function OnStart()
 { {
Line 20: Line 21:
     var action = "android.intent.action.VIEW";     var action = "android.intent.action.VIEW";
     var uri =  "geo:"+latitude+","+longitude;     var uri =  "geo:"+latitude+","+longitude;
-    app.SendIntent( packageName, className, action,null,uri );+    if(app.IsAppInstalled( packageName )) 
 +      app.SendIntent( packageName, className, action,null,uri ); 
 +    else 
 +    { 
 +    app.Alert("maps app not installed"); 
 +    app.OpenUrl("market://details?id="+packageName); 
 +    }
 } }
 </code> </code>
 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
 +    package="eu.chainfire.libsuperuser"
 +    android:versionCode="1"
 +    android:versionName="1.0">
  
 +    <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="21" />
 +</manifest>
intents/google_maps.txt · Last modified: 2018/12/30 13:30 (external edit)