You cant call a Broadcast Receiver from a class. Its called automatically when it receives the matching Broadcast.
if you have written a piece of code inside an existing BroadcastReceiver, then port it to a class and use this class in your BroadcastReceiver as well as in your Activity. Regards, Santosh MComputing Lab On Thu, Sep 1, 2011 at 4:39 PM, Chirag Raval < [email protected]> wrote: > Hello to ereryone > > I want to call Brodcast Receiver from my main activity when it satisfy the > particular condition. How can i achieve this ? > > Please help to find this solution . Please give me proper example for that. > > Example > ----------- > > if(condition) > { > Here i want to call broadcast receiver > } > > Thanks in advance. > > Regards, > Chirag Raval. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

