java - Saving Android FaceDetector.Face[] on rotation -


i trying save facedetector.face array on screen rotation, facial detection not have performed again. app seems take longer normal rotation. however, can't store faces array in onsavedinstancestate since isn't serializable. tried extending facedetector.face implementing serializable, doesn't have default constructor. should save object array 1 on rotation, didn't implement?

i suggest creating static fragment without ui on activity. once that, can use store data. keep in mind facedetector.face, object holds locations on bitmap , not bitmap itself.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -