Stroing in Intent in an SQLite database with Android?

Use the Parcelable interface with the Intent: Parcel parcel; myIntent. WriteToParcel(parcel); ContentValues values = new ContentValues(); values. Put(MyField, parcel.createByteArray()); getContentResolver().

Insert(MyBaseColumn.MyTable. CONTENT_URI, values) Reverse the process to get it out If you prefer text, then you could consider using json.

Use the Parcelable interface with the Intent: Parcel parcel; myIntent. WriteToParcel(parcel); ContentValues values = new ContentValues(); values. Put(MyField, parcel.createByteArray()); getContentResolver().

Insert(MyBaseColumn.MyTable. CONTENT_URI, values); Reverse the process to get it out. If you prefer text, then you could consider using json.

I have an Android app I created and I want to store an Android Intent in the database as a blob field. I know the basics of storing and retrieving data of TEXT, INTEGER, ect, standards types in SQLite as my app already does all of that. I am not familiar with storing and retrieving blobs.

I am presuming the blob is the best way, versus storing as a string and parsing back to and Intent. Maybe that is not a correct assumption though. The intents can be a package name, URI, may have extras, etc. That is why I would like to store/retrieve the whole intent and not just store parts.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions