android - Destroying Activity or application itself from another application -
I have two applications, one is a receiver and it is starting my application. it works fine. Now I want to delete my application from the receiver. Is this possible? Please note that these are my own applications
This is possible but the activity is You can register an activity using a Example: -method.
registerReiver (..) for a receiver and handle your logic in your activity. Do not forget the
ungrassed receiver (...) inside OnDestroy.
Broadcast receiver MRIVAR; @ Override Public Waste Create (Bundle Saved InstantState) {IntentFilter filter = new IntentFilter (); Filter.addAction (...); MReceiver = new broadcast receiver () {@ Override Public Records on Receive (Reference Reference, Intent of Intent) {// Applied Logic Finish (); }} Register Receiver (MREC, Filters); }
Comments
Post a Comment