android中获取当前程序路径

(1)android中获取当前程序路径
getApplicationContext().getFilesDir().getAbsolutePath()

(2)android取已安装的程序列表
List<PackageInfo> packageInfoList =  getPackageManager().getInstalledPackages(0);

(3)对安装路径的说明

http://developer.android.com/guide/appendix/install-location.html

setInstallLocation getInstallLocation

posted @ 2012-09-25 11:42  陈哈哈  阅读(8375)  评论(0编辑  收藏  举报