8、系统窗口的调用

 调用系统窗口

调用Google搜索 

Intent intent = new Intent();

intent.setAction(Intent.ACTION_WEB_SEARCH);

intent.putExtra(SearchManager.QUERY,"searchString");

startActivity(intent); 

 获取所有可调用的窗口及其调用细节 

分析Android源代码
1. AndroidManifest.xml 2. 查看相应的源代码

安装APK文件 

Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE);

intent.setDataAndType(Uri.fromFile(new File("/sdcard/qq.apk")),

"application/vnd.android.package-archive");

startActivity(intent); 

原文地址:https://www.cnblogs.com/androidsj/p/3929101.html