I'm pretty new to Android so I apologize if this question sounds stupid in any way.
I'm trying to create an attendance application with many classes but the 2 main ones will be Student and Courses.
I plan to use tabs to navigate with Student and Courses being the 2 tabs in my TabHost.
The Course page for example will list all of the courses currently in the system with an options menu for Adding a course which will bring up an Add Course screen (within the Course tab but changing the view).
So, to my question...
I plan to set an onclick for the options menu item which will call setContentView to display the add new course layout instead of starting a new Activity showing a new layout.
Does this sound like a sensible way to do this? If not what would be a better approach?
All my course logic will be contained within the Course class and so I want all of my code to be contained within there without having to create a class/activity for a course list, adding a course, viewing a course etc.
I hope this makes sense.