I need to detect device model, and if it is Galaxy Ace GT-S5830i, print it out. But it never print's it (it doesn't get through condition).
My code:
public String mDeviceModel = android.os.Build.MODEL;
System.out.println(mDeviceModel); //this prints my GT-S5830i
if (mDeviceModel == "GT-S5830i") //compiler don't get thru this cond.
System.out.println("GALAXY ACE S5830i"); //never printed
I can't get what's wrong here.