Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onClearData(View view) {
- try {
- boolean isCleared = ((ActivityManager) getSystemService(ACTIVITY_SERVICE)).clearApplicationUserData();
- if (!isCleared) {
- Toast.makeText(this, "Not able to clear the data", Toast.LENGTH_SHORT).show();
- }
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment