MegaDud -- the Android-based MajorMUD Scripting Terminal

erik™
Posts: 25
Joined: Fri Jan 01, 2010 9:41 pm

Re: MegaDud -- the Android-based MajorMUD Scripting Terminal

Post by erik™ »

Quote from: Drizzt on July 28, 2011, 05:58:21 AMHey can I get a copy of that client?

source code? sure.

UI thread @ http://pastebin.com/dEv18Fwc
Readbuffer class @ http://pastebin.com/nTTeR0UA

gotta be totally rewritten though
erik™
Posts: 25
Joined: Fri Jan 01, 2010 9:41 pm

Re: MegaDud -- the Android-based MajorMUD Scripting Terminal

Post by erik™ »

made some progress on the total rewrite, and finally got it so my infinite loop for reading from the buffer doesn't block the UI thread (solution: using AsyncTasks...)

source: http://pastebin.com/VdjN2HFk

basically i had an infinite loop for reading from the socket buffer, and when i tried to update my Text-type View in the loop (byte by byte or line by line) it would essentially block the whole application... as in lock it all up... but now i have asynchronous task or thread to run the infinite read loop on and the main UI thread is free to be responsive
erik™
Posts: 25
Joined: Fri Jan 01, 2010 9:41 pm

Re: MegaDud -- the Android-based MajorMUD Scripting Terminal

Post by erik™ »

thought you all would like to see a little bit of a graphical change...
Post Reply

Return to “Scripting”