I was able to download an apk file and stored it in my /data/data/com.android.myApp/anotherApp.apk. I was wondering if there is a way I can install this file from another app. I am currently using:
Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(filepath), "application/vnd.android.package-archive"); startActivity(intent);
我在此明确陈述:
When I run this. It gives me "Parse Error: There is a problem parsing the package". I dont know what the problem is? 1) Is it I need to store the app in the SD card? I dont want to do that 2) Permission issues? 3) corrupted package being installed?