Sharing Objects between activities using Singleton ?

by kungfuslippers » Tue, 28 Apr 2009 22:36:01 GMT

Sponsored Links

I have an application with N Activities that all need access to an
'engine' class.

I've seen discussion that says that I'd have to implement the Engine
using a Singleton pattern to allow the different activities to access
the engine.

Is this is the only/best/recommended way to do it in the Android

Are there alternatives - just out of interest.


Other Threads

1. GPU

How do I force my application to use the current devices GPU if one is


2. kapan KIesS bisa untuk Galaxy Tab

sejak dari awal bawaan galaxy dah ada kiess, tapi kenapa ga support
tuk galaxy tab ya?


3. How to use Google Places API

4. pagging galaxy tab user,

5. froyp galaxy 5

6. Tulung tulung..para suhu miley.

7. n1 gak bisa boot after upgrade