Re: [android-developers] Can I get SharedPreferences outside activity or service without Context object.

2012-11-09 Thread thyne
I dont think I wrote 'static void main' anywhere above.. However - I am not sure if the above solution should be used in heavier applications, as it is NOT recommended to have too many references to Context object.. W dniu czwartek, 8 listopada 2012 22:08:28 UTC+1 użytkownik Marcelo H napisał:

[android-developers] Re: Can I get SharedPreferences outside activity or service without Context object.

2012-11-08 Thread thyne
Actually there is a way: You would need to extend android.app.Application class ( which also extends Context ), and in this class fill a singleton reference to it, so the code would be something like: MyApplication extends Application{ private static MyApplication INSTANCE; public MyApplicat

[android-developers] Re: Callback MainActivity class from non-Activity extented class

2012-11-08 Thread thyne
I think that You would need to bind() these two classes. This probably is preferrable way to send data from BroadcastReceiver to Activity Alternatively You might also want to read this: http://stackoverflow.com/questions/2616859/how-do-i-pass-data-from-a-broadcastreceiver-through-to-an-activity-b

[android-developers] Re: Sqlite android

2012-10-16 Thread thyne
if You use ORMLite, You might want to check the following out: http://stackoverflow.com/questions/7301418/ormlite-inner-join-on-three-tables -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel