I have an a Java Android app that calls different activities. I thought this was how you would go about doing some object encapsulation (these three different activities show different screens but all relevant to the function of the program).
- The first is the main GUI and main page of the App.
- The next essentially parses an XML file and displays some text-based
output. - Finally the third is a map viewer that builds a map based on the XML
file read in the second Activity.
The problem I’m having is that these show up as 3 different activities on the phones. Is there anyway to encapsulate them in just one activity, or is there another method I should go about using to create multiple different screens in one app?
Thanks
Android will place any activity that has the following in its
intent-filterinto the application launcher:Therefore, you should only define this category for your entry-point activity.