Clear Android Browser History

流过昼夜 提交于 2019-12-03 08:33:10

I tried to close the browser via the ActivityManager and it works fine. I tested this on an HTC 2.2 and it works perfect.

Maybe you should also try this:

am.killBackgroundProcesses("com.google.android.browser");

in case the browser on your phone is not at com.android.browser

or even try to finish the activity: com.android.browser.BrowserActivity

Hope this helps!

If your device is rooted, you can use the command below, to clear all data of the application. I don't know if this is applicable for each device, as it depends on the package manager

Runtime.getRuntime().exec("su -c /system/bin/pm clear com.android.browser");
Harshdeep

Much like a computer browser, Android browsers will keep all records that you search onto the device. If you’re worried about browser history or don’t want any records in your Android, you can remove all browser history within minutes. After delete your browser records will delete all cache data where you’re login into Chrome.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!