Search in sources :

Example 6 with SightServiceConnector

use of sugar.free.sightparser.handling.SightServiceConnector in project SightRemote by TebbeUbben.

the class AlertService method onStartCommand.

@Override
public int onStartCommand(Intent intent, int flags, int startId) {
    serviceConnector = new SightServiceConnector(this);
    serviceConnector.connectToService();
    serviceConnector.setConnectionCallback(this);
    return Service.START_STICKY;
}
Also used : SightServiceConnector(sugar.free.sightparser.handling.SightServiceConnector)

Example 7 with SightServiceConnector

use of sugar.free.sightparser.handling.SightServiceConnector in project SightRemote by TebbeUbben.

the class TimeSynchronizationService method onCreate.

@Override
public void onCreate() {
    alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
    serviceConnector = new SightServiceConnector(this);
    serviceConnector.addStatusCallback(this);
    serviceConnector.connectToService();
}
Also used : SightServiceConnector(sugar.free.sightparser.handling.SightServiceConnector)

Aggregations

SightServiceConnector (sugar.free.sightparser.handling.SightServiceConnector)7 Intent (android.content.Intent)2 PendingIntent (android.app.PendingIntent)1 BluetoothDevice (android.bluetooth.BluetoothDevice)1 IntentFilter (android.content.IntentFilter)1 ActionBarDrawerToggle (android.support.v7.app.ActionBarDrawerToggle)1 Crashlytics (com.crashlytics.android.Crashlytics)1 ServiceConnectionCallback (sugar.free.sightparser.handling.ServiceConnectionCallback)1 SightService (sugar.free.sightparser.handling.SightService)1 AlertService (sugar.free.sightremote.services.AlertService)1 HistorySyncService (sugar.free.sightremote.services.HistorySyncService)1 OngoingNotificationService (sugar.free.sightremote.services.OngoingNotificationService)1 HistorySendIntent (sugar.free.sightremote.utils.HistorySendIntent)1