Is it possible to read only the history?
By using the following code, I am able to get both history and bookmarks, but I want to read the History only.
String[] proj = new String[] { Browser.BookmarkColumns.TITLE, Browser.BookmarkColumns.URL };
String chnHistory = Browser.BookmarkColumns.BOOKMARK + " = 0"+" OR visits > 0"; // 0 = history, 1 = bookmark
mycur = getContentResolver().query(Browser.BOOKMARKS_URI, proj, chnHistory, null, null);
int count = mycur.getCount();
mycur.moveToFirst();
array = new ArrayList<String>();
if (mycur.moveToFirst() && count > 0)
{
while (count > 0)
{
array.add(mycur.getString(Browser.HISTORY_PROJECTION_URL_INDEX));
count--;
mycur.moveToNext();
}//End of while loop
}//End of if block
if(array.size() > 0)
{
for (int i = 0; i < array.size(); i++)
{
Log.e("result ", array.get(i));
}
}