android - videos to show in thumbnails? -


im new android.. how show video thumbnail text in listview row?

i have stored set of youtube url in database(server). using asynctask retrieved url's , stored in array string... in onpostexecute method..how display array video url's in list view text??

how implement this??

class loadfiles extends asynctask<string, string, string> {     @override     protected void onpreexecute() {         super.onpreexecute();         pdialog = new progressdialog(focusarea.this);         pdialog.setmessage("loading videos. please wait...");         pdialog.setindeterminate(false);         pdialog.setcancelable(false);         pdialog.show();     }       protected string doinbackground(string... args) {         list<namevaluepair> params = new arraylist<namevaluepair>();         params.add(new basicnamevaluepair("name", name));         json = jsonparser.makehttprequest(url_geturl, "get", params);                log.d("all groups: ", json.tostring());     try {         int success = json.getint(tag_success);         system.out.println("success");         if (success == 1) {             system.out.println("success");                groups = json.getjsonarray(tag_group);             system.out.println("result success+++"+groups);             (int = 0; < groups.length(); i++) {             jsonobject c = groups.getjsonobject(i);                 string intro = c.getstring(tag_intro);                 system.out.println("checking ::"+intro);                                 vid.add(intro);                 system.out.println("videos link" + vid);                 if(intro!=null && intro!=""){                     videourl=intro;                 }else {                     showalert();                 }                             } catch (jsonexception e) {         system.out.println("error "+e.tostring());             }         return null;           }                protected void onpostexecute(string file_url) {         // dismiss dialog after getting videos         pdialog.dismiss();           vid=new arraylist<string>(new arraylist<string>(vid));            // how implement here...                 }              } 

1) asynctasks in image downloaded first, stored cache, , displayed on onpostexecute method. image obtained cache subsequently.

2) nostra's universal image loader.

3) fedor's lazylist. and;

4) novoda's imageloader.


Comments