Search in sources :

Example 1 with WatchUpdaterService

use of com.eveningoutpost.dexdrip.wearintegration.WatchUpdaterService in project xDrip-plus by jamorham.

the class Home method startWatchUpdaterService.

public static void startWatchUpdaterService(Context context, String action, String logTag, String key, boolean value) {
    final boolean wear_integration = Pref.getBoolean("wear_sync", false);
    if (wear_integration) {
        Log.d(logTag, "start WatchUpdaterService with " + action);
        context.startService(new Intent(context, WatchUpdaterService.class).setAction(action).putExtra(key, value));
    }
}
Also used : WatchUpdaterService(com.eveningoutpost.dexdrip.wearintegration.WatchUpdaterService) PendingIntent(android.app.PendingIntent) Intent(android.content.Intent) RecognizerIntent(android.speech.RecognizerIntent)

Example 2 with WatchUpdaterService

use of com.eveningoutpost.dexdrip.wearintegration.WatchUpdaterService in project xDrip-plus by jamorham.

the class Home method startWatchUpdaterService.

public static void startWatchUpdaterService(Context context, String action, String logTag, String key, String value) {
    final boolean wear_integration = Pref.getBoolean("wear_sync", false);
    if (wear_integration) {
        Log.d(logTag, "start WatchUpdaterService with " + action);
        context.startService(new Intent(context, WatchUpdaterService.class).setAction(action).putExtra(key, value));
    }
}
Also used : WatchUpdaterService(com.eveningoutpost.dexdrip.wearintegration.WatchUpdaterService) PendingIntent(android.app.PendingIntent) Intent(android.content.Intent) RecognizerIntent(android.speech.RecognizerIntent)

Example 3 with WatchUpdaterService

use of com.eveningoutpost.dexdrip.wearintegration.WatchUpdaterService in project xDrip by NightscoutFoundation.

the class Home method startWatchUpdaterService.

public static void startWatchUpdaterService(Context context, String action, String logTag, String key, String value) {
    final boolean wear_integration = Pref.getBoolean("wear_sync", false);
    if (wear_integration) {
        Log.d(logTag, "start WatchUpdaterService with " + action);
        context.startService(new Intent(context, WatchUpdaterService.class).setAction(action).putExtra(key, value));
    }
}
Also used : WatchUpdaterService(com.eveningoutpost.dexdrip.wearintegration.WatchUpdaterService) PendingIntent(android.app.PendingIntent) Intent(android.content.Intent) RecognizerIntent(android.speech.RecognizerIntent)

Example 4 with WatchUpdaterService

use of com.eveningoutpost.dexdrip.wearintegration.WatchUpdaterService in project xDrip by NightscoutFoundation.

the class Home method startWatchUpdaterService.

public static void startWatchUpdaterService(Context context, String action, String logTag, String key, boolean value) {
    final boolean wear_integration = Pref.getBoolean("wear_sync", false);
    if (wear_integration) {
        Log.d(logTag, "start WatchUpdaterService with " + action);
        context.startService(new Intent(context, WatchUpdaterService.class).setAction(action).putExtra(key, value));
    }
}
Also used : WatchUpdaterService(com.eveningoutpost.dexdrip.wearintegration.WatchUpdaterService) PendingIntent(android.app.PendingIntent) Intent(android.content.Intent) RecognizerIntent(android.speech.RecognizerIntent)

Aggregations

PendingIntent (android.app.PendingIntent)4 Intent (android.content.Intent)4 RecognizerIntent (android.speech.RecognizerIntent)4 WatchUpdaterService (com.eveningoutpost.dexdrip.wearintegration.WatchUpdaterService)4