Reputation: 1220
I am using "setCameraDisplayOrientation" function in this link http://developer.android.com/reference/android/hardware/Camera.html but I don't know how pass current activity to this function . can any body help me ? thx
Upvotes: 1
Views: 4918
Reputation: 28484
Use Like This
setCameraDisplayOrientation(this)
or
setCameraDisplayOrientation(YourActivityName.this)
Upvotes: 6