I have an app that calls the camera intent and everything works fine when saving the image to the sd card. To get the proper directory for storing the image, I use
If File.ExternalReadable AND File.ExternalWritable Then
defDir = File.DirDefaultExternal
Else
defDir = File.DirInternal
End If
Then I call the camera intent with:
camintent.Initialize("android.media.action.IMAGE_CAPTURE", "")
camintent.PutExtra("output",ParseUri("file://" & File.Combine(defDir,"myimage.jpg")))
Everything works fine with an sd card phone.
Then I use a phone with the sd card removed, and the camera intent opens but File.Exists(defDir, "myimage.jpg") returns false
File.Exists(defDir, "") returns true, however. So, for some reason, myimage.jpg does not appear to be written to the defDir folder.
I have used Astro and searched the whole internal storage and am not able to locate either the image file or the directory that Log(defDir) reports as being the default internal directory, even though File.Exists(defDir, "") returns true.
Can the camera intent write files other than gallery files only to an external card?
If File.ExternalReadable AND File.ExternalWritable Then
defDir = File.DirDefaultExternal
Else
defDir = File.DirInternal
End If
Then I call the camera intent with:
camintent.Initialize("android.media.action.IMAGE_CAPTURE", "")
camintent.PutExtra("output",ParseUri("file://" & File.Combine(defDir,"myimage.jpg")))
Everything works fine with an sd card phone.
Then I use a phone with the sd card removed, and the camera intent opens but File.Exists(defDir, "myimage.jpg") returns false
File.Exists(defDir, "") returns true, however. So, for some reason, myimage.jpg does not appear to be written to the defDir folder.
I have used Astro and searched the whole internal storage and am not able to locate either the image file or the directory that Log(defDir) reports as being the default internal directory, even though File.Exists(defDir, "") returns true.
Can the camera intent write files other than gallery files only to an external card?