Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW); //显示联系人信息
intent.setData(Uri.parse("content://contacts/people/492"));
startActivity(intent);
Intent intent = new Intent();
intent.setAction(Intent.ACTION_DIAL); //显示拨号面板
intent.setData(Uri.parse("content://contacts/people/492"));
startActivity(intent);
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setData(Uri.parse("tel://15216448315"));
startActivity(intent);
Intent intent = new Intent();
intent.setAction(Intent.ACTION_DIAL); //显示拨号面板, 并在拨号面板上将号码显示出来
intent.setData(Uri.parse("tel://15216448315"));
startActivity(intent);
Intent intent = new Intent();
intent.setAction(Intent.ACTION_EDIT); //编辑联系人
intent.setData(Uri.parse("content://contacts/people/492"));
startActivity(intent);
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setData(Uri.parse("content://contacts/people/"));
startActivity(intent);
Intent intent = new Intent(); intent.setAction(Intent.ACTION_MAIN); //启动HomeScreen intent.addCategory(Intent.CATEGORY_HOME); startActivity(intent);
Intent intent = new Intent();
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.setType("vnd.android.cursor.item/phone");
startActivityForResult(intent, 1);
Intent intent = new Intent();
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.setType("*/*");
intent.addCategory(Intent.CATEGORY_OPENABLE);
startActivityForResult(intent, 2);
Intent intent = new Intent();
intent.setAction(Intent.ACTION_CHOOSER);
intent.putExtra(Intent.EXTRA_TITLE, "my chooser");
intent.putExtra(Intent.EXTRA_INTENT,
new Intent(Intent.ACTION_GET_CONTENT)
.setType("*/*")
.addCategory(Intent.CATEGORY_OPENABLE)
);
startActivityForResult(intent, 2);
Intent intent = new Intent();
intent.setAction(Intent.ACTION_PICK_ACTIVITY);
intent.putExtra( Intent.EXTRA_INTENT,
new Intent(Intent.ACTION_GET_CONTENT)
.setType("*/*")
.addCategory(Intent.CATEGORY_OPENABLE)
);
startActivityForResult(intent, 3);
Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEARCH); //启动搜索 intent.putExtra(SearchManager.QUERY, "ANDROID"); startActivity(intent);
Intent intent = new Intent(); intent.setAction(Intent.ACTION_WEB_SEARCH); //启动搜索 intent.putExtra(SearchManager.QUERY, "ANDROID"); startActivity(intent);
registerReceiver(new BroadcastReceiver(){
@Override
public void onReceive(Context context, Intent intent) {
Log.i("xxxx", "TIME_TICK");
}
},
new IntentFilter(Intent.ACTION_TIME_TICK));
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有