I'm assuming that since android apps (or should I say all apps that runs on mobile platform) won't have concurrency issue like servlet instance variable, since it's run individually on each device. Is this assumption correct? thanks
posted 2 years ago
No. An Android app can have its code accessed from multiple independent sources simultaneously - via user actions in the event thread, from the app's own background tasks, the app's widgets, and intents triggered by other apps, Android itself, or external sources like GCM. Those could work with the same data structures (or files, or providers, or preferences, etc.), so that should be taken into account.