I am making an android 1.6 application using a phone camera.
To make this an independent application, I need to set a compatible aspect ratio to preview the camera on SurfaceLayout. There is no way in 1.6 sdk to get supported sizes for camera preview. Can I use a 4: 3 or 3: 2 aspect ratio and not get errors with this?
On the other hand, I need a way to make an xml layout that represents this Surfacelayout in this (unknown) aspect ratio in each resolution. I assume it is not possible to resize SurfaceLayout at runtime. Can I do this with dp blocks? Another way does this layout programmatically?
There are several applications, such as Vignette or an Android camera application with some tricks to do something like this, for example black bars (vignette) or a panel of fixed buttons, but I donβt know how to do this in any kind of resolution.
Any ideas?
Thanks!
source share