Android Can’t Find File android_winusb.inf

The android_winusb.inf file is in a subfolder of the Android SDK directory, specifically: ..\android-sdk\extras\google\usb_driver\android_winusb.inf In older version of the sdk it was in ..\android-sdk\usb_driver\android_winusb.inf Depending on the installation and updates you might have both. The file in extras is the newest.

Android File To String

Here’s an example of turning a file into a string, by reading it line by line File file = new File(path); InputStream inputStream = new FileInputStream(file); BufferedReader r = new BufferedReader(new InputStreamReader(inputStream)); StringBuilder total = new StringBuilder(); String line; while ((line = r.readLine()) != null) { total.append(line); } Now “total” will contain the file in

Read More

Android Get File Last Modified Date

To get a files last modified date in Android use the .lastModified() function. You can do like this: File file = new File(filePath); Date lastModDate = new Date(file.lastModified()); Log.i(“TAG”, “File last modified “+ lastModDate.toString()); This will log the last modified date for your given file in the filePath.