Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

thread problem in android app

 
David Spades
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic