Unwanted Duplicated Activity
There is a code that sends an int 'a' from the main activity to activity B. It also starts activity B with the fade animations. However, this code creates 2 of the same activity B'
Solution 1:
You are starting the second activity twice. Remove the following line from your code and move overridePendingTransition
after you use the intent to start the activity:
startActivity(newIntent(MainActivity.this, Differentiate.class));
Solution 2:
Hey just remove this line from code:
startActivity(newIntent(MainActivity.this, Differentiate.class));
Rest is fine in your code.
Solution 3:
That's because you are starting Activity B twice!
you should remove this part of your code:
startActivity(newIntent(MainActivity.this, Differentiate.class));
Post a Comment for "Unwanted Duplicated Activity"