Here's the gist of my problem code:
String from = extra.getString("from");
Log.d("Cat", from); //debugs as edit
if(from == "edit") {
Log.d("Cat", "Edit");
} else {
Log.d("Cat", "Not Edit");
}
It would go to "Not Edit"
In the calling activity I have
cIntent.putExtra("from", "edit");
startActivity(cIntent);
If I changed all that up to getInt and passed 1, it debugs as Edit, and if passed 2, debugs as Not Edit.
I don't understand whats going on. I can live with it if I need to, but I feel like I'm missing something very basic here.
Thanks.