Skip to content
Snippets Groups Projects
Commit c59fa535 authored by Volker Richert's avatar Volker Richert
Browse files

remove appindex stuff

parent e4538935
Branches
Tags
No related merge requests found
...@@ -88,11 +88,6 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc ...@@ -88,11 +88,6 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc
private Handler mUiRefreshHandler = new Handler(); private Handler mUiRefreshHandler = new Handler();
private Runnable mUiRefreshRunnable = new RefreshDisplayRunnable(); private Runnable mUiRefreshRunnable = new RefreshDisplayRunnable();
private Realm mRealm; private Realm mRealm;
/**
* ATTENTION: This was auto-generated to implement the App Indexing API.
* See https://g.co/AppIndexing/AndroidStudio for more information.
*/
private GoogleApiClient client;
public static void setActivePumpMac(long pumpMac) { public static void setActivePumpMac(long pumpMac) {
activePumpMac = pumpMac; activePumpMac = pumpMac;
...@@ -215,9 +210,6 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc ...@@ -215,9 +210,6 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc
mTextViewLog = (TextView) findViewById(R.id.textview_log); mTextViewLog = (TextView) findViewById(R.id.textview_log);
mChart = (LineChart) findViewById(R.id.chart); mChart = (LineChart) findViewById(R.id.chart);
// ATTENTION: This was auto-generated to implement the App Indexing API.
// See https://g.co/AppIndexing/AndroidStudio for more information.
client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();
} }
@Override @Override
...@@ -472,42 +464,6 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc ...@@ -472,42 +464,6 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc
return mActivePump; return mActivePump;
} }
/**
* ATTENTION: This was auto-generated to implement the App Indexing API.
* See https://g.co/AppIndexing/AndroidStudio for more information.
*/
public Action getIndexApiAction() {
Thing object = new Thing.Builder()
.setName("Main Page") // TODO: Define a title for the content shown.
// TODO: Make sure this auto-generated URL is correct.
.setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
.build();
return new Action.Builder(Action.TYPE_VIEW)
.setObject(object)
.setActionStatus(Action.STATUS_TYPE_COMPLETED)
.build();
}
@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();
AppIndex.AppIndexApi.start(client, getIndexApiAction());
}
@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.
AppIndex.AppIndexApi.end(client, getIndexApiAction());
client.disconnect();
}
private class StatusMessageReceiver extends BroadcastReceiver { private class StatusMessageReceiver extends BroadcastReceiver {
private class StatusMessage { private class StatusMessage {
private long timestamp; private long timestamp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment