Android跳转系统界面_大全集
2017-08-30 16:38
302 查看
1、跳转Setting应用列表(所有应用)
2、跳转Setting应用列表(安装应用)
3、跳转Setting应用列表
4、开发者选项
5、允许在其它应用上层显示的应用
6、无障碍设置
7、添加账户
8、WIFI设置
9、蓝牙设置
10、移动网络设置
11、日期时间设置
12、关于手机界面
13、显示设置界面
14、声音设置
15、互动屏保
16、输入法
17、输入法_SubType
18、内部存储设置界面
19、存储卡设置界面
20、语言选择界面
21、位置服务界面
22、运营商
23、NFC共享界面
24、NFC设置
25、备份和重置
26、快速启动
27、搜索设置
28、安全设置
29、设置的主页
30、用户同步界面
31、用户字典
32、IP设置
33、App设置详情界面
34、跳转应用市场
35、获取Launcherbaoming
36、跳转图库获取图片
37、跳转相机,拍照并保存
38、跳转文件管理器
39、直接拨打电话
40、跳转电话应用
41、发送短信
42、发送彩信
43、发送邮件
44、跳转联系人
45、插入联系人
46、插入日历事件
47、跳转浏览器
48、安装应用
49、卸载应用
50、回到桌面
51、打开任意文件(根据其MIME TYPE自动选择打开的应用)
52、跳转录音
转自:http://blog.csdn.net/u011002668/article/details/51007069
Intent intent = new Intent(Settings.ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS); this.startActivity(intent);
2、跳转Setting应用列表(安装应用)
Intent intent = new Intent(Settings.ACTION_MANAGE_APPLICATIONS_SETTINGS);
3、跳转Setting应用列表
Intent intent = new Intent(Settings.ACTION_APPLICATION_SETTINGS);
4、开发者选项
Intent intent = new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);
5、允许在其它应用上层显示的应用
Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION);
6、无障碍设置
Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
7、添加账户
Intent intent = new Intent(Settings.ACTION_ADD_ACCOUNT);
8、WIFI设置
Intent intent = new Intent(Settings.ACTION_WIFI_SETTINGS);
9、蓝牙设置
Intent intent = new Intent(Settings.ACTION_BLUETOOTH_SETTINGS);
10、移动网络设置
Intent intent = new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS);
11、日期时间设置
Intent intent = new Intent(Settings.ACTION_DATE_SETTINGS);
12、关于手机界面
Intent intent = new Intent(Settings.ACTION_DEVICE_INFO_SETTINGS);
13、显示设置界面
Intent intent = new Intent(Settings.ACTION_DISPLAY_SETTINGS);
14、声音设置
Intent intent = new Intent(Settings.ACTION_SOUND_SETTINGS);
15、互动屏保
Intent intent = new Intent(Settings.ACTION_DREAM_SETTINGS);
16、输入法
Intent intent = new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS);
17、输入法_SubType
Intent intent = new Intent(Settings.ACTION_INPUT_METHOD_SUBTYPE_SETTINGS);
18、内部存储设置界面
Intent intent = new Intent(Settings.ACTION_INTERNAL_STORAGE_SETTINGS);
19、存储卡设置界面
Intent intent = new Intent(Settings.ACTION_MEMORY_CARD_SETTINGS);
20、语言选择界面
Intent intent = new Intent(Settings.ACTION_LOCALE_SETTINGS);
21、位置服务界面
Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
22、运营商
Intent intent = new Intent(Settings.ACTION_NETWORK_OPERATOR_SETTINGS);
23、NFC共享界面
Intent intent = new Intent(Settings.ACTION_NFCSHARING_SETTINGS);
24、NFC设置
Intent intent = new Intent(Settings.ACTION_NFC_SETTINGS);
25、备份和重置
Intent intent = new Intent(Settings.ACTION_PRIVACY_SETTINGS);
26、快速启动
Intent intent = new Intent(Settings.ACTION_QUICK_LAUNCH_SETTINGS);
27、搜索设置
Intent intent = new Intent(Settings.ACTION_SEARCH_SETTINGS);
28、安全设置
Intent intent = new Intent(Settings.ACTION_SECURITY_SETTINGS);
29、设置的主页
Intent intent = new Intent(Settings.ACTION_SETTINGS);
30、用户同步界面
Intent intent = new Intent(Settings.ACTION_SYNC_SETTINGS);
31、用户字典
Intent intent = new Intent(Settings.ACTION_USER_DICTIONARY_SETTINGS);
32、IP设置
Intent intent = new Intent(Settings.ACTION_WIFI_IP_SETTINGS);
33、App设置详情界面
public void startAppSettingDetail() { String packageName = getPackageName(); Uri packageURI = Uri.parse("package:" + packageName); Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(packageURI); startActivity(intent); }
34、跳转应用市场
public void startMarket() { Intent intent = new Intent(Intent.ACTION_VIEW); // intent.setData(Uri.parse("market://details?id=" + "com.xxx.xxx")); intent.setData(Uri.parse("market://search?q=App Name")); startActivity(intent); }
35、获取Launcherbaoming
1 public void getLauncherPackageName() { 2 Intent intent = new Intent(Intent.ACTION_MAIN); 3 intent.addCategory(Intent.CATEGORY_HOME); 4 final ResolveInfo res = this.getPackageManager().resolveActivity(intent, 0); 5 if (res.activityInfo == null) { 6 Log.e("TAG", "没有获取到"); 7 return; 8 } 9 10 if (res.activityInfo.packageName.equals("android")) { 11 Log.e("TAG", "有多个Launcher,且未指定默认"); 12 } else { 13 Log.e("TAG", res.activityInfo.packageName); 14 } 15 }
36、跳转图库获取图片
public void startGallery() { Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); intent.setType("image/*"); this.startActivityForResult(intent, 1); }
37、跳转相机,拍照并保存
1 public void startCamera() { 2 String dir = Environment.getExternalStorageDirectory().getAbsolutePath() + "/test.jpg"; 3 Uri headCacheUri = Uri.fromFile(new File(dir)); 4 Intent takePicIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); 5 takePicIntent.putExtra(MediaStore.EXTRA_OUTPUT, headCacheUri); 6 startActivityForResult(takePicIntent, 2); 7 }
38、跳转文件管理器
public void startFileManager() { Intent intent = new Intent(Intent.ACTION_GET_CONTENT, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); intent.setType("file/*"); this.startActivityForResult(intent, 3); }
39、直接拨打电话
1 public void startCall() { 2 Intent callIntent = new Intent(Intent.ACTION_CALL); 3 callIntent.setData(Uri.parse("tel:" + "13843894038")); 4 if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) { 5 return; 6 } 7 startActivity(callIntent); 8 }
40、跳转电话应用
public void startPhone() { Intent intent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:" + "13843894038")); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); }
41、发送短信
public void startSMS() { Uri smsToUri = Uri.parse("smsto://10086"); Intent mIntent = new Intent( android.content.Intent.ACTION_SENDTO, smsToUri ); startActivity(mIntent); }
42、发送彩信
public void startMMS() { Uri uri = Uri.parse("content://media/external/images/media/11"); Intent it = new Intent(Intent.ACTION_SEND); it.putExtra("sms_body", "some text"); it.putExtra(Intent.EXTRA_STREAM, uri); it.setType("image/png"); startActivity(it); }
43、发送邮件
public void startEmail() { Uri uri = Uri.parse("mailto:6666666@qq.com"); String[] email = {"12345678@qq.com"}; Intent intent = new Intent(Intent.ACTION_SENDTO, uri); intent.putExtra(Intent.EXTRA_CC, email); // 抄送人 intent.putExtra(Intent.EXTRA_SUBJECT, "这是邮件的主题部分"); // 主题 intent.putExtra(Intent.EXTRA_TEXT, "这是邮件的正文部分"); // 正文 startActivity(Intent.createChooser(intent, "请选择邮件类应用")); }
44、跳转联系人
public void startContact() { Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setData(Contacts.People.CONTENT_URI); startActivity(intent); /*Intent intent = new Intent(); intent.setAction(Intent.ACTION_PICK); intent.setData(Uri.parse("content://contacts/people")); startActivityForResult(intent, 5);*/ }
45、插入联系人
public void insertContact() { Intent intent = new Intent(Intent.ACTION_INSERT); intent.setData(ContactsContract.Contacts.CONTENT_URI); intent.putExtra(ContactsContract.Intents.Insert.PHONE, "18688888888"); startActivityForResult(intent, 1); }
46、插入日历事件
public void startCalender() { Intent intent = new Intent(Intent.ACTION_INSERT); intent.setData(CalendarContract.Events.CONTENT_URI); intent.putExtra(CalendarContract.Events.TITLE, "开会"); startActivityForResult(intent, 1); }
47、跳转浏览器
public void startBrowser() { Uri uri = Uri.parse("http://www.baidu.com"); Intent intent = new Intent(Intent.ACTION_VIEW,uri); startActivity(intent); }
48、安装应用
public void startInstall() { String filePath="/xx/xx/abc.apk"; Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("file://" + filePath), "application/vnd.android.package-archive"); startActivity(intent); }
49、卸载应用
public void startUnInstall() { String packageName="cn.memedai.mas.debug"; Uri packageUri = Uri.parse("package:"+packageName);//包名,指定该应用 Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageUri); startActivity(uninstallIntent); }
50、回到桌面
public void startLauncherHome() { Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); startActivity(intent); }
51、打开任意文件(根据其MIME TYPE自动选择打开的应用)
1 private void openFile(File f) { 2 Intent intent = new Intent(); 3 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 4 intent.setAction(android.content.Intent.ACTION_VIEW); 5 String type = getMIMEType(f); 6 intent.setDataAndType(Uri.fromFile(f), type); 7 startActivity(intent); 8 } 9 10 private String getMIMEType(File f) { 11 String end = f.getName().substring(f.getName().lastIndexOf(".") + 1, 12 f.getName().length()).toLowerCase(); 13 String type = ""; 14 if (end.equalsIgnoreCase("mp3") 15 || end.equalsIgnoreCase("aac") 16 || end.equalsIgnoreCase("amr") 17 || end.equalsIgnoreCase("mpeg") 18 || end.equalsIgnoreCase("mp4")) { 19 type = "audio"; 20 } else if(end.equalsIgnoreCase("mp4") 21 || end.equalsIgnoreCase("3gp") 22 || end.equalsIgnoreCase("mpeg4") 23 || end.equalsIgnoreCase("3gpp") 24 || end.equalsIgnoreCase("3gpp2") 25 || end.equalsIgnoreCase("flv") 26 || end.equalsIgnoreCase("avi")) { 27 type = "video"; 28 } else if (end.equalsIgnoreCase("jpg") 29 || end.equalsIgnoreCase("gif") 30 || end.equalsIgnoreCase("bmp") 31 || end.equalsIgnoreCase("png") 32 || end.equalsIgnoreCase("jpeg")) { 33 type = "image"; 34 } else { 35 type = "*"; 36 } 37 type += "/*"; 38 return type; 39 }
52、跳转录音
public void startRecord() { Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); startActivity(intent); }
转自:http://blog.csdn.net/u011002668/article/details/51007069
相关文章推荐
- Android跳转系统界面_大全集
- android 如何能使界面跳转到系统网络设置界面
- Android中自动跳转到系统设置界面
- Android中自动跳转到系统设置界面
- Android开发之Intent跳转到系统应用中的拨号界面、联系人界面、短信界面
- Android跳转到系统联系人及拨号或短信界面
- Android菜鸟笔记-WifiPickerActivity 实现跳转到系统自带wifi连接界面
- Android开发之Intent跳转到系统应用中的拨号界面、联系人界面、短信界面
- android中跳转到系统管理应用程序界面的方法
- Android开发之Intent跳转到系统应用中的拨号界面、联系人界面、短信界面
- android中跳转系统自带界面 Intent
- android 调用系统相册选取照片或者打开相机拍照获取图片,返回时为什么会回到home界面或者到前一个界面,然后才会跳转到当前activity
- Android开发之Intent跳转到系统应用中的拨号界面、联系人界面、短信界面 .相机.录影机...
- Android开发之Intent跳转到系统应用中的拨号界面、联系人界面、短信界面
- Android应用获取通知栏权限是否开启--以及跳转到系统设置界面--解决方案
- android 跳转到系统设置界面的所有Intent
- android 自动跳转到系统设置界面
- Android开发中常用的跳转系统自带界面方法
- Android 自动跳转到各种系统设置界面