-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":618,"versionName":"2009171715","enabled":true,"outputFile":"ICSer_V618_2009171715_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V618_2009171715_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":619,"versionName":"2009172055","enabled":true,"outputFile":"ICSer_V619_2009172055_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V619_2009172055_release.apk","properties":{}}]
\ No newline at end of file
import android.os.Message;\r
import android.os.Messenger;\r
import android.os.PowerManager;\r
+import android.util.Log;\r
\r
import com.enqualcomm.support.Config;\r
import com.enqualcomm.support.Constants;\r
\r
}\r
}\r
+\r
+ private static final String HEART_ACTION = "com.ic.action.BLOOD_HEART";\r
+ private void sendHeartBroadcast(int count) {\r
+ Intent pedIntent = new Intent();\r
+ pedIntent.setAction(HEART_ACTION);\r
+ pedIntent.putExtra("BLOOD_HEART", count);\r
+ ICLogger.i("sendHeartBroadcast "+HEART_ACTION+" BLOOD_HEART "+count);\r
+ runtime.getContextProxy().context.sendBroadcast(pedIntent);\r
+ }\r
public HeartRateManager(Runtime _runtime,Connection _connection){\r
runtime=_runtime;\r
connection=_connection;\r
//只有检测PPG成功,且网络连接中才发送数据\r
if (runtime.getHRS().getHeartrateWorkingStat() == heartRateStatus.HEARTRATE_WORKINGSTAT.HEARTRATE_TEST_SUCCESS) {\r
runtime.getHRS().setLastTestTime(TimeUtil.getSystemTime3());\r
-\r
+ //发送PPG给Launcher,显示在主界面用\r
+ sendHeartBroadcast(runtime.getHRS().getPPG());\r
if(Runtime.practising==true){\r
ICLogger.i("自由锻炼中,设置测量心率! "+runtime.getHRS().getPPG()+","+runtime.getHRS().getBPH()+","+runtime.getHRS().getBPL()+","+runtime.getHRS().getSpo2());\r
Runtime.healthInfo.setPPGECGData(runtime.getHRS().getPPG(),runtime.getHRS().getBPH(),runtime.getHRS().getBPL(),runtime.getHRS().getSpo2());\r