You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.xypower.mpapp;
|
|
|
|
|
|
|
|
import android.content.BroadcastReceiver;
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.util.Log;
|
|
|
|
|
|
|
|
public class HeartBeatResponseReceiver extends BroadcastReceiver {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onReceive(Context context, Intent intent) {
|
|
|
|
String action = intent.getAction();
|
|
|
|
if ("com.systemui.ACTION_HEARTBEAT_RESPONSE".equals(action)) {
|
|
|
|
long timestamp = intent.getLongExtra("timestamp", 0);
|
|
|
|
Log.d("MpApp","系统广播监听 timestamp:"+timestamp);
|
|
|
|
MicroPhotoService.infoLog("收到heartbeat广播 timestamp:" + timestamp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|