Android?????????????????????????е???????
???????????? ???????[ 2013/5/21 13:20:55 ] ????????
?????????????Android App??????????????????ó???????????????????????????????????????
???????
??????Setting -> Apps -> ??????????????ó??? -> ???Clear data
???????????????App??????????????????????
??????????
??????????????????????????????????????磺
adb shell pm clear my.app.package
?????????????????????????????????
?????????
????????????????????????????????????????????????Case????????????App?????????????????????????????Case???????????μ????????У?????????
????????????????????????
?????????????VBS?????????????????
Set objWsh = CreateObject("Wscript.Shell")
objWsh.Run "adb shell pm clear my.app.package"??1?? True
??????????????Android Test Project????????????????????????
Context context = this.getInstrumentation().getTargetContext().getApplicationContext();
Editor edit = context.getSharedPreferences(m_strPreferencesName?? Context.MODE_PRIVATE).edit();
edit.clear();
edit.commit();
??????????????????????“m_strPreferencesName”????????????????????????????????е?Share Preferences????????????
?????????
???????Java ??Java.lang.runtime?????????????????????????Command????????Щ????????????Android???????????????????
try
{
Runtime.getRuntime().exec("adb shell pm clear com.my.package");
}
catch(IOException ex)
{
ex.printStackTrace();
}
?????????????κ?????????????????App???????
???????????Andorid????????????????App?????????App???????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11