User Tools

Site Tools


intents:open_apps

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
intents:open_apps [2020/02/11 15:26]
stevegarman fix quotes by using code block
intents:open_apps [2021/10/29 14:59]
al4he6 Added "Other Settings" section
Line 1: Line 1:
 **Open default browser app** **Open default browser app**
-<code>app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_BROWSER");+<code>app.SendIntent(null, null, 
 +"android.intent.action.MAIN", 
 +"android.intent.category.APP_BROWSER");
 </code> </code>
 **Open default music app** **Open default music app**
-<code>app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_MUSIC");+<code>app.SendIntent(null, null,  
 +"android.intent.action.MAIN",  
 +"android.intent.category.APP_MUSIC");
 </code> </code>
 **Open default calculator app** **Open default calculator app**
 <code> <code>
-app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_CALCULATOR");+app.SendIntent(null, null,  
 +"android.intent.action.MAIN",  
 +"android.intent.category.APP_CALCULATOR");
 </code> </code>
 **Open default contacts app** **Open default contacts app**
 <code> <code>
-app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_CONTACTS");+app.SendIntent(null, null,  
 +"android.intent.action.MAIN",  
 +"android.intent.category.APP_CONTACTS");
 </code> </code>
 **Open default email app** **Open default email app**
 <code> <code>
-app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_EMAIL");+app.SendIntent(null, null, 
 +"android.intent.action.MAIN",  
 +"android.intent.category.APP_EMAIL");
 </code> </code>
 **Open default maps app** **Open default maps app**
 <code> <code>
-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”);
 </code> </code>
 As an alternative, you may wish to open Google Maps specifically - the code should really be on [[intents:google_maps|this separate page]] As an alternative, you may wish to open Google Maps specifically - the code should really be on [[intents:google_maps|this separate page]]
Line 35: Line 47:
 **Open default gallery app** **Open default gallery app**
 <code> <code>
-app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_GALLERY");+app.SendIntent(null, null,  
 +"android.intent.action.MAIN",  
 +"android.intent.category.APP_GALLERY");
 </code> </code>
 **Open default calendar app** **Open default calendar app**
 <code> <code>
-app.SendIntent(null, null, "android.intent.action.MAIN", "android.intent.category.APP_CALENDAR");+app.SendIntent(null, null,  
 +"android.intent.action.MAIN",  
 +"android.intent.category.APP_CALENDAR");
 </code> </code>
 **Open default market app** **Open default market app**
 <code> <code>
-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");
 </code> </code>
 **Open default messaging app** **Open default messaging app**
 <code> <code>
-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");
 </code> </code>
 **Open bluetooth settings** **Open bluetooth settings**
 <code> <code>
-app.SendIntent(null,null,"android.settings.BLUETOOTH_SETTINGS" )+app.SendIntent(null,null, 
 +"android.settings.BLUETOOTH_SETTINGS" )
 </code> </code>
 **Open WiFi settings** **Open WiFi settings**
 <code> <code>
-app.SendIntent(null,null,"android.settings.WIFI_SETTINGS" )+app.SendIntent(null,null, 
 +"android.settings.WIFI_SETTINGS" )
 </code> </code>
 +
 +**Other Settings**\\
 +\\
 +See https://developer.android.com/reference/android/provider/Settings\\
 +The Constants section contains Actions (use as 3rd parameter on SendIntent,\\
 +replacing ACTION_ by android.settings.)\\
intents/open_apps.txt · Last modified: 2021/10/29 14:59 by al4he6