I am not able to launch my Broadcast receiver which is part of a STOPPED Application,
I had registered for PACKAGE_ADDED event in the broadcast receiver, The application works properly till 3.0 but above 3.1 I am facing this issue. I used the below lines to send the intent.
Intent intent = new Intent(MY_INTENT_ACTION);
intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
sendBroadcast(intent);
Please let me know if I need to do anything more.
Adding More Info:
My Intention is i wanted to listen for PACKAGE_ADDED Broadcast event and Perfrom some processing in my OnReceive, Please let me know if there is any possiblity to listen for this event with out launching application. A sample code to achive this would be helpful. Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…