Re: [android-developers] Re: "factory data reset" in source code?
sendBroadcast(new Intent("android.intent.action.MASTER_CLEAR"));
need permission: android.permission.MASTER_CLEAR
system receiver is MasterClearReceiver.java
BUT it must be a system app , your own app can't do it
2012/5/22 Jim Graham <spooky130u@gmail.com>
On Mon, May 21, 2012 at 02:10:18PM -0700, Serj wrote:Let me see if I understand you correctly.... You want to reset the
> Hi Kris,
> I have got the source code, but I ask whether someone can tell me
> which class (Java Class) implements the "Factory data reset" in code
> behind. "Factory data reset" is normal menu option in android, which
> to find under "Settings/Privacy/Factory data reset". Or who can tell
> me, how can I reset database code behind. I want make an Application,
> which reset all kind of data on the device. Thx
ENTIRE DEVICE just to reset a database? Have you, by any chance, ever
(seriously) considered using a nuclear warhead to kill a mosquito? :-)
Delete the database and re-create it. It's reset. And you (or your
users) don't lose everything ELSE on the device along with the database.
Later,
--jim
--
THE SCORE: ME: 2 CANCER: 0
73 DE N5IAL (/4) | Peter da Silva: No, try "rm -rf /"
spooky130u@gmail.com | Dave Aronson: As your life flashes before
< Running FreeBSD 7.0 > | your eyes, in the unit of time known as an
ICBM / Hurricane: | ohnosecond.... (alt.sysadmin.recovery)
30.44406N 86.59909W |
Android Apps Listing at http://www.jstrack.org/barcodes.html
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home