I have this, in my onPostExecute :
    String test = currentActivity.getClass().getSimpleName();
    if(test == "SplashScreen"){
        Log.e("OK",test);
    } else {
        Log.e("OK",test);
    }
The problem is, the value of test is "SplashScreen" (that we can see with the log), but the code never goes in the if, only in the else.
Why does this happen?
 
     
     
     
     
     
    