question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow use of other persistable Parcelable types (such as Serializable) in ContentValues

See original GitHub issue

From looking at the implementation of ContentValues, it looks like this is just using Parcelable to move data around. We can already store primitives into ContentValues. However, is it possible (or a good idea at all) to store objects that are Serializable into it?

If possible, this seems like it might be a good solution to marshaling/unmarshaling more complex data types via ColumnAdapters.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
JakeWhartoncommented, Mar 23, 2016

Serializable is best if you close your eyes tightly and pretend it never existed.

Do you have a use case that’s motivating this? We rarely make changes based on speculative need, but when natural usage necessitates something at least three times.

1reaction
JakeWhartoncommented, Mar 23, 2016

👍 closing the issue then

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow use of other persistable Parcelable types (such ... - GitHub
We can already store primitives into ContentValues . However, is it possible (or a good idea at all) to store objects that are...
Read more >
Intent - Android Developers
Implementing these categories allows others to find the special action it provides without directly knowing about it, through the PackageManager.
Read more >
Diff - 25a1351831b9912c8316a90444fb3bd1521b5cfc^2 ...
Serializable ; @@ -29,47 +28,25 @@ * A mapping from String values to various Parcelable types. * */ -public final class Bundle implements...
Read more >
A model for contextual data sharing in smartphone applications
The model allows apps to retrieve contextual data in a simple and efficient manner without interacting directly with the other apps.
Read more >
Version 1.2 - The Busy Coder's Guide to Android Development
technology is being discussed for use in other areas (e.g., car dashboard ... Allows us to consolidate all our per-widget type casting in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found