How do Android apps make global objects available to the various windows opened up in the app??
For instance: let's say I have an app in which a user can login and logout. I want to track the user's login state, login name, etc, in a global user object. Then let's say I have a window for posting a comment as the user. That window needs to know the user's identity.
On iPhone, I can give the window a reference to the global user object, but that ability seems to be iPhone-only. (The Kitchen Sink "Passing Data (windows)" example.)
Do I have to use an application persistent database for this? What is the common/best practice for managing run-time "session" state for use in Android?
I could presumably just keep everything in views, all in the scope of app.js, but that defeats the purpose and utility of having multiple scopes, each confined to a window.