D
Deleted User
Guest
What is the standard regarding global objects in Java? Say I want an object that contains some pertinent information about the application to be accessed by any Activity. Where/how do I declare this? Or is this a bad idea?
Example: Suppose my Android app makes web service calls back to my website and with each call I must provide the user's username and password. This information is collected (and validated) with the first Activity (login screen) and kept in memory and passed around to be used with each web service call.
Thanks for your help,
Andrew
Example: Suppose my Android app makes web service calls back to my website and with each call I must provide the user's username and password. This information is collected (and validated) with the first Activity (login screen) and kept in memory and passed around to be used with each web service call.
Thanks for your help,
Andrew