Android Intent 跳转各个设置界面

http://www.eoeandroid.com/thread-275788-1-1.html

Intent跳转各个设置界面:

1.GPS功能开启的设置
Intent intent=new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivityForResult(intent,21);

2.拨号界面:
Intent intent =new Intent();                                                   
intent.setAction("android.intent.action.CALL_BUTTON");  
startActivity(intent);

3.带入号码的拨号界面:

  • Uri uri = Uri.parse("tel:1333332324");
  • Intent intent = new Intent(Intent.ACTION_DIAL, uri);
  • startActivity(intent);

4.通话记录界面:
  • Intent intent=new Intent();
  • intent.setAction(Intent.ACTION_CALL_BUTTON);
  • startActivity(intent);

5.联系人界面:
  • Intent intent = new Intent();
  • intent.setAction(Intent.ACTION_VIEW);
  • intent.setData(Contacts.People.CONTENT_URI);
  • startActivity(intent);

6短信界面:
  • Intent intent = new Intent(Intent.ACTION_VIEW);  
    intent.setType("vnd.android-dir/mms-sms");
  • //  intent.setData(Uri.parse("content://mms-sms/conversations/"));//此为号码
  • startActivity(intent);

7.浏览网页
  • Uri uri = Uri.parse("http://www.google.com");
  • Intent it   = new Intent(Intent.ACTION_VIEW,uri);
  • startActivity(it);


8.显示地图:
  • Uri uri = Uri.parse("geo:38.899533,-77.036476");
  • Intent it = new Intent(Intent.Action_VIEW,uri);
  • startActivity(it);

9.发送短信:
  • uri = Uri.parse("smsto:"+要发送短信的对方的number);
  • intent = new Intent(Intent.ACTION_SENDTO,uri);
  • startActivity(intent);
  • 10. 打开录音机:
  • Intent mi = new Intent(Media.RECORD_SOUND_ACTION);
  • startActivity(mi);

11.系统拍照并保存照片:
sdcardDir = Environment.getExternalStorageDirectory().toString();
Date now = new Date();                                
SimpleDateFormat d1=new SimpleDateFormat("yyyy-MM-dd HHmmss");
phototime = d1.format(now);        
File myCaptureFile = new File(sdcardDir + "/DCIM/Camera/"+phototime+".jpg");
Uri imageuri = Uri.fromFile(myCaptureFile);
                                
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, imageuri);
startActivityForResult(intent, 110);


总结:

比如,我要跳转系统”辅助功能“设置页面,则用一下代码即可:

Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
startActivityForResult(intent, REQUESTCODE);




