Saber Solooki
Saber Solooki

Reputation: 1220

How pass activity to function in android

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

Answers (1)

Biraj Zalavadia
Biraj Zalavadia

Reputation: 28484

Use Like This

setCameraDisplayOrientation(this) or

setCameraDisplayOrientation(YourActivityName.this)

Upvotes: 6

Related Questions