Search code examples
androidbrowser-history

browserhistory logged only with special browser


Hi i have an app which reads the browserhistory with this code

String[] proj = new String[] { Browser.BookmarkColumns.DATE, Browser.BookmarkColumns.URL };
String sel = Browser.BookmarkColumns.BOOKMARK + " = 0";
Cursor mCur = context.getContentResolver().query(Browser.BOOKMARKS_URI, proj, sel, null, Browser.BookmarkColumns.DATE + " DESC");

But it seems fom device to devie it logs only with one special browser:

s4 (4.2.2)=chrome
s5 (4.2.2)=chrome
htc one (4.2.2)=default browser
Samsung ace (4.1.2)=default browser

on what does it depend which browser logs it?


Solution

  • that depends if a browser logs to Android built-in Content Provider for the browser activity. Some browsers might, but not all of them do.

    Usually the stock browser, the one that comes installed on the device, do. But there're no guarantees that others will.