bitmap - Frame is not Available ..... I want to show a thumbnail of my SD Card Videosin ListView -
i want to show thumnail of sd card videos in listview have problem of frame not available
final arraylist<file> mysongs = findsongs(environment.getexternalstoragedirectory()) ; sitems = new string[mysongs.size()] ; slocations = new string[mysongs.size()] ; (int = 0 ; < mysongs.size(); i++){ sitems[i] = mysongs.get(i).getname().tostring().replace(".mp4","") ; toast.maketext(getapplicationcontext(),mysongs.get(i).tostring(),toast.length_short).show(); // string abc = mysongs.get(i).tostring() ; uri = uri.fromfile(new file(abc)); // uri = uri.parse(mysongs.get(i).tostring()); //toast.maketext(getapplicationcontext(),uri.tostring(),toast.length_short).show(); // items[i] = uri.tostring() ; // path path = paths.get(uri); bmthumbnail[i] = thumbnailutils.createvideothumbnail(uri.tostring(), mediastore.images.thumbnails.micro_kind); map<string, object> datum = new hashmap<string, object>(2); datum.put("name", sitems[i]); datum.put("thumbnail", bmthumbnail[i]); data.add(datum); }
Comments
Post a Comment