This is Google reference from API4 ...
Camera.Parameters.set(String key, String value);
Camera.Parameters.set(String key, int value);
Where is the "key" ? I want know what kind of the keys
I can't ratate my camera preview.
This is I learned code.
public void surfaceChanged(SurfaceHolder holder, int format, int w,
int h) {
Camera.Parameters param = mycamera.getParameters();
param.set("rotation", 90); // It's not works
param.setPictureSize(w, h);
mycamera.setParameters(param);
mycamera.startPreview();
}
But screen will appear horizontally.
It is not different from used set method
I get the same result even used set("aaa", 90);
I don't know where wrong. help me please.
Thank you.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en