• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to test Broadcast receiver

Hi,

I am very new to Android.

I am working on Broadcastreceiver.

public class BroadCastRecv extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
System.out.println("Recv Found");
Toast.makeText(context, "Changed call status", 10000).show();
System.out.println("End Call");
}

}

I found this piece of code in one of the site.

I want to test this. How can i do this? I know there is an option to enter phone number so that we can see the phone status. But could not find where.

Can anyone help me?

Thanks,
Pavan
 
Back
Top Bottom