qlimax wrote:have you tryed to initialize the user input string in the thread class?
maybe your widget calls getVar before the vm has called the run method, so the userInput string is null (when you start a thread, you tell the vm to call the run method - when there is cpu time...)
let me know....bye
qlimax wrote:from the logcat i don't uderstand if the thread is null (whel you call getVar) or the string returning from the getVar method is null....
you can check it with some ,not so elegant, if(...==null) Log.v(...)
or try catch block...
I don't really understand why are you using the volatile keyword. I've never used this and I honestly don't understand the mean of the keyword...
have you tried to remove all this keywords?
Users browsing this forum: No registered users and 15 guests