Thursday, October 8, 2009

[android-developers] Re: Sharing code between activities

How would using asynctask help with this?


On Wed, Oct 7, 2009 at 7:42 AM, Agus <agus.santoso@gmail.com> wrote:
> use asynctask.
>
> On Wed, Oct 7, 2009 at 7:36 AM, amiz <aarnaud@gmail.com> 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 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
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate