User Tools

Site Tools


intents:open_apps

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
intents:open_apps [2016/05/09 16:41]
mxgh2000 created
intents:open_apps [2017/11/17 17:13]
2.29.63.31 Added wifi settings
Line 21: Line 21:
 **Open default maps app** **Open default maps app**
  
-app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_MAPS");+app.SendIntent(null, null, android.intent.action.MAIN”, “android.intent.category.APP_MAPS”); 
 +    
 +As an alternative, you may wish to open Google Maps specifically - the code should really be on [[intents:google_maps|this separate page]] 
 + 
 +  app.SendIntent( 
 +    "com.google.android.apps.maps", 
 +    null, 
 +    "android.intent.action.VIEW", 
 +    "android.intent.category.DEFAULT"
 +    "geo:0,0?q=34.5678,123.4567 (Placename)"   // uri argument 
 +  ); 
 + 
 +Replace the coordinates and Placename in the uri argument with those for the desired location. (Optionally, you can omit Placename along with the parentheses.) 
  
 **Open default gallery app** **Open default gallery app**
Line 35: Line 47:
 app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_MARKET"); app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_MARKET");
  
-**Open default calendar app**+**Open default messaging app**
  
 app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_MESSAGING"); app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_MESSAGING");
 +
 +**Open bluetooth settings**
 +
 +app.SendIntent(null,null,"android.settings.BLUETOOTH_SETTINGS" )
 +
 +**Open WiFi settings**
 +
 +app.SendIntent(null,null,"android.settings.WIFI_SETTINGS" )
 +
 +
intents/open_apps.txt · Last modified: 2021/10/29 14:59 by al4he6