The typical patterns for implementing a singleton require either a global variable or a class member variable. Unfortunately, neither of these constructs is available in BREW when compiling for Over-the-Air (OTA) provisioning. This has driven many developers to experiment with the local thread storage API available in later versions of BREW, bizarre tricks like writing pointers to active data in memory to configuration files, or simply to despair. This is a different solution to the same problem presented in a recent developer.com article. This one is geared more for data where the other one is geared more for commands. Learn more at DevX: BREW Up a Better Way to Synch Data Between Apps Using a Singleton |
You can ping this entry by using http://www.mamlambo.com/mt/mt-tb.cgi/341 .