Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Friends,

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

pls help me....
Posted

i solved.

C#
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();
            }
        }
 
Share this answer
 
Comments
Sandeep Mewara 7-Oct-12 3:43am    
Great! :thumbsup:
Have 5 for reporting the solution.
ridoy 7-Oct-12 3:47am    
good..+5
See if the following discussion help: Android read browser historyAndroid read browser history[^]
 
Share this answer
 
 
Share this answer
 
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900