Indication when ap moves to background, when packages gets installed
<p>Am writing an android application which in background will monitor the device.I want to get an indication whenever an application moves to background/foreground.Also I want to get an indication when an application installed or gets uninstalled from the android device.
how can this be acheived in android ?please help .thank you </p>
