Yes i registered receiver in the code instead of manifest file. But problem is whenever if my activity is closed i need to unregister it. But my requirement is it needs to be listen for that event. Why it not working if we are declared in AndroidManifest file. Any help. Regards, Karteek
On Nov 3, 6:36 pm, Pent <[email protected]> wrote: > > I want to show some notification when android phone is connected to system. > > I implemented BroadcastReceiver for listening to event > > android.intent.action.ACTION_UMS_CONNECTED in my application > > But it is not working. > > Is it possible to capture this event > > Yes, though if I remember right some users have mentioned it doesn't > work on some configurations. > > If you're using a manifest-declared receiver, maybe try creating one > at runtime instead (that's what my app does). > > Pent -- 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

