@Override protected void onHandleIntent(Intent intent) { // TODO Auto-generated method stub String message = intent.getStringExtra("message"); L.i("PreParseService :" + message); if (TextUtils.isEmpty(message)) return; String userId = JsonUtil.getFromUserId(message); L.i("response start"); new SendMsgAsyncTask( JsonUtil.createJsonMsg(System.currentTimeMillis(), "hi", PushMessageReceiver.RESPONSE), userId) .send(); // 同时也回一条消息给对方1 L.i("response end"); }
@Override public void onCreate() { // TODO Auto-generated method stub super.onCreate(); L.i("PreParseService onCreate"); }