/************************************************************
* * Hyphenate CONFIDENTIAL
* __________________
* Copyright (C) 2016 Hyphenate Inc. All rights reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Hyphenate Inc..
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Hyphenate Inc.
*/
package com.fanxin.huangfangyi.receiver;
import com.hyphenate.chat.EMChatService;
import com.hyphenate.util.EMLog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/**
* @deprecated instead of use {@link EMReceiver}
*
*/
public class StartServiceReceiver extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent intent) {
EMLog.d("boot", "start IM service on boot");
Intent startServiceIntent=new Intent(context, EMChatService.class);
startServiceIntent.putExtra("reason", "boot");
context.startService(startServiceIntent);
}
}