On Wed, Sep 8, 2010 at 5:55 AM, KrcK --- <[email protected]> wrote: > So, for example, If I want to create a new register with each incoming call > in my database tableI should use a BroadcastReceiver, and if I want to do > some actions in my app when appears an incoming call I should use a listener > (like save some states or stop a service), is ok?
I do not completely understand what you wrote here, but I think you have the right idea. > On the other hand I would like to know if is a good idea create static > variables in a BroadCastReceiver because if I do not do it I can not know > the duration of each answer call. The BroadcastReceiver will be destroyed when onReceive() is finished, and so you have no guarantees about the lifetime of any static data members. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- 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

