Which is more correct? This:
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putLong(ID, mId); }
or this:
@Override protected void onSaveInstanceState(Bundle outState) { outState.putLong(ID, mId); super.onSaveInstanceState(outState); }
They both work for me on my Gingerbread device and the Froyo and Ice Cream Sandwich emulators, and I've seen about as many examples saying one way as the other. Does it matter?
So long as your keys do not collide (e.g., ID
being the same as something Android uses internally), the two are identical.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With