Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 查询索引的深度链接_Android_Deep Linking - Fatal编程技术网

Android 查询索引的深度链接

Android 查询索引的深度链接,android,deep-linking,Android,Deep Linking,是否有api来查询应用程序中已索引的深层链接?有一个API来索引深度链接,但我找不到任何文档来查询这些索引的深度链接 下面是用于深度链接的google dev示例: import com.google.android.gms.appindexing.Action; import com.google.android.gms.appindexing.AppIndex; import com.google.android.gms.common.api.GoogleApiClient; ... pub

是否有api来查询应用程序中已索引的深层链接?有一个API来索引深度链接,但我找不到任何文档来查询这些索引的深度链接

下面是用于深度链接的google dev示例:

import com.google.android.gms.appindexing.Action;
import com.google.android.gms.appindexing.AppIndex;
import com.google.android.gms.common.api.GoogleApiClient;
...
public class MainActivity extends Activity {

  static final Uri APP_URI = Uri.parse("android-app://com.example.android.recipes/http/recipe-app.com/recipes");
  static final Uri WEB_URL = Uri.parse("http://recipe-app.com/recipes/");
  private GoogleApiClient mClient;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    ...
    mClient = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();
    ...
  }

  @Override
  public void onStart() {
    super.onStart();
    ...

    // Connect your client
    mClient.connect();

    // Define a title for your current page, shown in autocompletion UI
    String title = "App Indexing API Title";

    // Construct the Action performed by the user
    Action viewAction = Action.newAction(Action.TYPE_VIEW, title, WEB_URL, APP_URI);

    // Call the App Indexing API start method after the view has completely rendered
    AppIndex.AppIndexApi.start(mClient, viewAction);
    ...
  }

  @Override
  public void onStop() {
    ...
    // Call end() and disconnect the client
    String title = "App Indexing API Title";
    Action viewAction = Action.newAction(Action.TYPE_VIEW, title, WEB_URL, APP_URI);
    AppIndex.AppIndexApi.end(mClient, viewAction);
    mClient.disconnect();
    ...

    super.onStop();
  }
}
我没有看到任何关于如何从GoogleAppClient中提取这些深层链接的文档