• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps data used by android browser is deleted from code is that possible??

hm, hello :-)
i'm a student of android study.
i've question..

maybe.. Can I close web browser through source by force?

Code:
 Browser.canClearHistory(getContentResolver());
 Browser.clearHistory(getContentResolver());
 Browser.clearSearches(getContentResolver());
 CacheManager.cacheDisabled();
 
 am.restartPackage("com.android.browser");
 am.killBackgroundProcesses("com.android.browser");
 am.killBackgroundProcesses("com.media");
 am.restartPackage("com.media");

<&#53076;&#46300;>

I tried to close web browser using this code.
But it didn't work as well as I wanted.
what I wanted to do are the deletion current position of
webpage and move to home. However It didn't do that.
is there another solution?
and if i can't close by force..can i delete data of used
webpage of browser?
 
Back
Top Bottom