i hope you can help me :) i want to get a string of font file path from sharedpreferences, and if there isnt any string load the default font in assets, okay. the problem comes when i try to stablish the condition, see it here:
 String filePath = new String(preferences.getString(String.valueOf(v.getId()+"font"),"default"));
    Log.d("","choosed font: "+filePath);
    if (filePath == "default"){
        v.setTypeface((Typeface.createFromAsset(getAssets(),"fonts/Default.ttf")),preferencias.getInt(String.valueOf(v.getId()+"style"), 0));
    }else{
        v.setTypeface(Typeface.createFromFile(filePath),preferencias.getInt(String.valueOf(v.getId()+"style"), 0)); 
    }
as you can see, the program would load default font if filePath = default, but the program always executes the order inside "else"...
the order to make log appear shows clearly: chosen font: default. because i have never putString
so why is this condition not satisfied??
 
     
     
     
     
     
     
    