This is my code:
Log.d("inf", loader);
if (loader == "Klasse"){
Log.d("inf", "Klasse yes");
OPTS = new String[] { //Something };
} else {
Log.d("inf", "Klasse no");
OPTS = new String[] { //Something };
}
In the first Line, the Output is exactly "Klasse" but the next output is everytime "Klasse no". The loader String is set as follows:
String loader = "";
Bundle exta = getIntent().getExtras();
if(exta !=null) {
try {
json = new JSONObject(exta.getString("json"));
loader = exta.getString("order");
} catch (JSONException e) {
e.printStackTrace();
}
}
Do you guys have any Idea whats wrong?