Forcing camera to take images in landscape mode
<p>I have a camera application and i want that whenever the camera is opened , it takes images only in the landscape mode ?? How can i achieve this??</p>

<pre><code>Intent ia = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(ia,cameraData);

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    // TODO Auto-generated method stub
    Log.d("value of pic1", ""+pic1);
    super.onActivityResult(requestCode, resultCode, data);
    if(resultCode == RESULT_OK){
        Bundle extras = data.getExtras();
        Bitmap bmp1 = (Bitmap) extras.get("data");
    }
}   
</code></pre>
