Is there any singleton class similar to Display to get App instance ?

Sometimes I need to get the App instance and all my other classes has App 
instance private passed by constructor.

Is there any ?

MyApp app = (MyApp) CLASS.getInstance().getApplication();

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/48d3dc1e-b497-4729-b69a-d7a235f88ff2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to