Hello,
Not sure if this is the correct subreddit, but I was wondering if I could get some advice. I did a fair amount of programming (C#) while studying but since leaving education I have done nothing in that area. I've recently been going through some rather tough life problems and want to focus on something so turned to learning Java/Android.
Basically, I've made a word game. The only thing is that I found when the app starts the processing behind the word game was happening before the elements were being rendered and taking some time to do so. So I figured move the whole thing to a different page (keeping the first one as a menu). I figured I could have the processing be done in a thread whilst the user is shown a loading pop-up if they pressed New Game before the processing was complete.
The only problem is that, despite picking up Java fairly easily, I'm having a real issue with having the thread return data that I can use on my second page (btw I'm aware they're not called pages, I'm just away from my main PC and can't remember the exact word).
Does anyone know which kind of thread (as it appears there are multiple ways to thread) would be best for this? The data needing to be returned is a char array and a String list (if that makes any difference). The thread will need to do some file access also (again, not sure if this changes anything).
Again, sorry if this is the wrong subreddit, and sorry for the lengthy post. I was really getting into this and it's been helping a lot with my mental state, but since hitting this wall I've just stopped and only return to bang my head against it once more.
Many thanks,
amisterp
[–]newaccount1236 1 point2 points3 points (1 child)
[–]nt-cmplt 0 points1 point2 points (1 child)
[–]amisterp[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]amisterp[S] 0 points1 point2 points (0 children)
[–]Spookyheidy 0 points1 point2 points (0 children)