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

  • SEARCH
  • Home
  • 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 6361263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:45:14+00:00 2026-05-24T23:45:14+00:00

Basic Desired Functionality When a user on an android phone visits the URL http://www.example.com?key=asdf

  • 0

Basic Desired Functionality

When a user on an android phone visits the URL http://www.example.com?key=asdf I would like the value asdf to be saved in a way that any app on the phone can access it at a later point.

The End Goal

The goal is a simple way to invite your friends into the app by directing them to a URL. The URL has a link to download my app from the market, so the only thing required to accept the invite is visiting that URL and clicking on a single link. Once you’ve installed the app, it can then grab the value asdf and connect you with whoever invited you.

Things I’ve Tried

My original thought was using something like localStorage or cookies, but it seems unlikely a solution involving either of those exists due to security concerns.

The best solution I’ve come up with so far is using the com.android.browser.permission.READ_HISTORY_BOOKMARKS permission to read through the user’s history in search of URL’s from my domain. This is a pretty good solution, but it does not work for other browsers like mobile Firefox. In addition, it requires a shady permission, which I would like to avoid if possible.

  • 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-24T23:45:15+00:00Added an answer on May 24, 2026 at 11:45 pm

    To achieve your actual goal you can use the same method that Google Analytics uses.
    The basic idea is that you you use a URL pointed at the app store with a specifically formatted referrer value that gets passed on to the app. Though the format of this string is supposed to be able to be anything, there have been reports of problems if you don’t follow the actual Google Analytics format.

    example:

    http://market.android.com/details?id=com.example.myapp&referrer=utm_source%3Dfriend%26utm_medium%3Dinvite%26utm_content%3Dasdf%26utm_campaign%3Dinvite
    

    More documentation specific to analytics can be found at Android Google Analytics

    You then will need to implement a broadcast receiver for the type com.android.vending.INSTALL_REFERRER

    In your manifest it will look like:

    <!-- Used for install referrer tracking -->
    <receiver android:name=".MyReceiverClass" android:exported="true">
      <intent-filter>
        <action android:name="com.android.vending.INSTALL_REFERRER" />
      </intent-filter>
    </receiver>
    

    See Android docs for details on implementing a BroadcastReceiver.

    This approach requires that the friend download the app using the Google Marketplace (by clicking on the generated URL) on the device, as it is the MarketPlace app that takes the referrer data and passes it on to the app.

    NOTE: While the approach should work there may be problems with the current MarketPlace app that prevent this from working. see bug: http://code.google.com/p/android/issues/detail?id=19247

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

Sidebar

Related Questions

My basic question is, in .NET, how do I clone WebControls? I would like
The basic idea is to create a page that gives the user the ability
NO MySQL answers please! The basic query is as follows (assume A is Key)
I have a fairly simple user control that represents a basic login control. So
Basic requests are: human readable / text format (for easy version control) online (for
Basic question : How to I create a bidirectional one-to-many map in Fluent NHibernate?
Basic premise: I have a Room which publishes an event when an Avatar enters
Basic question: How do I load an Excel template for use with POI and
Basic doubt...If QTP generates vbscript code as we record actions, can't we directly write
Basic C# syntax question: So I have this class public class BrandQuery<T> : Query<T>

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.