I know you should use services
, backgroundtasks
and AsynTask
for long running processes. I've also seen this and this.
is there any way to start a activity in background and when process finishes, change the activity to current activity?
Suppose I have two activity A and B.
When user clicks on a view(a item in bottom navbar for example) on activity A, the desired action is to animate that view then start activity B.
But the problem is that there is a lag between animation terminate and starting of Activity B.
What I'm thinking of is to setup activity B while the view in activity A is animating.
As soon as animation terminates the activities swipe smoothly.
Is there a possible solution for this?
Asked
Active
Viewed 1,209 times
0

Community
- 1
- 1

Mehrdad Shokri
- 1,974
- 2
- 29
- 45
-
What is causing the lag? – Tim Jun 28 '16 at 17:46
-
@Tim Castelijns probably the setting ups in the activity (like inflating view, etc), gets some time. maybe we ca prepare activity while the view is animating. – Mehrdad Shokri Jun 28 '16 at 18:39