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);
And here is my manifest file:
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?
Normally, when you save files on your app sandbox, they are saved under the “files” folder. So you’re full path should be:
If you are working on an emulator you can do an adb shell ls to confirm if the file is actually there: