How to get absolute path from Android gridview thumbnail? -


i developing android video gallery application. managed fetch thumbnails storage , show them in grid-view. now, how can original video file path clicking each thumbnail ?

here code :

mgridview.setadapter(madapter);                      mgridview                             .setonitemclicklistener(new adapterview.onitemclicklistener() {                                 @override                                 public void onitemclick(                                         adapterview<?> adapterview,                                         view view, int i, long l) {                                      toast.maketext(getapplicationcontext(), "video path", toast.length_short).show();                                  }                             }); 


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -