Back to project page LheidoSMS.
The source code is released under:
GNU General Public License
If you think the Android project LheidoSMS 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.lheidosms.receiver; //from www . j a v a 2 s . c o m import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.lheidosms.service.LheidoSMSService; import com.lheidosms.service.MainService; public class BootReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String iAction = intent.getAction(); if(iAction.equals("android.intent.action.BOOT_COMPLETED")){ Intent i = new Intent(context, MainService.class); context.startService(i); } } }