摘要:
代码如下:public static void LauchInstall(String FilePathName, Context context) { chmod("777", FilePathName); Intent intent = new Intent(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setDataAndType(Uri.fromFile(new File(FilePathName)), "applica... 阅读全文
posted @ 2012-11-07 16:27
創丗仼
阅读(1116)
评论(0)
推荐(0)
摘要:
Android 2,.1中获取内存卡上的data/data/org.lesohome.activity/files/目录,保存在此目录的文件,当程序卸载时,系统会自动删除。从Android 2.2开始,系统增加了新的函数:context.getExternalFilesDir() 来统一Android程序在Sd上的保存目录约定,省的大家看到SD卡根目录越来越乱了。通过此函数获取了保存目录后,保存在此目录的文件,当程序卸载时,系统会自动删除。另外提供了新的函数:Environment.getExternalStoragePublicDirectory(),通过此函数获取保存目录后,保存在此目录的 阅读全文
posted @ 2012-11-07 15:24
創丗仼
阅读(2639)
评论(0)
推荐(0)