Hi I m trying to understand the use of the broadcast receiver and the way of activate it. There's two ways isn't it? Register it from an activity or declare it in the manifest. So my question is: If i code a broadcast receiver which is watching incoming messages and i register it in the manifest, when a message comes my broadcast receiver will catch it although any activity of my app had registered it. In a nutshells, i dont have to activate it so it works, only register it either in the manifest or in an activity.
thank you On 22 mar, 18:40, Mark Murphy <[email protected]> wrote: > Ant wrote: > > Now I have abroadcastreceiverwhich has beenregisteredthrough > > manifest file and not through the java code, and need to unregister > > thebroadcastreceiverfrom the java code. Since this, i think would > > need a reference to System context that instantiates thebroadcast > >receiver. > > Is it possible. > > No. You should be able to disable your component via PackageManager, though. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android Training in NYC: 10-11 April 2010:http://guruloft.com -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

