Here is a simple way to change the orientation of the activity in android
Through java code we do this….

 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

Through xml we do this

<activity android:name=”.MainActivity”
           android:label=”@string/app_name”
           android:screenOrientation=”landscape” >
       <intent-filter>
          <action android:name=”android.intent.action.MAIN” />
          <category android:name=”android.intent.category.LAUNCHER” />
       </intent-filter>
</activity>

Following are two other values that you can specify in the android:screenOrientation attribute:

➤➤ portrait — Portrait mode
➤➤ sensor — Based on the accelerometer

Please leave your valuable comments.

ch_height = 250; ch_type = "mpu"; ch_sid = "Chitika Default"; ch_color_site_link = "0000cc"; ch_color_title = "0000cc"; ch_color_border = "ffffff"; ch_color_text = "000000"; ch_color_bg = "ffffff";
Mega World News Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google Yahoo Buzz StumbleUpon Weekend Joy