Skip to content

Instantly share code, notes, and snippets.

View thomasorten's full-sized avatar

Thomas Orten thomasorten

View GitHub Profile
@Abdelhady
Abdelhady / DeviceOrientation
Last active April 29, 2023 05:16
A utility class to help get current device orientation, you will need it if you decided to fix the activity's orientation in the manifest :)
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.media.ExifInterface;
/**
* Created by abdelhady on 9/23/14.
*
* to use this class do the following 3 steps in your activity:
@metmajer
metmajer / README.md
Last active March 31, 2019 09:06
Zoomable Sunburst with Labels

Zoomable Sunburst with Labels