Clear data in android using coding
问题 I want to clear data through coding for my application. Right now I am Clearing Data from Settings->Applications->Manage Application->My Application-> Clear Data . But I want to do it through coding. Please help me if any one have answers. 回答1: Use Context's getFilesDir method to get the directory, and then delete all directory and data as explained here. 回答2: Using MByD's code to delete a dir, delete the folder /data/app/my.app.name ;-) 回答3: If the data is "Internal" to the application, it