I have an app that has a tabhost on it with 15 tabs. Each tab is loaded with an activity page (I think that's what they are called. The .bal files.) When I generate the variables from the controls, they gets put into the Globals sub of the Main Activity class. I do some loading of various spinners from the database and keep the key/value pair in their individual maps.
To try to organize this so the Main class isn't so massive and unorganized, I created a class module for each tab and moved the SQL loading of the maps there. I tried to put the created variables generated by controls into these classes, but when I try to run the program, I get a java.lang.NullPointerException when I call the initialize of the class.
So, my question is...what is the best way to do this in order to keep it clean, organized and easy to maintain?
To try to organize this so the Main class isn't so massive and unorganized, I created a class module for each tab and moved the SQL loading of the maps there. I tried to put the created variables generated by controls into these classes, but when I try to run the program, I get a java.lang.NullPointerException when I call the initialize of the class.
So, my question is...what is the best way to do this in order to keep it clean, organized and easy to maintain?