1

Android portrait and landscape Mode

view story
linux-howto

http://stackoverflow.com – i am developing an android application where i want to enable landscape mode for large and extra-large screens only.for that i am writing the below code in oncreate() method int screenSize = getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; switch(screenSize) { case Configuration.SCREENLAYOUT_SIZE_LARGE: Toast.makeText(this, "Large screen",Toast.LENGTH_LONG).show(); break; case Configuration.SCREENLAYOUT_SIZE_NORMAL: Toast.makeT (HowTos)