How to launch an activity from main activity and return to main activity after an exit operation in sub activity return to main activity?
I have made the sub-activity as launcher intent activity. So after installing the application i have two icons in applications menu, one for main activity and another for sub activity.
Please help me resolve the above issue.
I think you should use only one activity as launcher intent in manifest.xml. Assuming that main activity is the launcher intent, from here you call
startActivity(Intent)to get to the next activity. When the job performed by the sub activity is finished, callfinish()to bring the main activity back to foreground