I am trying to save an instance of StatusBarNotification
, so that i could show the notification later to the user. I noticed that StatusBarNotifcation
is not Serializable
but Parcelable
. Is there any way to store the exact instance state in the database so that even if user turns of his phone, the instance object is stored.
I know its not the best practice to store the Parcelable
object in database. But I need to do it.
If there is any way i could get the byte array of the instance, I am open for suggetions.
Aucun commentaire:
Enregistrer un commentaire