当前位置: 首页>>代码示例>>Java>>正文


Java G5CollectionService.keep_running方法代码示例

本文整理汇总了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));
    }
    //}
}
 
开发者ID:NightscoutFoundation,项目名称:xDrip,代码行数:15,代码来源:CollectionServiceStarter.java

示例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));
}
 
开发者ID:NightscoutFoundation,项目名称:xDrip,代码行数:8,代码来源:CollectionServiceStarter.java

示例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));
   }
    //}
}
 
开发者ID:NightscoutFoundation,项目名称:xDrip,代码行数:15,代码来源:CollectionServiceStarter.java

示例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));
}
 
开发者ID:NightscoutFoundation,项目名称:xDrip,代码行数:8,代码来源:CollectionServiceStarter.java


注:本文中的com.eveningoutpost.dexdrip.Services.G5CollectionService.keep_running方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。