Ashok Domadiya
Ashok Domadiya

Reputation: 1122

How to store Non-serializable object to sqlite in android ? or also you can suggest any another way to store nonserializable arralylist objest

I was to store nonserializable object to sqlite in android. but its give me error of object is not Serializable. i just want to know, is that possible or any another way to store this objects ?

Thanks in advance.

Upvotes: 1

Views: 220

Answers (1)

Solution
Solution

Reputation: 602

Go through below,

class MyArrayList<BlutoothGattService> extends ArrayList<BlutoothGattService> implements Serializable{

}

Then use this class instead of ArrayList and you can easily Serialize object of this class.

I think it will help.

Upvotes: 1

Related Questions