解决方案 »
- android出现如下的情况,大神们,谁能给解决一下啊?
- 哪位兄台可以帮帮忙啊,做一个计时器,小弟已经想了两天多了
- startActivity时出错
- 在Eclipse中启动Android程序过慢
- 奇怪的问题。。。为什么不能启动service
- Android2.2 JSON 问题
- 请问在扩展 extends view中如何在引用其的程序中触发事件?
- 如何在动态创建的图片(Imageview)得到Imageview的R
- android 中使用GLSurfaceView 要实现它的手势放大缩小功能,效果需要平滑,有大侠知道么
- 如何使m_Paint这个图片停留的时间长一点,求大神赐教
- Android中如何调试C/C++代码
- 下拉框效果
// 启动APK安装
Intent intent = new Intent(Intent.ACTION_VIEW);
String strPath = imFile.getAbsolutePath(); //getApplicationContext().getFileStreamPath(strName).getAbsolutePath();
Log.i(TAG, strPath);
intent.setDataAndType(Uri.parse("file://"+ strPath), "application/vnd.android.package-archive");
startActivity(intent);
String strPath = getApplicationContext().getFileStreamPath(strName).getAbsolutePath();
自己指定一下目录