f.listFiles()
will return null if the path does not exist.
Please check your path.
Update
Android will also require a permission to read certain files.
Maybe you need to add this to your manifest:
More information:
http://developer.android.com/reference/android/Manifest.permission.html