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ł:
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
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
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
4 matches
Mail list logo