I have an activity that can have many different states.
for instance
- no Internet
- no license
- logged in
- not logged in
- awaiting
- error
- are limited
- condemned
At the moment, I have ones if statementsthat determine the appropriate state of the application and enable or disable views as needed. I thought some sick STATE patterns might be better.
Can someone give me some idea of how I can do this through such an activity? Or in this case, an if statement like this is the best option, since the views are in any case closely related to the Activity.
source
share