I am facing an issue in my application which i have explained below.
In Activity 1 i have a button. On touch of that button i am moving to Activity 2. On click of a button in Activity 2 i am moving to Activity 3.
My issue is – once Activity 3 appears, suddenly Activity 1 on create method getting called and the ontouch event is auto fired and Activity 2 re-appears.
This appears only on first trial. When i click on a button in Activity 2 again, i go to Activity 3 and stay there.
If anybody had faced a similar issue, please help me on solving the same.
The reason for this issue is … On touch listener is fired twice. So, i replaced it with onclick listener and it worked.