public static void startBtService(final Context context) { Log.d(TAG, "startBtService: " + DexCollectionType.getDexCollectionType()); stopBtService(context); final CollectionServiceStarter collectionServiceStarter = new CollectionServiceStarter(context); switch (DexCollectionType.getDexCollectionType()) { case DexcomShare: collectionServiceStarter.startBtShareService(); break; case DexcomG5: collectionServiceStarter.startBtG5Service(); break; case Medtrum: JoH.startService(getCollectorServiceClass(Medtrum)); default: collectionServiceStarter.startBtWixelService(); break; } }
public static void startBtService(final Context context) { Log.d(TAG, "startBtService: " + DexCollectionType.getDexCollectionType()); stopBtService(context); final CollectionServiceStarter collectionServiceStarter = new CollectionServiceStarter(context); switch (DexCollectionType.getDexCollectionType()) { case DexcomShare: collectionServiceStarter.startBtShareService(); break; case DexcomG5: collectionServiceStarter.startBtG5Service(); break; case Medtrum: JoH.startService(getCollectorServiceClass(Medtrum)); default: collectionServiceStarter.startBtWixelService(); break; } }
public static void startBtService(Context context) { Log.d(TAG, "startBtService: " + DexCollectionType.getDexCollectionType()); //stopBtService(context); CollectionServiceStarter collectionServiceStarter = new CollectionServiceStarter(context); collectionServiceStarter.stopBtShareService(); collectionServiceStarter.stopBtWixelService(); collectionServiceStarter.stopG5ShareService(); switch (DexCollectionType.getDexCollectionType()) { case DexcomShare: collectionServiceStarter.startBtShareService(); break; case DexcomG5: collectionServiceStarter.startBtG5Service(); break; default: collectionServiceStarter.startBtWixelService(); break; } }
startServiceCompat(new Intent(context, WatchUpdaterService.class)); if (!enable_wearG5 || (enable_wearG5 && !force_wearG5)) { //don't start if Wear G5 Collector Service is active startBtShareService(); startBtShareService();
startServiceCompat(new Intent(context, WatchUpdaterService.class)); if (!enable_wearG5 || (enable_wearG5 && !force_wearG5)) { //don't start if Wear G5 Collector Service is active startBtShareService(); startBtShareService();