<tfoot id='l1Sgf'></tfoot>

    <i id='l1Sgf'><tr id='l1Sgf'><dt id='l1Sgf'><q id='l1Sgf'><span id='l1Sgf'><b id='l1Sgf'><form id='l1Sgf'><ins id='l1Sgf'></ins><ul id='l1Sgf'></ul><sub id='l1Sgf'></sub></form><legend id='l1Sgf'></legend><bdo id='l1Sgf'><pre id='l1Sgf'><center id='l1Sgf'></center></pre></bdo></b><th id='l1Sgf'></th></span></q></dt></tr></i><div id='l1Sgf'><tfoot id='l1Sgf'></tfoot><dl id='l1Sgf'><fieldset id='l1Sgf'></fieldset></dl></div>

    <small id='l1Sgf'></small><noframes id='l1Sgf'>

          <bdo id='l1Sgf'></bdo><ul id='l1Sgf'></ul>
      1. <legend id='l1Sgf'><style id='l1Sgf'><dir id='l1Sgf'><q id='l1Sgf'></q></dir></style></legend>

        Android - 是否有可能以编程方式安装引荐来源网址

        Android - Is it possible to get install referrer programmatically(Android - 是否有可能以编程方式安装引荐来源网址)
        • <tfoot id='JO84Q'></tfoot>
            <i id='JO84Q'><tr id='JO84Q'><dt id='JO84Q'><q id='JO84Q'><span id='JO84Q'><b id='JO84Q'><form id='JO84Q'><ins id='JO84Q'></ins><ul id='JO84Q'></ul><sub id='JO84Q'></sub></form><legend id='JO84Q'></legend><bdo id='JO84Q'><pre id='JO84Q'><center id='JO84Q'></center></pre></bdo></b><th id='JO84Q'></th></span></q></dt></tr></i><div id='JO84Q'><tfoot id='JO84Q'></tfoot><dl id='JO84Q'><fieldset id='JO84Q'></fieldset></dl></div>
            • <bdo id='JO84Q'></bdo><ul id='JO84Q'></ul>
                <tbody id='JO84Q'></tbody>

                <small id='JO84Q'></small><noframes id='JO84Q'>

              1. <legend id='JO84Q'><style id='JO84Q'><dir id='JO84Q'><q id='JO84Q'></q></dir></style></legend>

                  本文介绍了Android - 是否有可能以编程方式安装引荐来源网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我注意到浏览器中的一些 Google Play 应用链接具有 referrer= 属性,这显然告诉引荐来源网址将您发送到 Google Play 中该应用的页面.

                  I have noticed some Google Play app links in the browser has the referrer= attribute to them, which obviously tells the referrer that sent you to that app's page in Google Play.

                  是否可以在我的应用程序代码中看到该引荐来源网址(如果有)?如果没有,在任何地方都可以看到它?

                  Is it possible to see that referrer (if any) in the code of my app? And if not, to see it anywhere at all?

                  推荐答案

                  你可以使用com.android.vending.INSTALL_REFERRER.

                  Google Play com.android.vending.INSTALL_REFERRER Intent 是从 Google Play 商店安装应用时广播.

                  The Google Play com.android.vending.INSTALL_REFERRER Intent is broadcast when an app is installed from the Google Play Store.

                  将此接收器添加到 AndroidManifest.xml

                  Add this receiver to AndroidManifest.xml

                  <receiver
                      android:name="com.example.android.InstallReferrerReceiver"
                      android:exported="true"
                      android:permission="android.permission.INSTALL_PACKAGES">
                      <intent-filter>
                          <action android:name="com.android.vending.INSTALL_REFERRER" />
                      </intent-filter>
                  </receiver>
                  

                  创建一个广播接收器:

                  public class InstallReferrerReceiver extends BroadcastReceiver {
                      @Override
                      public void onReceive(Context context, Intent intent) {
                          String referrer = intent.getStringExtra("referrer");
                  
                          //Use the referrer
                      }
                  }
                  

                  您可以按照此答案的步骤测试引荐跟踪.

                  You can test the referral tracking following the steps of this answer.

                  这篇关于Android - 是否有可能以编程方式安装引荐来源网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Storing and reading files from Documents directory iOS 5(从 Documents 目录存储和读取文件 iOS 5)
                  How can i use MYSQL database connection in iphone application useing cocos2d?(如何在使用 cocos2d 的 iphone 应用程序中使用 MYSQL 数据库连接?)
                  Smoothly drag a Sprite in cocos2d - iPhone(在 cocos2d 中平滑拖动一个 Sprite - iPhone)
                  CCScrollView scroll and touch events never firing(CCScrollView 滚动和触摸事件永远不会触发)
                  removing jagged edges of my ropes using antialiasing of OpenGLES(使用 OpenGLES 的抗锯齿去除绳索的锯齿状边缘)
                  cocos2d Moving between scene(cocos2d 在场景之间移动)

                  <tfoot id='bcXS7'></tfoot><legend id='bcXS7'><style id='bcXS7'><dir id='bcXS7'><q id='bcXS7'></q></dir></style></legend>

                        <i id='bcXS7'><tr id='bcXS7'><dt id='bcXS7'><q id='bcXS7'><span id='bcXS7'><b id='bcXS7'><form id='bcXS7'><ins id='bcXS7'></ins><ul id='bcXS7'></ul><sub id='bcXS7'></sub></form><legend id='bcXS7'></legend><bdo id='bcXS7'><pre id='bcXS7'><center id='bcXS7'></center></pre></bdo></b><th id='bcXS7'></th></span></q></dt></tr></i><div id='bcXS7'><tfoot id='bcXS7'></tfoot><dl id='bcXS7'><fieldset id='bcXS7'></fieldset></dl></div>
                          <bdo id='bcXS7'></bdo><ul id='bcXS7'></ul>

                          1. <small id='bcXS7'></small><noframes id='bcXS7'>

                              <tbody id='bcXS7'></tbody>