android - How to create thumbnails for videos from sd card.? -
i'm new android development, , i'm listing videos storage(my mobile) , want create thumbnail display in custom listview . my problem when creating thumbnail it's taking time, how solve ? please me out. below code create thumbnail @override protected void oncreate(bundle savedinstancestate){ super.oncreate(savedinstancestate); setcontentview(r.layout.video_list); listview videolist=(listview)findviewbyid(r.id.video_list); arraylist<string> videoname = new arraylist<>(); final arraylist<string> videopath = new arraylist<>(); arraylist<bitmap> videothumbnail = new arraylist<>(); string selection =mediastore.video.media._id; string[] columns = { mediastore.video.media.data,mediastore.video.media.display_name}; cursor cursor = getcontentresolver().query(mediastore.video.media.external_content_uri, columns, selection, null, null); while (cursor.movetonext()){ bitmap bmthu...