0

i want to access the Google Play Store(formerly known as Android Market) search history from within my app. after accessing the history i want to delete some of the items.

This feature is available in many apps but i am not able to access it. thanks is advance.

EDIT: I want to implement this programmatically from with-in my app on a click of button

Akshay Sethi
  • 803
  • 3
  • 13
  • 22

3 Answers3

2

I delete search history market ,but not detail history.

public boolean isHistoryMarket(Context paramContext)
{
    if (paramContext == null && isGoogleMarketInstalled())
        return false;

        try
        {
            new SearchRecentSuggestions(paramContext,
                    "com.google.android.finsky.RecentSuggestionsProvider",
                    1).clearHistory();

            return true;
        }
        catch (Exception e)
        {
            return false;
        }
}
Long Dang
  • 21
  • 2
  • 1
    How did you fix the SecurityException? java.lang.SecurityException: Permission Denial: opening provider com.google.android.finsky.providers.RecentSuggestionsProvider – Juampa Jan 22 '15 at 08:08
0

Go to Settings --> Apps --> Google Play Services --> Clear Data.

Scott Helme
  • 4,786
  • 2
  • 23
  • 35
0

Play App -> Menu -> Settings -> Clear Search history

MariusBudin
  • 1,277
  • 1
  • 10
  • 21