But even if I set width and height to very high values I get only 135 kB:
B4X:
Public Sub SetPictureSize(Width As Int, height As Int)
r.target = parameters
r.RunMethod3("setPictureSize", "300000", "java.lang.int", "400000", "java.lang.int")
End Sub
Sorry, but after hours I didn´t find out where to define width and height to get the max. size. I won´t to do it with btnPictureSize but automatically when I click on btnTakePicture. The correct dimensions I get from the first data set of GetSupportedPicturesSizes as far as I realized.
You are correct. You should find the supported resolutions, pick one and set it with SetPictureSize. It is best to set it in Camera1_Ready (before the commit call).