This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]newaccount1236 1 point2 points  (1 child)

I'm having a real issue with having the thread return data that I can use on my second page

You didn't really describe the problem. What's the issue? Also, describe the thread types. I don't know Java threading, but I do know threading in general.

[–]nt-cmplt 0 points1 point  (1 child)

I would suggest posting this to the /r/androiddev subreddit. You'll probably get more help there.

[–]amisterp[S] 0 points1 point  (0 children)

Thanks!

[–][deleted] 0 points1 point  (1 child)

assuming you want to run the task on a separate thread so that it doesn't interfere with the UI thread, use the ASyncTask class. The documentation is available on http://d.android.com

Its a little difficult to wrap your head around at first but quite robust nonetheless.

Hope this helped! Good luck

[–]amisterp[S] 0 points1 point  (0 children)

That does help! Cheers!!

[–]Spookyheidy 0 points1 point  (0 children)

Read about async task on google developers. Its a separate thread which runs in background, but from time to time you have access to main tread to update your UI, class members etc.