You can open Activity
with a delay. For example, in such a way Activity
will be started after 250ms:
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent intent = new Intent();
startActivity(intent);
finish();
}
}, 250);
mDrawerLayout.closeDrawer(mDrawerList);