1

Android : Google Drive : Set thumbnail for image file

view story
linux-howto

http://stackoverflow.com – I use the following code to set thumb nail for file to upload on Google Drive : // Set thumb nail path String thumbnail_path = mediaContent.getFile().getAbsolutePath(); // thumbnail_path : "/sdcard/Picture/ds01.jpg" // File's meta data. File body = new File(); body.setTitle(fileContent.getName()); body.setMimeType("image/jpeg"); // Thumb nail final Thumbnail thumbnail = new Thumbnail(); thumbnail.setMimeType("image/jpeg"); thumbnail.setImage(thumbnail_path); // s (HowTos)