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!

]]>

5 Commentsto Pierre Hébert​​ very special bug report: If you create a shortcut in LL, LL saves the intent for this shortcut, but…

  1. Anonymous says:

    < ![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.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    But an intent is simple data… Well I think I know how to work around this.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Intent yes, but Parcelable are not 😉

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Intents are parcelables…

    ]]>

  5. Anonymous says:

    < ![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.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *