新增测试HeartBeat的广播
parent
62de685e4e
commit
9ff79bbe1b
@ -0,0 +1,16 @@
|
|||||||
|
package com.xypower.mpapp;
|
||||||
|
|
||||||
|
import android.content.BroadcastReceiver;
|
||||||
|
import android.content.Context;
|
||||||
|
import android.content.Intent;
|
||||||
|
|
||||||
|
public class HeartBeatResponseReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onReceive(Context context, Intent intent) {
|
||||||
|
String action = intent.getAction();
|
||||||
|
if ("heartbeat".equals(action)) {
|
||||||
|
MicroPhotoService.infoLog("收到heartbeat广播");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue