package com.usai.redant.raimage;



import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootReceiver extends BroadcastReceiver {

	// Context
	public void UnlockReceiver(Context context) {

	}

	@Override
	public void onReceive(Context context, Intent intent) {
		// TODO Auto-generated method stub
		if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
			
			Intent intentservice = new Intent();
			intentservice.setClass(context, UploadService.class);
			if (intent.getExtras() != null)
				intentservice.putExtras(intent.getExtras());
			intentservice.setAction(intent.getAction());
			context.startService(intentservice);
			
			
			// Log.e("hg","�յ��㲥");
		} 
	}

}
