Thursday 19 May 2016

How to avoid black screen while invoking another activity in android?



Please check the flags you are setting in your intent.

If you have a finish(); or FLAG_ACTIVITY_CLEAR_TASK - a blank screen may show up on
 pre ICS devices as the current activity has been cleared before another activity is started.

code:

Intent intent = new Intent(getApplicationContext(), Activity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
overridePendingTransition (0, 0);

1 comment:

Send Whatsapp Message via PHP Code

  How to Send and Receive Messages in WhatsApp using PHP In this tutorial you will see How to Send and Receive Messages in WhatsApp using PH...