문제

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 ?

도움이 되었습니까?

해결책

<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...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top