I want to make a simple Android App that will download another app, install it and after that delete the downloaded file. I read on the internet that you can launch the install rather easy: Detect if application is installing The think is I could not find how to detect if the install finished (or has returned an error). If anyone know how to detect installation ending please let me know.
Asked
Active
Viewed 613 times
1 Answers
0
Try creating a BroadcastReceiver
with an intent filter for Intent.ACTION_PACKAGE_ADDED

Squonk
- 48,735
- 19
- 103
- 135
-
Thanks, That worked really well :) There still are a few minor tweeks that need to be done but you put me on the right track. – Petre Popescu Sep 12 '11 at 20:04
-
Great. I wasn't 100% sure if it was what you wanted but thought it was worth looking at. Glad to help. – Squonk Sep 12 '11 at 20:14