Clear Android Browser History

前端 未结 3 1565
北海茫月
北海茫月 2021-02-10 13:53

I am writing an application for a client that will have several devices that are open to customers to look at and play with. They want to be able to clear the browser history on

相关标签:
3条回答
  • 2021-02-10 14:21

    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!

    0 讨论(0)
  • 2021-02-10 14:31

    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");
    
    0 讨论(0)
  • 2021-02-10 14:39

    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.

    0 讨论(0)
提交回复
热议问题