Search in sources :

Example 6 with Bus

use of cl.smartcities.isci.transportinspector.backend.Bus in project androidApp by InspectorIncognito.

the class SplashScreenActivity method onNewIntent.

@Override
public void onNewIntent(Intent intent) {
    Bundle extras = intent.getExtras();
    if (extras != null) {
        if (extras.containsKey("EVALUATION_BUS")) {
            Bus busEvaluation = getIntent().getParcelableExtra("EVALUATION_BUS");
            NotificationManager manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
            manager.cancel(81287);
            bundle.putParcelable("EVALUATION_BUS", busEvaluation);
        }
    }
}
Also used : Bus(cl.smartcities.isci.transportinspector.backend.Bus) NotificationManager(android.app.NotificationManager) Bundle(android.os.Bundle)

Aggregations

Bus (cl.smartcities.isci.transportinspector.backend.Bus)6 Test (org.junit.Test)4 BusStop (cl.smartcities.isci.transportinspector.backend.BusStop)3 DetectedActivity (com.google.android.gms.location.DetectedActivity)2 NotificationManager (android.app.NotificationManager)1 Bundle (android.os.Bundle)1 BusSelectionAdapter (cl.smartcities.isci.transportinspector.adapters.dialogAdapters.BusSelectionAdapter)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 Before (org.junit.Before)1