title: Right way way to implement Singleton in Android for data Sharing between activities?
body: <p>I have been struggling with this issue for a long long time, actually I've checked a lot of post in stackoverflow talking about the same but nothing definitive.</p>
  
  <p>How to implement the <strong>Singleton pattern</strong> to achieve data sharing between Android activities?
  I am talking between activities, not classes, <strong>which one is the right way?</strong></p>
  
  <p>This is all the info I found:</p>
  
  <p>1- The ones who recommend the standard Singleton form, the one that you might implement in Java, C, etc, here you got an example:</p>
  
  <p><a href="http://es.wikipedia.org/wiki/Singleton" rel="nofollow noreferrer">http://es.wikipedia.org/wiki/Singleton</a></p>
  
  <p>2- The ones that suggest to implement it in the OnCreate method, like this:</p>
  
  <p><a href="http://androidcookbook.com/Recipe.seam?recipeId=1218" rel="nofollow noreferrer">http://androidcookbook.com/Recipe.seam?recipeId=1218</a></p>
  
  <p>3- The ones that uses the Application implementation approach (not so sure about this one):</p>
  
  <p><a href="https://stackoverflow.com/questions/3483403/is-it-acceptable-practice-to-use-singleton-objects-to-save-state-or-share-data-b">Is it acceptable practice to use Singleton Objects to save state or share data between Activities?</a></p>
  
  <p>4- The ones that uses the "singleTask" approach, defining it in the manifest:</p>
  
  <p><a href="http://developer.android.com/guide/topics/manifest/activity-element.html#lmode" rel="nofollow noreferrer">http://developer.android.com/guide/topics/manifest/activity-element.html#lmode</a></p>
  
  <p>5- And more exoteric ways like this one (Actually this is not a Singleton I think):</p>
  
  <p><a href="http://www.jameselsey.co.uk/blogs/techblog/android-implementing-global-state-share-data-between-activities-and-across-your-application/" rel="nofollow noreferrer">http://www.jameselsey.co.uk/blogs/techblog/android-implementing-global-state-share-data-between-activities-and-across-your-application/</a></p>
  
  <p>Suggestions? Comments? Examples?</p>
  
  <p>Google Android people recommends it as one way to share complex information between activities, but no clue about the best approach in Android.</p>
  
  <p><a href="http://developer.android.com/guide/faq/framework.html#3" rel="nofollow noreferrer">http://developer.android.com/guide/faq/framework.html#3</a></p>
  
  <p>Please help me to clarify this.</p>