bitQuit_Android/app/src/main/java/com/tonydicola/bletest/app/MainActivity.java
@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Grab references to UI elements.
        countDisplay = (TextView) findViewById(R.id.CigCounter);
        timeDisplay = (TextView) findViewById(R.id.Timer);

        // Get Bluetooth Radio
        adapter = BluetoothAdapter.getDefaultAdapter();

        //Test for data file --> if none exists, initialize with fake data
//        if (!history.exists())
//            fakeData();

        // 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();
    }
// OnCreate, called once to initialize the activity.
OnCreate, called once to initialize the activity.
OnCreate called once to initialize the activity .
@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        countDisplay = (TextView) findViewById(R.id.CigCounter);
        timeDisplay = (TextView) findViewById(R.id.Timer);
        adapter = BluetoothAdapter.getDefaultAdapter();
        client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();
    }
@ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . activity_main ) ; countDisplay = ( TextView ) findViewById ( R . id . CigCounter ) ; timeDisplay = ( TextView ) findViewById ( R . id . Timer ) ; adapter = BluetoothAdapter . getDefaultAdapter ( ) ; client = new GoogleApiClient . Builder ( this ) . addApi ( AppIndex . API ) . build ( ) ; }
OnCreate, called once to initialize the activity.
OnCreate called once to initialize the activity .
// Grab references to UI elements. // Get Bluetooth Radio //Test for data file --> if none exists, initialize with fake data //        if (!history.exists()) //            fakeData(); // ATTENTION: This was auto-generated to implement the App Indexing API. // See https://g.co/AppIndexing/AndroidStudio for more information.