Back to project page AsmackChat.
The source code is released under:
Apache License
If you think the Android project AsmackChat listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.googlecode.asmack.chat; /*from www . j av a 2s .c om*/ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; /** * A boot receiver to ensure that the chat service is running. */ public class BootCompletedReceiver extends BroadcastReceiver { /** * Start the chat service on boot. * @param context The current context. * @param intent The boot completed intent. */ @Override public void onReceive(Context context, Intent intent) { Intent transportService = new Intent(); transportService.setAction(IChatService.class.getCanonicalName()); context.startService(transportService); } }