Ask a Question
Advertise on boostr.in
should the renderingthread of a surfaceview have the same life cycle as the view using -'android,design-patterns,design,surfaceview'
should the renderingthread of a surfaceview have the same life cycle as the view ¬†using -'android,design-patterns,design,surfaceview'
When creating a SurfaceView it's normal to also create a separate thread to draw onto the surface. Is it better programming practice to have the thread be created and destroyed at the same time the activity is, or at the same time the surface is?
What are some of the advantages/pitfalls of either way?
Sep 7, 2015
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please