-1

I want to create such a service which start when any new application is installing on android device. so how to know any application getting installed in android device, is there any Intent event is fired ?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Prashant Kadam
  • 1,207
  • 4
  • 18
  • 30

1 Answers1

5
<receiver android:name="r1">

<intent-filter>

<action android:name="android.intent.action.PACKAGE_ADDED"/> <data android:scheme="package"/>

</intent-filter> 

</receiver>

you can try this broadcast receiver....

also go through

"android.intent.action.PACKAGE_REMOVED"
"android.intent.action.PACKAGE_REPLACED"

might come in handy...

drulabs
  • 3,071
  • 28
  • 35