Skip to content Skip to sidebar Skip to footer

Clear Android Maps History Programmatically

I want to programmatically clear the history of the android maps (and navigation) application. I know there is a way to clear the browser history via Browser.clearSearches(getConte

Solution 1:

Got a reply from Richard, developer of aClean:

To clear Google-Maps-Recent-Search-Suggestions:

SearchRecentSuggestionsmapsrs=newSearchRecentSuggestions(this.getBaseContext(), "com.google.android.maps.SearchHistoryProvider", 1);
mapsrs.clearHistory();

Still doesn't clear recent destination of Navigation, tried but there seems to be no equivalent..?

IMPORTANT NOTE:

Once you do mapsrs.clearHistory(); Afterwards when the Maps-Application gets force-stopped afterwards, your Application will be killed, too. Probably I'm missing to unregister/unsync the Provider. But I have abandoned to try to reset it now anyways.

Post a Comment for "Clear Android Maps History Programmatically"