android - VideoView memory leak -


has of encountered similar memory leak? how i'm handling videoview @ moment

@override protected void onfinishinflate() {     super.onfinishinflate();     butterknife.bind(this);      uri videouri = uri.parse(string.format("android.resource://%s/%s", getcontext().getpackagename(), videores));     videoview.setvideouri(videouri);     videoview.setonpreparedlistener(mp -> {         mp.setlooping(true);         videoview.start();     }); } 

this on leakcanary

enter image description here

any appreciated!

when using butterknife fragments, need use unbinder in ondestroyview() correctly dereference fragment's views -- since fragments have different life cycles activities.

there related issue here.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -