Hello, my name is Silas. I am new to android development. I have experience with programming, though new to Android. I am finding it very great though! Thank you for your response ahead of time.
Q1: I am trying to have my program grab web content based on "Spinner" selection. I have a "Spinner" and a "button" to execute selected item.
ie:
I am debugging my string "s" and it shows "7890" for example. My IF command does not respond to the selection.
If I remove the IF then it executes just fine. I have also tried if ((String)s == "7890") {} with no success. Any help would be great.
Q2: Do you know of a good example to parse text from a web-page and populate text fields within my UI?
Thank you very much.
Good Night.
Q1: I am trying to have my program grab web content based on "Spinner" selection. I have a "Spinner" and a "button" to execute selected item.
ie:
Code:
@Override
public void onClick(View src) {
String s = (String)sp.getSelectedItem();
System.out.println("String");
System.out.println(s);
if (s == "7890"){
startActivity(intent);
}
If I remove the IF then it executes just fine. I have also tried if ((String)s == "7890") {} with no success. Any help would be great.
Q2: Do you know of a good example to parse text from a web-page and populate text fields within my UI?
Thank you very much.
Good Night.