And another question. The emulator rotates a photo. Meanwhile on native smartphones I don't see similar trouble. This is emulator's bug or it's necessary to check something ?
New release doesn't work on my Samsung S4 (Android 4.4) and API 19 emulator (Unfortunately, Camera has stopped). Probably a problem not in FileProvider
Meanwhile, works in API 21 emulator
Erel --
Like I wrote before, I tested on physical smartphone also (Samsung Galaxy S4 with Android 4.4)
Old release works, new release gives an error. But the error is inside Camera application, so there is no log.
Probably, old applications are not "FileProvider"-ready.
Thanx, Erel. I did exactly so. The difference in one fragment only. Instead of
B4X:
i.PutExtra("output", CreateFileProviderUri(imageFolder, tempImageFile)) 'the image will be saved to this path
shoud be
B4X:
If SdkVersion >= 23 Then
i.PutExtra("output", CreateFileProviderUri(imageFolder, tempImageFile)) 'the image will be saved to this path
Else
uri.Parse("file://" & File.Combine(imageFolder, tempImageFile))
i.PutExtra("output", uri) 'the image will be saved to this path
End If