Skip to main content

Posts

Showing posts with the label Bring Android application to forground

Bring Android application to forground

Intent launchApp = new Intent(context, Applications_MainActivity.class);                             launchApp.setAction(Intent.ACTION_MAIN);                             launchApp.addCategory(Intent.CATEGORY_LAUNCHER);                             launchApp.setFlags(IConstants.NOTIFICATION_FLAG);//Use this Special Flag                             context.getApplicationContext().startActivity(launchApp); Update below value in your Constants File,   public static final int NOTIFICATION_FLAG = 0x10200000;