We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is no reason to set and get null value into the Bundle object.
So
null will not be set as an extra value. That mean, if you set null as the parameter then the target Activity/Fragment/Service will not get that value.
TargetActivity
@Extra String name; @Extra int age; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); PrettyBundle.inject(this); // call to inject the extra. }
Set extras with null for the TargetActivity
Intent intent = Activities.createTargetActivityIntent(null, null); startActivity(intent);
Then
TargetActivity.name //take class variable default value. TargetActivity.age //take class variable default value.
The text was updated successfully, but these errors were encountered:
7b6448e
No branches or pull requests
There is no reason to set and get null value into the Bundle object.
So
null will not be set as an extra value. That mean, if you set null as the parameter then the target Activity/Fragment/Service will not get that value.
TargetActivity
Set extras with null for the TargetActivity
Then
The text was updated successfully, but these errors were encountered: