[android-developers] Re: String comparison with Text in EditText with online data.

2009-04-16 Thread Raphael
It's hard to see what's going on here because you didn't post the outer part -- is this an activity onCreate? Looks like you're accessing your string field before the setContentView. This is loosely related to your question but you might consider that: - you're not supposed to do the network fetc

[android-developers] Re: String comparison with Text in EditText with online data.

2009-04-16 Thread Raphael
It's hard to see what's going on here because you didn't post the outer part -- is this an activity onCreate? Looks like you're accessing your string field before the setContentView. This is loosely related to your question but you might consider that: - you're not supposed to do the network fetc

[android-developers] Re: String comparison with Text in EditText with online data.

2009-04-17 Thread Jason Proctor
in the vast majority of cases, compare Java strings with equals() or equalsIgnoreCase() == tests for reference equality - ie the same *exact* string object, not just one which happens to have the same contents. >Hi, I'm trying to use the code below to connect to an online source, >then compa

[android-developers] Re: String comparison with Text in EditText with online data.

2009-04-18 Thread murphy
Thanks for the help guys, I shouldn't have been using the ==, a compareto() and including a boolean to check against managed to solve. On Apr 16, 9:14 pm, Jason Proctor wrote: > in the vast majority of cases, compare Java strings with equals() or > equalsIgnoreCase() > > == tests for reference