Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Black Screen between Activity

When I go one activity to another activity , between the transaction a Black screen is come for some seconds. I properly finish the activity before calling startActvity().

Am using android:theme="@android:style/Theme.Translucent" theme for my activity. Even though between the activity transaction a black screen is coming

Can any one please tell me how to resolve this

Thanks in advance :)

like image 623
Binil Surendran Avatar asked Dec 18 '15 10:12

Binil Surendran


1 Answers

There is no need to finish activity before calling startActivity().

Make sure that you have set content view in the onCreate of called Activity and that you are not blocking UI thread (check onCreate, onStart and onResume if you have override them).

like image 199
Milos Fec Avatar answered Sep 21 '22 00:09

Milos Fec