I have a following structure: — bundles —- nicebundle —— src ——– … ——– nicebundle.config ———- NiceConfig.java ——– … —- mybundle —— … —- another bundles… -…
Tag: bundle
Passing Nullable Values from Activity to Fragment
When passing Strings from an activity to a fragment using I can also pass potential null and receive it in the fragment with I’d also like to pass nullable Floats and Integers but the corresponding putInt() and putFloat() methods don’t allow passing null. I am now passing additional flags as arguments that indicate whether a value is set or not
NullPointerException received when calling Bundle.getParcelable
I have a problem that I am trying to solve for few hours but cannot solve it and I need some help. I am trying to retrieve URL strings from a Login activity and trying to pass it to the Main activity using a parcelable object but I receive NullPointerException on getParcelable method. Following is the code that creates the