How would using asynctask help with this?
On Wed, Oct 7, 2009 at 7:42 AM, Agus <[email protected]> wrote: > use asynctask. > > On Wed, Oct 7, 2009 at 7:36 AM, amiz <[email protected]> wrote: >> >> I have an app with two activities. >> >> Both activities among other functions have to perform the same >> calculation on data, so each activity include the same code to perform >> the calculation. >> >> Is it possible to only have the similar code in a separate activity >> and be accessed by the other two activities instead of duplicating the >> code twice? >> >> Thanks >> Amiz >> > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

