how to find my android application's storing path of apk file
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to make an application that could send itself (apk file) by bluetooth. but i have trouble with finding the apk file path. i tried this code: final PackageManager pm = this.getPackageManager(); List<PackageInfo> packages = pm.getInstalledPackages(PackageManager.GET_META_DATA); String st = null; for (PackageInfo packageInfo : packages) { if(packageInfo.packageName.contains("testbutton")) st=packageInfo.packageName; } Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); intent.setType("image/*"); String uri = "/data/app/";