Android开发中调用系统窗口的方法
生活随笔
收集整理的這篇文章主要介紹了
Android开发中调用系统窗口的方法
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
//直接撥號(hào)
Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678"));
startActivity(callIntent);
//將電話號(hào)碼傳入撥號(hào)程序
Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678"));
startActivity(dialIntent);
//調(diào)用撥號(hào)程序
Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER");
startActivity(touchDialerIntent);
//瀏覽網(wǎng)頁(yè)
Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com"));
startActivity(webIntent);
//查看聯(lián)系人
Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS");
startActivity(contactListIntent);
//顯示系統(tǒng)設(shè)置主界面
Intent settingsIntent = new Intent("android.settings.SETTINGS");
startActivity(settingsIntent);
//顯示W(wǎng)i-Fi設(shè)置界面
Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS");
startActivity(wifiSettingsIntent);
//啟動(dòng)處理音頻的程序
Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT);
audioIntent.setType("audio/*");
startActivity(Intent.createChooser(audioIntent, "選擇音頻程序"));
//回到Home窗口
Intent gohomeIntent = new Intent("android.intent.action.MAIN");
gohomeIntent.addCategory("android.intent.category.HOME");
startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
//直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678"));
startActivity(callIntent);
//將電話號(hào)碼傳入撥號(hào)程序
Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678"));
startActivity(dialIntent);
//調(diào)用撥號(hào)程序
Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER");
startActivity(touchDialerIntent);
//瀏覽網(wǎng)頁(yè)
Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com"));
startActivity(webIntent);
//查看聯(lián)系人
Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS");
startActivity(contactListIntent);
//顯示系統(tǒng)設(shè)置主界面
Intent settingsIntent = new Intent("android.settings.SETTINGS");
startActivity(settingsIntent);
//顯示W(wǎng)i-Fi設(shè)置界面
Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS");
startActivity(wifiSettingsIntent);
//啟動(dòng)處理音頻的程序
Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT);
audioIntent.setType("audio/*");
startActivity(Intent.createChooser(audioIntent, "選擇音頻程序"));
//回到Home窗口
Intent gohomeIntent = new Intent("android.intent.action.MAIN");
gohomeIntent.addCategory("android.intent.category.HOME");
startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
//直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
/直接撥號(hào) Intent callIntent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:12345678")); startActivity(callIntent); ????? ????????? //將電話號(hào)碼傳入撥號(hào)程序?? Intent dialIntent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:12345678")); startActivity(dialIntent); ????????? //調(diào)用撥號(hào)程序 Intent touchDialerIntent = new Intent("com.android.phone.action.TOUCH_DIALER"); startActivity(touchDialerIntent); ????????? //瀏覽網(wǎng)頁(yè) Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com")); startActivity(webIntent); ????????? //查看聯(lián)系人 Intent contactListIntent = new Intent("com.android.contacts.action.LIST_CONTACTS"); startActivity(contactListIntent); ????????? //顯示系統(tǒng)設(shè)置主界面 Intent settingsIntent = new Intent("android.settings.SETTINGS"); startActivity(settingsIntent); ????????? //顯示W(wǎng)i-Fi設(shè)置界面 Intent wifiSettingsIntent = new Intent("android.settings.WIFI_SETTINGS"); startActivity(wifiSettingsIntent); ????????? //啟動(dòng)處理音頻的程序 Intent audioIntent = new Intent(Intent.ACTION_GET_CONTENT); audioIntent.setType("audio/*"); startActivity(Intent.createChooser(audioIntent, "選擇音頻程序")); ????????? //回到Home窗口 Intent gohomeIntent = new Intent("android.intent.action.MAIN"); gohomeIntent.addCategory("android.intent.category.HOME"); startActivity(gohomeIntent);
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
Android開發(fā)中調(diào)用系統(tǒng)窗口的方法Android開發(fā)中調(diào)用系統(tǒng)窗口的方法
版權(quán)聲明:本文為博主原創(chuàng)文章,未經(jīng)博主允許不得轉(zhuǎn)載。(轉(zhuǎn)載請(qǐng)注明出自 AllenCoder)
轉(zhuǎn)載于:https://www.cnblogs.com/allencoder/p/4830759.html
總結(jié)
以上是生活随笔為你收集整理的Android开发中调用系统窗口的方法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: XML-RPC协议学习
- 下一篇: Android项目笔记【项目管理统计图a