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


作者:kissazi2
出处:http://www.cnblogs.com/kissazi2/
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

原文地址:https://www.cnblogs.com/kissazi2/p/2701298.html