Pierre Hébert very special bug report: If you create a shortcut in LL, LL saves the intent for this shortcut, but…
Pierre Hébert very special bug report: If you create a shortcut in LL, LL saves the intent for this shortcut, but after a restart of LL the intent lost all non-primitive Extras.
How I noticed this: If I set a shortcut to my app layoutmanager and select the option to launch something afterwards, the app saves this as a parcelable intent extra. While LL stays active, this extra exists and gets launched after the animation, but when I restart LL the extra is gone and – logically – can’t be started.
-> LL does not persist the exact intent!
]]>« I have successfully added a color-shift to the battery-widget. (Previous Post)
(Next Post) Excuse me… »
< ![CDATA[
if http://developer.android.com/reference/android/content/Intent.html#toUri(int) doesn’t save parcelable, this is because parcelable are not meant to be serialized. Parcels are only valid when exchanged over the binder. If you need to save data you need to use primitive types. I am sorry that’s an Android requirement.
]]>
< ![CDATA[
But an intent is simple data… Well I think I know how to work around this.
]]>
< ![CDATA[
Intent yes, but Parcelable are not 😉
]]>
< ![CDATA[
Intents are parcelables…
]]>
< ![CDATA[
No, intents look like Parcelable. You may know what is behind the Parcelable Intent, you don’t know what is behind other Parcelables. Forget about using parcel binary data to persist things, it already broke in the past.
]]>