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

2012-11-08 Thread Joe Malin
The Intent constructor you want is Intent(Context, Class<>). I usually call this as Intent(this, MainActivity.class); On Tuesday, October 30, 2012 8:54:02 AM UTC-7, Krzysztof K wrote: > > I've a two classes; MainActivity.java which is Activity extented and > CallRec.java which extends Broadcast

[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