@Override
  protected void onStart() {

    super.onStart();
    googleClient.connect();
    // ATTENTION: This was auto-generated to implement the App Indexing API.
    // See https://g.co/AppIndexing/AndroidStudio for more information.
    Action viewAction =
        Action.newAction(
            Action.TYPE_VIEW,
            "Maps Page",
            Uri.parse("http://host/path"),
            Uri.parse("android-app://com.example.darragh.firstwearapplication/http/host/path"));
    AppIndex.AppIndexApi.start(googleClient, viewAction);
  }
  @Override
  public void onStop() {
    super.onStop();

    // ATTENTION: This was auto-generated to implement the App Indexing API.
    // See https://g.co/AppIndexing/AndroidStudio for more information.
    Action viewAction =
        Action.newAction(
            Action.TYPE_VIEW, // TODO: choose an action type.
            "Cadastro Page", // TODO: Define a title for the content shown.
            // TODO: If you have web page content that matches this app activity's content,
            // make sure this auto-generated web page URL is correct.
            // Otherwise, set the URL to null.
            Uri.parse("http://host/path"),
            // TODO: Make sure this auto-generated app deep link URI is correct.
            Uri.parse("android-app://fitcard.app/http/host/path"));
    AppIndex.AppIndexApi.end(client, viewAction);
    client.disconnect();
  }
Esempio n. 3
0
  @Override
  public void onStart() {
    super.onStart();

    // ATTENTION: This was auto-generated to implement the App Indexing API.
    // See https://g.co/AppIndexing/AndroidStudio for more information.
    client.connect();
    Action viewAction =
        Action.newAction(
            Action.TYPE_VIEW, // TODO: choose an action type.
            "SearchOrders Page", // TODO: Define a title for the content shown.
            // TODO: If you have web page content that matches this app activity's content,
            // make sure this auto-generated web page URL is correct.
            // Otherwise, set the URL to null.
            Uri.parse("http://host/path"),
            // TODO: Make sure this auto-generated app URL is correct.
            Uri.parse("android-app://com.volkdem.ecashier.officer/http/host/path"));
    AppIndex.AppIndexApi.start(client, viewAction);
  }