I am working on an app which on moving from Activity "A" to another Activity"B" shows black screen for 2 to 3 seconds.
I am performing calculation on huge amount of data in Activity "B", so on moving to Activity "B" due to load on mainUI it gives black screen to load.
But when i move my calculation method to OnStart or OnResume still the black screen remains.
What i want to do is show the Activity B instantly without black screen, and show loading progress while calculation is being done.
Tried threads but did not work and Async does load animation of loading but gets stuck as only animation is visible for more than 2 minutes, so any better way of moving from Activity"A" to Actvity"B" with out delay.
Did not put code because alot of code in Activity B.
Similar issue like this link Similar issue
This link also describes my problem of moving from one activity to another instantly and yes i have used async task with runnable UI thread , my async will instantly open new activity but there is too much work being done in Async do in background so i only see loading for more than a minute, with out async only 2 seconds.