Hey when I try to save a object to internal storage. I keep on get error NotSerializableException saying I need to Serialize matrix so can I go about doing that ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on which Matrix-class you are talking about, if it is the android.graphics.Matrix, you’ll have to use
getValues()to get an array of the contained values and Serialize that, then on loading the data back you create a new Matrix and callsetValues()with the array as the argument.