Ongoing Notification Disappears When Clearing Memory From The Device In Android?
My problem is whenever I clear memory on 'Task Manager/RAM' tab of my android device my notification disappears. What can I do to make my ongoing notification stay even if I clear
Solution 1:
Try to follow the answer in this thread by using the <action android:name="android.intent.action.PACKAGE_RESTARTED" />
in your Manifest file.
According to it, PACKAGE_RESTARTED
is called when you clear memory, and setting this restarts your receiver after clearing memory.
For more information, check this documentation about ACTION_PACKAGE_RESTARTED
Post a Comment for "Ongoing Notification Disappears When Clearing Memory From The Device In Android?"