android获取应用程序的安装位置

//    获取当前程序路径
    getApplicationContext (). getFilesDir (). getAbsolutePath ();

//  获取该程序的安装包路径
     String path=getApplicationContext().getPackageResourcePath();

//  获取程序默认数据库路径
     getApplicationContext().getDatabasePath(s) .getAbsolutePath() ;

你可能感兴趣的:(android获取应用程序的安装位置)