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
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
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
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
4 matches
Mail list logo