If I can't do this then what is the right way for multiple activities
in an application to get event notifications from a service.

On Jun 10, 1:37 pm, Mark Murphy <[email protected]> wrote:
> takyon wrote:
> > Can I call an activity function like the following in the stub handler
> > for the callback in my class S -
>
> > private Callback mEventListener = new OperationCallback.Stub()
> > {
> >   �...@override
> >    public void handleOperationEvent(Payload payload)
>
> >    {
> >       B objB = new B();   // Is this valid? Since B is an activity.
>
> No, that is not valid. Besides, there already is an instance of B. You
> need your callback to know of the already-existing instance of B.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Consulting:http://commonsware.com/consulting

-- 
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

Reply via email to