I am creating a simple android Login app using PhoneGap and Eclipse and facing problem with android back button.
I want to control the behaviour of back button such as :
- If user has been logged in and he/she pressed on back button app should be minimized.
- If not logged-in app should get closed after clicking on back button.
I scoured the lots of posts regarding with "Minimizing the app after clicking back button" but didn't got the solution. Any solution?