SAM wrote:
> Hi,
> In am developing a android application. The framework is such that I
> dont allow Activities to launch each other.
> 
> Eg: ActivityA can only talk to datahandlerA (DhA)
> ActivityB can only talk to datahandlerB (DhB)
> datahandlers can talk to any other datahandlers.
> Datahandlers do network communication etc if required
> 
> Some event happens, button click, on ActivityA. It informs DhA. DhA
> does some network operation. It informs DhB about response. DhB does
> some housekeeping than launches ActB.
> 
> So in the above scenario, I am out of the context of ActA and cannot
> call startActivity from data handlers as they are not derived from
> Activity class.
> 
> Please let me know how this can be done.

Pass an Activity or other Context (e.g., Service) to DhB somewhere along
the line.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!

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