3

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.

Community
  • 1
  • 1
Petre Popescu
  • 1,950
  • 3
  • 24
  • 38

1 Answers1

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