On Tue, Aug 9, 2011 at 7:12 AM, AndyD <[email protected]> wrote:
> Thanks, that's what I've decided to do, at least for now. I pass
> the Activity to the AsyncTask's constructor, pull out the strings I want and
> stick them into member variables for later use by doInBackground().
>
I was thinking more along the lines of passing them as arguments to
execute(), but I guess that works.
new MyTask().execute(getString(R.string.id));
...
doInBackground(String... strings)
{
useString(strings[0]);
}
Or something.
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
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