I am running the below code. There are two snippets. The first is how I am setting the bundle and the second how I am retrieving it. For some reason every time i check the b
When you are creating your intent, just put the extras right in there. you are trying to access the wrong bundle in your code above. Something like this should work.
Intent intent = new Intent(this, com.hom.app.Hom.class);
intent.putExtras("WELL", "yes");
startActivity(intent);
Don't know why it would be returning null, but your code would not work even if the bundle was coming through correctly because you are doing string comparison with ==
This line:
if(well == standard) method();
Should be
if(well.equals(standard)) method();
From the documentation:
The keys must include a package prefix, for example the app com.android.contacts would use names like "com.android.contacts.ShowAll".
so instead why don't you just use
intent.putExtra("WELL", "yes");