Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does “Clear Data” also kill the app?

When (in Gingerbread, 2.3.x) I hit “Clear Data” button in Menu => Manage Apps => App, “Force Close” button also becomes disabled. Does it mean that “Clear Data” also kills the app?

Also, I noticed that in Ice Cream Sandwich this doesn’t happen. So, the way “Clear Data” works is different between Gingerbread and Ice Cream Sandwich?

Update: as MisterSquonk said, Froyo (2.2.x) behaves the same way as ICS (4.x), that is doesn’t disable Force Close after you clear data of the app. Anyone knows why is the behavior so different? What it the bug in Gingerbread, or some temporary experiment, that killed the app together with clearing its data?

P.S. Couldn’t create “Gingerbread” tag, not enough reputation :) P.P.S. @MisterSquonk, Thanks for the tag :)

Update 2: Checked Honeycomb (3.2) as well, it also behaves the same way as Froyo as ICS. Only Gingerbread disables Force Close after clearing the data.

like image 799
stansult Avatar asked Mar 01 '12 07:03

stansult


People also ask

What happens if you clear the data on an app?

So, when you clear App Data, it not only clears the Cache but also resets the application, meaning you'll have more space in storage. But you will have to sign in again on Netflix. Follow these steps to Clear App Data: Step 1: Open the Settings application on your device.

Does clear all data delete everything?

If you sync a type of data, deleting it on your Android device will delete it everywhere it's synced. It'll be removed from other devices and your Google Account. Settings. Clear browsing data.

Should I clear app data?

Why should you clear app cache? The primary reason for someone to clear the application cache would be to free up storage, which might have an impact on the phone's performance. But clearing data is a much more dramatic step which is generally reserved for when an app is buggy or fails to start.


1 Answers

Clear Data does kill the app, and always has.

"Force Stop" has gone through various iterations of meanings. It used to mean to just kill all processes and services, and clearing data would also do the same as a force stop. There were also older iterations of the platform that were not as good as figuring out when to disable the button, which is probably why you are seeing it remain enabled in 2.2.

However in 3.2 I believe the meaning of "Force Stop" change to put the application in a state where it would not be able to run until the user had done something to explicitly start it (such as launching it from launcher, selecting it as an input method, etc). When that change was made, "Clear Data" continued to just kill the processes and stop its services, so the app was not in the full stopped state so the button remains enabled.

like image 54
hackbod Avatar answered Sep 20 '22 15:09

hackbod