package com.techpalle.reciver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
public class myreciver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
/*
* Here don’t try to do anything which takes more time say
* networking sessions, sd card preparation, image uploading, DB reading etc.
* NOTE : Thumb rule of receiver is to finish your task as soon as possible and return.
* if you are not re turning with in 10 seconds, it[ANDROID] will kill this receiver.
*/
Bundle b = intent.getExtras();
String user_id = b.getString(“user_id”);
Toast.makeText(context, “The receiver of broadcast1 is started.. “+user_id, 1).show();
}
}