String      
ACTION_ACCESSIBILITY_SETTINGS
辅助功能模块的显示设置。
Activity Action: Show settings for accessibility modules.
String
ACTION_ADD_ACCOUNT
显示屏幕上创建一个新帐户添加帐户。
Activity Action: Show add account screen for creating a new account.
String
ACTION_AIRPLANE_MODE_SETTINGS
显示设置,以允许进入/退出飞行模式。
Activity Action: Show settings to allow entering/exiting airplane mode.
String
ACTION_APN_SETTINGS
显示设置,以允许配置的APN。
Activity Action: Show settings to allow configuration of APNs.
String
ACTION_APPLICATION_DETAILS_SETTINGS
有关特定应用程序的详细信息的显示屏幕。
Activity Action: Show screen of details about a particular application.
String
ACTION_APPLICATION_DEVELOPMENT_SETTINGS
显示设置,以允许应用程序开发相关的设置配置
Activity Action: Show settings to allow configuration of application development-related settings.
String
ACTION_APPLICATION_SETTINGS
显示设置,以允许应用程序相关的设置配置
Activity Action: Show settings to allow configuration of application-related settings.
String
ACTION_BLUETOOTH_SETTINGS
显示设置,以允许蓝牙配置
Activity Action: Show settings to allow configuration of Bluetooth.
String
ACTION_DATA_ROAMING_SETTINGS
选择of2G/3G显示设置
Activity Action: Show settings for selection of2G/3G.
String
ACTION_DATE_SETTINGS
显示日期和时间设置,以允许配置
Activity Action: Show settings to allow configuration of date and time.
String
ACTION_DEVICE_INFO_SETTINGS
显示一般的设备信息设置(序列号,软件版本,电话号码,等)
Activity Action: Show general device information settings (serial number, software version, phone number, etc.).
String
ACTION_DISPLAY_SETTINGS
显示设置,以允许配置显示
Activity Action: Show settings to allow configuration of display.
String
ACTION_INPUT_METHOD_SETTINGS
特别配置的输入方法,允许用户启用输入法的显示设置
Activity Action: Show settings to configure input methods, in particular allowing the user to enable input methods.
String
ACTION_INPUT_METHOD_SUBTYPE_SETTINGS
显示设置来启用/禁用输入法亚型
Activity Action: Show settings to enable/disable input method subtypes.
String
ACTION_INTERNAL_STORAGE_SETTINGS
内部存储的显示设置
Activity Action: Show settings for internal storage.
String
ACTION_LOCALE_SETTINGS
显示设置,以允许配置的语言环境
Activity Action: Show settings to allow configuration of locale.
String
ACTION_LOCATION_SOURCE_SETTINGS
显示设置,以允许当前位置源的配置
Activity Action: Show settings to allow configuration of current location sources.
String
ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS
显示设置来管理所有的应用程序
Activity Action: Show settings to manage all applications.
String
ACTION_MANAGE_APPLICATIONS_SETTINGS
显示设置来管理安装的应用程序
Activity Action: Show settings to manage installed applications.
String
ACTION_MEMORY_CARD_SETTINGS
显示设置为存储卡存储
Activity Action: Show settings for memory card storage.
String
ACTION_NETWORK_OPERATOR_SETTINGS
选择网络运营商的显示设置
Activity Action: Show settings for selecting the network operator.
String
ACTION_PRIVACY_SETTINGS
显示设置,以允许配置隐私选项
Activity Action: Show settings to allow configuration of privacy options.
String
ACTION_QUICK_LAUNCH_SETTINGS
显示设置,以允许快速启动快捷键的配置
Activity Action: Show settings to allow configuration of quick launch shortcuts.
String
ACTION_SEARCH_SETTINGS
全局搜索显示设置
Activity Action: Show settings for global search.
String
ACTION_SECURITY_SETTINGS
显示设置,以允许配置的安全性和位置隐私
Activity Action: Show settings to allow configuration of security and location privacy.
String
ACTION_SETTINGS
显示系统设置
Activity Action: Show system settings.
String
ACTION_SOUND_SETTINGS
显示设置,以允许配置声音和音量
Activity Action: Show settings to allow configuration of sound and volume.
String
ACTION_SYNC_SETTINGS
显示设置,以允许配置同步设置
Activity Action: Show settings to allow configuration of sync settings.
String
ACTION_USER_DICTIONARY_SETTINGS
显示设置来管理用户输入字典
Activity Action: Show settings to manage the user input dictionary.
String
ACTION_WIFI_IP_SETTINGS
显示设置,以允许配置一个静态IP地址的Wi – Fi
Activity Action: Show settings to allow configuration of a static IP address for Wi-Fi.
String
ACTION_WIFI_SETTINGS
显示设置,以允许Wi – Fi配置
Activity Action: Show settings to allow configuration of Wi-Fi.
String
ACTION_WIRELESS_SETTINGS
显示设置,以允许配置,如Wi – Fi,蓝牙和移动网络的无线控制
Activity Action: Show settings to allow configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks.
String
AUTHORITY

String
EXTRA_AUTHORITIES
在推出活动的基础上给予的权力限制可选项。
Activity Extra: Limit available options in launched activity based on the given authority.
String
EXTRA_INPUT_METHOD_ID
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值