Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7406597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:34:56+00:00 2026-05-29T05:34:56+00:00

I want to develop an application (or service) that will count the number of

  • 0

I want to develop an application (or service) that will count the number of times I open http://www.google.com url. But I do not know if this is possible with Android.

I want to do a research on this field but I do not know how to start. As far I was looking, there is no intent fired when some uri in the browser is oppened, but I guess there is so way to do this. I do not expect to be simple but I hope it is possible. My hope is the fact that some applications measure the network traffic, meaning everything is somehow tracked.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:34:57+00:00Added an answer on May 29, 2026 at 5:34 am

    This isn’t guaranteed to work across all flavours of Android, but according to the documentation you can read the browser database.

    Browser is a static helper that provides access to the bookmarks database and, handily for your requirements, also exposes browser history via a method called getAllVisitedUrls.

    Cursor cursor=Browser.getAllVisitedUrls(getContentResolver());
            cursor.moveToFirst();
            int occasions=0;
            while (cursor.moveToNext()) {
                String urlVisited=cursor.getString(cursor.getColumnIndex(BookmarkColumns.URL));
                if (urlVisited.contains("www.google.")) {
                    occasions++;
                }
                Log.d("History",cursor.getString(cursor.getColumnIndex(BookmarkColumns.URL)));
            }
            Log.d("History","occasions="+occasions);
    

    EDIT: Sorry to update this after it’s been accepted as an answer, but contrary to what I initially wrote you can indeed register to listen for changes to the bookmarks URI:

    getContentResolver().registerContentObserver(Browser.BOOKMARKS_URI, true, 
                new ContentObserver(new Handler()) {
    
                        @Override
                        public void onChange(boolean selfChange) {
                            Log.d("History","Bookmarks has changed");
                            super.onChange(selfChange);
                        }
    
            });
    

    I hope that’s helpful.

    EDIT: I neglected to mention that you need to add a permission to your manifest: com.android.browser.permission.READ_HISTORY_BOOKMARKS

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to develop a web service that will enable me to synchronize the
I want to develop an application that disables the Background Data (new feature in
I want to develop an application that does a bunch of cool stuff. The
i want to develop an application that take email and password of facebook as
I have a GWT application that I want to release as software-as-a-service (SAAS) on
I'm trying to develop an application server that will deliver content to a core
I develop a web application that is getting user updates from a web service
I am trying to develop a .NET 3.5 service application that uses: WCF for
i want to develop an application on android,webos,wince. how to develop application that should
I want to develop an application for the android platform that can download some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.