Back to project page growthpush-android.
The source code is released under:
Apache License
If you think the Android project growthpush-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.growthpush.growthpushsample; /* w w w. j a va 2 s . co m*/ import android.app.Activity; import android.os.Bundle; import android.view.Menu; import com.growthpush.GrowthPush; import com.growthpush.model.Environment; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); GrowthPush .getInstance() .initialize(getApplicationContext(), 1071, "Ou3DgCwmMS2tBocWXGKSnRUUTyVA078n", BuildConfig.DEBUG ? Environment.development : Environment.production, true).register("955057365401"); GrowthPush.getInstance().trackEvent("Launch"); GrowthPush.getInstance().setDeviceTags(); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } }