本文整理汇总了Java中com.eveningoutpost.dexdrip.Services.G5CollectionService.keep_running方法的典型用法代码示例。如果您正苦于以下问题:Java G5CollectionService.keep_running方法的具体用法?Java G5CollectionService.keep_running怎么用?Java G5CollectionService.keep_running使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.eveningoutpost.dexdrip.Services.G5CollectionService
的用法示例。
在下文中一共展示了G5CollectionService.keep_running方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: startBtG5Service
import com.eveningoutpost.dexdrip.Services.G5CollectionService; //导入方法依赖的package包/类
public void startBtG5Service() {//private
Log.d(TAG, "starting G5 service");
//if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) {
PersistentStore.setBoolean(pref_run_wear_collector, true);
if (!Pref.getBooleanDefaultFalse(Ob1G5CollectionService.OB1G5_PREFS)) {
G5CollectionService.keep_running = true;
this.mContext.startService(new Intent(this.mContext, G5CollectionService.class));
} else {
Ob1G5CollectionService.keep_running = true;
this.mContext.startService(new Intent(this.mContext, Ob1G5CollectionService.class));
}
//}
}
示例2: stopG5ShareService
import com.eveningoutpost.dexdrip.Services.G5CollectionService; //导入方法依赖的package包/类
private void stopG5ShareService() {
Log.d(TAG, "stopping G5 service");
G5CollectionService.keep_running = false; // ensure zombie stays down
this.mContext.stopService(new Intent(this.mContext, G5CollectionService.class));
Ob1G5CollectionService.keep_running = false; // ensure zombie stays down
this.mContext.stopService(new Intent(this.mContext, Ob1G5CollectionService.class));
}
示例3: startBtG5Service
import com.eveningoutpost.dexdrip.Services.G5CollectionService; //导入方法依赖的package包/类
private void startBtG5Service() {
Log.d(TAG,"stopping G5 service");
stopG5ShareService();
Log.d(TAG, "starting G5 service");
//if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) {
if (!Pref.getBooleanDefaultFalse(Ob1G5CollectionService.OB1G5_PREFS)) {
G5CollectionService.keep_running = true;
this.mContext.startService(new Intent(this.mContext, G5CollectionService.class));
} else {
Ob1G5CollectionService.keep_running = true;
this.mContext.startService(new Intent(this.mContext, Ob1G5CollectionService.class));
}
//}
}
示例4: stopG5ShareService
import com.eveningoutpost.dexdrip.Services.G5CollectionService; //导入方法依赖的package包/类
private void stopG5ShareService() {
Log.d(TAG, "stopping G5 service");
G5CollectionService.keep_running = false; // ensure zombie stays down
this.mContext.stopService(new Intent(this.mContext, G5CollectionService.class));
Ob1G5CollectionService.keep_running = false; // ensure zombie stays down
this.mContext.stopService(new Intent(this.mContext, Ob1G5CollectionService.class));
}