Android Question Save notification to database and retrieve it

Chicao99

Member
Licensed User
Longtime User
Hi, I'd like to save a notification (StatusBarNotification.Notification) on a SQLite database and retrieve is few minutes later, but it's not working as I can only save and retrieve strings, any method to do this?
 

cklester

Well-Known Member
Licensed User
Do a search on this forum. There's probably an answer for you somewhere.

Off the top of my head, you should be able to serialize it, maybe BASE64 it, and save it as a blob. Then you can pull it back out and deserialize it into a SBN object.
 
Upvote 0
Top