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

Apps BroadcastReceiver ...... Help

Hi, can anybody help me in this problem :)

public class IncomingCallReceiver extends BroadcastReceiver
{
@Override
public void onReceive(Context context, Intent intent)
{
i want to show dialog with "ok" or "cancel"
if press on ok then show Intent "A"
}
}


Help pls.
 
The BroadcastReceiver ends as soon as it leaves the onReceive() method, so to show a dialog you need to start an activity via context.startActivity()
 
Back
Top Bottom