public static void restartCollectionService(Context context) { CollectionServiceStarter collectionServiceStarter = new CollectionServiceStarter(context); collectionServiceStarter.stopBtShareService(); collectionServiceStarter.stopBtWixelService(); //KS collectionServiceStarter.stopWifWixelThread(); //KS collectionServiceStarter.stopFollowerThread(); collectionServiceStarter.stopG5ShareService(); collectionServiceStarter.start(context); }
public static void stopBtService(Context context) { Log.d(TAG, "stopBtService call stopService"); final CollectionServiceStarter collectionServiceStarter = new CollectionServiceStarter(context); collectionServiceStarter.stopBtShareService(); collectionServiceStarter.stopBtWixelService(); collectionServiceStarter.stopG5Service(); Log.d(TAG, "stopBtService should have called onDestroy"); }
public static void stopBtService(Context context) { Log.d(TAG, "stopBtService call stopService"); final CollectionServiceStarter collectionServiceStarter = new CollectionServiceStarter(context); collectionServiceStarter.stopBtShareService(); collectionServiceStarter.stopBtWixelService(); collectionServiceStarter.stopG5Service(); Log.d(TAG, "stopBtService should have called onDestroy"); }
public static void restartCollectionService(Context context, String collection_method) { Log.d(TAG, "restartCollectionService: " + collection_method); CollectionServiceStarter collectionServiceStarter = new CollectionServiceStarter(context); collectionServiceStarter.stopBtShareService(); collectionServiceStarter.stopBtWixelService(); //KS collectionServiceStarter.stopWifWixelThread(); //KS collectionServiceStarter.stopFollowerThread(); collectionServiceStarter.stopG5ShareService(); collectionServiceStarter.start(context, collection_method); }
public static void stopBtService(Context context) { Log.d(TAG, "stopBtService call stopService"); PersistentStore.setBoolean(pref_run_wear_collector, false); CollectionServiceStarter collectionServiceStarter = new CollectionServiceStarter(context); collectionServiceStarter.stopBtWixelService(); collectionServiceStarter.stopBtShareService(); collectionServiceStarter.stopG5ShareService(); Log.d(TAG, "stopBtService should have called onDestroy"); }
Log.d("DexDrip", "Starting bt wixel collector"); stopBtShareService(); stopBtWixelService(); stopBtShareService(); stopG5ShareService(); stopBtWixelService(); stopBtShareService(); stopBtShareService(); stopG5ShareService(); } else if (isFollower(collection_method)) { stopBtShareService(); stopBtWixelService(); stopG5ShareService();
private void stopAll() { Log.d(TAG, "stop all"); stopBtShareService(); stopBtWixelService(); stopWifWixelThread(); stopFollowerThread(); stopG5Service(); JoH.stopService(getCollectorServiceClass(Medtrum)); JoH.stopService(getCollectorServiceClass(NSFollow)); }
private void stopAll() { Log.d(TAG, "stop all"); stopBtShareService(); stopBtWixelService(); stopWifWixelThread(); stopFollowerThread(); stopG5Service(); JoH.stopService(getCollectorServiceClass(Medtrum)); JoH.stopService(getCollectorServiceClass(NSFollow)); }
Log.d("DexDrip", "Starting bt wixel collector"); stopWifWixelThread(); stopBtShareService(); stopFollowerThread(); stopG5Service(); stopBtWixelService(); stopFollowerThread(); stopBtShareService(); stopG5Service(); stopBtWixelService(); stopWifWixelThread(); stopBtShareService(); stopFollowerThread(); stopWifWixelThread(); stopBtShareService(); stopG5Service(); } else if (isFollower(collection_method)) { stopWifWixelThread(); stopBtShareService(); stopBtWixelService(); stopG5Service();
Log.d("DexDrip", "Starting bt wixel collector"); stopWifWixelThread(); stopBtShareService(); stopFollowerThread(); stopG5Service(); stopBtWixelService(); stopFollowerThread(); stopBtShareService(); stopG5Service(); stopBtWixelService(); stopWifWixelThread(); stopBtShareService(); stopFollowerThread(); stopWifWixelThread(); stopBtShareService(); stopG5Service(); } else if (isFollower(collection_method)) { stopWifWixelThread(); stopBtShareService(); stopBtWixelService(); stopG5Service();
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; } }