Is there a way to pass a custom argument to android market (or any other way) so my app receives the argument after it gets installed (and run for the first time).

Let me explain.

  1. Start an intent with argument1="Hello world1" (custom argument every time)
  2. Install the app from android market.
  3. Open the app for the first time.
  4. App shows the msg "Hello world1"

Any case will do, not just intent to android market.

Most of the time the app will be installed via Barcode scanner with a binded http schema. So a browser workaround is possible too, HTML5 Client Side Storage, (store argument to browser and get it from there the first time my app runs)

Update

A solution would be to create a cookie,or something to the browser and then access it from the application i installed. Is that possible? If so can you provide some information about that? Can browsers share data with applications?

Edit
Report