CopyPastor

Detecting plagiarism made easy.

Score: 0.8544146802864576; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2020-10-18
by Lina Zaki

Original Post

Original - Posted on 2010-05-09
by hackbod



            
Present in both answers; Present only in the new answer; Present only in the old answer;

The current configuration, as used to determine which resources to retrieve, is available from the Resources' Configuration object:
getResources().getConfiguration().orientation;
You can check for orientation by looking at its value:
int orientation = getResources().getConfiguration().orientation; if (orientation == Configuration.ORIENTATION_LANDSCAPE) { // In landscape } else { // In portrait }
The current configuration, as used to determine which resources to retrieve, is available from the Resources' `Configuration` object:
getResources().getConfiguration().orientation;
You can check for orientation by looking at its value:
int orientation = getResources().getConfiguration().orientation; if (orientation == Configuration.ORIENTATION_LANDSCAPE) { // In landscape } else { // In portrait }
More information can be found in the [Android Developer]( http://developer.android.com/reference/android/content/res/Configuration.html#orientation).

        
Present in both answers; Present only in the new answer; Present only in the old answer;