I have two activities. The first one executes the second one.
Intent i = new Intent(MyOne.this, MyTwo.class);
startActivity(i);
The problem: My second activity does some heavy work on launching so it launches couple of second and before it is launched i see a black screen.
Is it any way to set a progressbar or some image instead of this black screen? Because i don’t think user will wait for something, that he doesn’t know. I tried setting progressbar after setcontentview in my second activity, but progressbar shows up only when activity fully started.
I suggest you to do this asynchronously using AsyncTask.
Short example: