Tag: file

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

Tagged with: , ,

Xcode Commit Missing File Or Directory

Xcode aren’t keen when deleting files or directory without it being notifies and there refused to commit which is a pain.¬†What worked to fix it was to recreate an empty folder with the same name. No need to recreate its

Tagged with: , , ,

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

Tagged with: , ,

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

Tagged with: , ,