Activity2 is started from Activity1 via StartActivity() method. Activity2 has a lot of elements and it loads slowly. Because of that, Activity2 does not load instantly after it has been called, but first desktop appears for a second, and then Activity2 loads. This 1s gap is probably because of Activity2 slow loading.
How can I start Activity2 after all of its elements have been loaded? Should I use StartActivityForResult or something else?
Thanks
What you need to do is to have a ProgressDialog that will be displayed while the activity gets loaded. You have to do the loading asynchronously (so that you don’t block the main UI-thread) by using AsyncTask. You might be interested by this question.