Android 安装应用程序
来源:互联网 发布:边塞远cba数据 编辑:程序博客网 时间:2024/06/04 18:06
安装应用程序
public class PackageinstallerActivity extends Activity {
EditText et;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
et = (EditText) this.findViewById(R.id.et);
}
public void install(View view){
String path = et.getText().toString();//获取安装文件的路径
File file = new File(path); //根据路径找到安装的文件
if(file.exists()){
//安装apk
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
//第二个参数是MiniType可以通过tomcat的config配置文件查找到.此处是apk对应的类型
intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive");
startActivity(intent);
}
}
}
- Android应用程序安装
- android 模拟器安装应用程序
- Android 安装应用程序
- android 应用程序的安装
- Android源码--安装应用程序
- Android应用程序安装位置
- 安装 android应用程序到手机
- android应用程序的安装位置
- android应用程序的安装位置
- Android安装应用程序出现“INSTALL_FAILED_CONTAINER_ERROR
- android应用程序安装位置分析
- android应用程序开发环境安装
- Android应用程序的获取,安装。
- android应用程序安装位置分析
- android模拟器安装apk应用程序
- 14-Android应用程序的安装
- Android打开应用程序安装界面
- Android应用程序的安装位置
- Hack and / - Linux Troubleshooting
- Amazon DynamoDB
- soundpool
- .Net 下的保护和逆向工程,时代决定我们必须破解NET程序
- 素数,回文数,回文素数
- Android 安装应用程序
- RHEL 4 性能优化详述
- 这才是为旅客着想
- DICM和BMP图像的显示及转换
- Java 学习笔记08:在Eclipse中的安装Jetty web运行容器
- 不同的Activity中传递数据
- 这样的候车室可以多几个
- Fibnacci 序列
- Android高手进阶教程(二十五)之---Android 中的AIDL!!!