Friday, February 17, 2012

[android-developers] Re: App Design Issue

HI Giles
if your web service data he heavy then i will suggest you to
store in database or local files. otherwise memory will be allocated
through out ur application( if u store in static variable/ stack
memory).

if your web service data is xml file use saxParser. ( android sax
parser)

Moktarul anam

On Feb 17, 12:09 pm, giles ian <gilesian....@gmail.com> wrote:
> Hi,
>
> I have 2 activities A & B. Both display data fetched from 2 different web
> service lets say ws1 and ws2
>
> When i click on a button on Activity A i call ws2 in that avtivity itself
> and show loading dialog there itself and then move to Activity B and
> display data.(In this case i have to save lot of data in static variables
> so that they can be shared across activities as im getting data on Activity
> A and need to display  on Activity B)
>
> Is this rite approach.
>
> The other option that i have is i call ws2 from Activity B instead of A
>
> Which is a better way.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment