是否可以让我的应用程序接收到它在第一次启动的自定义参数传递到Android市场? [英] Is is possible to pass a custom argument to android market so my app receives it on first launch?
问题描述
有没有办法通过一个自定义的参数到Android市场(或其他方式),所以我的应用程序接收它被安装后,参数(和运行的第一次)。
让我来解释一下。
- 在开始使用参数1意图=你好world1(自定义参数 所有的 时间)
- 在安装从Android Market的应用程序。
- 打开应用程序的第一次。
- 应用显示了味精你好world1
任何情况下都行,不只是意图到Android市场。
大多数的应用程序会通过律师code扫描仪与HTTP绑定模式安装的时间。因此,浏览器的解决方法也是可能的,HTML5客户端存储(存储参数的浏览器,并从那里第一次我的应用程序运行得到它)
更新
一个解决方案是创建一个cookie,什么浏览器,然后从我安装的应用程序访问它。那可能吗?如果是这样你能提供有关的一些信息?浏览器可以共享数据与应用程序?
您可以发布这样的
一个链接
<一href="http://market.android.com/details?id=your.package.name&referrer=your_referrer_parameter">http://market.android.com/details?id=your.package.name&referrer=your_referrer_parameter
之后用户点击该链接并安装应用程序的广播接收器将接收广播com.android.vending.INSTALL_REFERRER与your_referrer_parameter的价值。
更多信息:
<一href="http://$c$c.google.com/mobile/analytics/docs/android/#android-market-tracking">http://$c$c.google.com/mobile/analytics/docs/android/#android-market-tracking
<一href="http://stackoverflow.com/questions/4093150/get-referrer-after-installing-app-from-android-market">Get从Android Market
安装应用程序后,引荐
获取Android的谷歌Analytics(分析)引荐标记
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.
- Start an intent with argument1="Hello world1" (custom argument every time)
- Install the app from android market.
- Open the app for the first time.
- 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?
You can publish a link like that
http://market.android.com/details?id=your.package.name&referrer=your_referrer_parameter
After user clicks this link and installs the application your broadcast receiver will receive a broadcast com.android.vending.INSTALL_REFERRER with "your_referrer_parameter" value.
More info:
http://code.google.com/mobile/analytics/docs/android/#android-market-tracking
Get referrer after installing app from Android Market
Get Android Google Analytics referrer tag
这篇关于是否可以让我的应用程序接收到它在第一次启动的自定义参数传递到Android市场?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!