in my app i run a service in which i keep record of incoming and out going calls on text file(saved it on internal storage) using broadcastReciever. but when i press clear data button(settings=>apps=>Myapp=>clear data) my service also stops. i used Log.d()
in onDestroy()
method but it is not logged in logcat when i press clear data
.
i read this question having same problem but i didn't find any solution. then i went through Developer Guide. i am really confused.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
The data associated the the app will no longer persist on clearing. To avoid this you need to sign your app as a system app.
Edit: Example of working code: