//跳转到网页
Intent intent = new Intent();/*//跳转到android定义好的action的视图
intent.setAction(Intent.ACTION_VIEW);
Uri uri = Uri.parse("http://www.baidu.com");
intent.setData(uri);*/
intent.setAction(Intent.ACTION_VIEW);
Uri uri = Uri.parse("http://www.baidu.com");
intent.setDataAndType(uri, "text/html");
startActivity(intent3);
//打电话
/*Intent intent = new Intent();
intent.setAction(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:1000"));*/
Intent intent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:1000"));
startActivity(intent);
//发短信
Uri uri = Uri.parse("smsto:1000");
Intent intent = new Intent(Intent.ACTION_SENDTO,uri1);
intent.putExtra("sms_body","this is a sms info");
startActivity(intent);
//播放歌曲//选择播放器播放
Uri uri = Uri.parse("file:///storage/sdcard/windows/BstSharedFolder/默.mp3");
Intent intent = new Intent(Intent.ACTION_VIEW,uri);
intent.setDataAndType(uri, "audio/mp3");
//使用手机自带播放器播放// Intent intent = new Intent(Intent.ACTION_MAIN);// intent.addCategory(Intent.CATEGORY_APP_MUSIC);
startActivity(intent);
//Uninstall程序
Uri uri = Uri.parse("package:com.lesson.hello");
Intent intent = new Intent(Intent.ACTION_DELETE,uri);
startActivity(intent);
//安装apk
Uri uri = Uri.fromFile(file);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(uri,"application/vnd.android.package-archive");
startActivity(intent);