I want to put an exit icon or log out button near the label name or title bar, so if I am anywhere in my application I can get back to the main menu. I have searched similar question at Stackoverflow but don't understand the answers. Perhaps the problem is I'm new to Android programming
Could someone explain how to do this?
In your xml you have to add the button like this:
The android:icon will fix it.