diff options
Diffstat (limited to 'src/cgeo/geocaching/cg8.java')
| -rw-r--r-- | src/cgeo/geocaching/cg8.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cgeo/geocaching/cg8.java b/src/cgeo/geocaching/cg8.java new file mode 100644 index 0000000..698988e --- /dev/null +++ b/src/cgeo/geocaching/cg8.java @@ -0,0 +1,17 @@ +package cgeo.geocaching; + +import android.app.Activity; +import android.view.Display; + +public class cg8 { + private Activity activity = null; + + public cg8(Activity activityIn) { + activity = activityIn; + } + + public int getRotation() { + Display display = activity.getWindowManager().getDefaultDisplay(); + return display.getRotation(); + } +} |
