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. how to enable internet access in emulator v1.0

Hi all,
 i have looking to enable internet access in emulator v1.0..

kindly guide regarding this...
i am working on windows xp OS with eclipse...


2. how to set width of gridview from java code(dynamically)

how to set width of gridview from java code(dynamically),
is there any function to specify the width of grid view dynamically.
thank you

3. centering in linearlayout

4. Retrieve a database from the network

5. Is there any way to know application updates?

6. Android WebView Spawning New View With Hyperlink Problem

7. PMD rules for Android platform