What is orientation in android? How is it done?



What is orientation in android? How is it done?..

Answer / Anurag Singh Chauhan

Orientation in Android refers to the screen orientation (portrait or landscape) of an application. To control the orientation, developers can add the `android:screenOrientation` attribute to their manifest file. The possible values are `sensor`, `landscape`, `portrait`, and `user`. The 'sensor' value allows users to rotate the device and will automatically switch between portrait and landscape.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Android OS Interview Questions

What is reactivex android?

1 Answers  


What is the difference between activities and services?

1 Answers  


Tell us what is ddms? Describe some of its capabilities?

1 Answers  


What is an explicit intent?

1 Answers  


As discussed, there are 4 main components in android application. And in androidmanifest.xml file, you need to declare?

1 Answers  


In auto-generated code of an android app, what is r class?

1 Answers  


What is activitycreator?

1 Answers  


How are layouts placed in android?

1 Answers  


What database is used in android? How does it differ from client-server database management systems?

1 Answers  


What is container in android?

1 Answers  


How would you update the ui of an activity from a background service?

1 Answers  


What is the demand of mobile application developers?

1 Answers  


Categories