Click here to Skip to main content
12,300,878 members (66,109 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Mobile Android Browser
Hi Friends,

my app need to access browser histories from a android phone?? how can i access it..

pls help me....
Posted 6-Oct-12 20:27pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

i solved.

Cursor mycur = managedQuery(Browser.BOOKMARKS_URI, Browser.HISTORY_PROJECTION, null, null, null);
        int count = mycur.getCount();
        mycur.moveToFirst();
        if(mycur.moveToFirst() && count>0)
        {
            while(count>0)
            {
                Log.e("title",mycur.getString(Browser.HISTORY_PROJECTION_URL_INDEX));
            //  histories[j]=mycur.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX);
                j++;
                count--;
                mycur.moveToNext();
            }
        }
  Permalink  
Comments
Sandeep Mewara 7-Oct-12 3:43am
   
Great! :thumbsup:
Have 5 for reporting the solution.
ridoy 7-Oct-12 3:47am
   
good..+5
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

See if the following discussion help: Android read browser historyAndroid read browser history[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
Comments
Rajesh Sanandiya 22-Nov-12 8:43am
   
Thank you,
if you have Idea about ,get time of PageLeave From Browser.i can get pageLoadTime.

if you have any idea about watch on Browser pageLoad Event Backround using Service?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 7 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100