why sometime it throws FileNotFoundException
问题 The code works for most of the time, but some time it throws exception. Couldn't figure out what could cause it. What is does is to create a file at /storage/emulated/0/Download/theFileName.jpg and write data to it (from sourceFile which does exist), but got "file not exist" exception for the newly created file. (it does have uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE", and uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE " in manifest). File