i am working on a android app where it is need to start a activity from another activity using broadcast receiver if my application is in background then my activity goes to pause state then how i can start another activity please help me why it is happening code is
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
Intent vidIn = new Intent();
vidIn.setClass(this, Activity1.class);
vidIn.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
this.startActivity(vidIn);
}
}