How to make Android system force LANDSCAPE for all apk?

To get this, I've made three kind of modify in android system(v4.04).They are: 1., modified the getOrientationFromWindowsLocked(); 2., modified the onResume(); 3., modified the setInitialDisplaySize(); They all get work, but also with some side effect. So is there a better modify for this? Any suggestion will greatly appreciated. Thanks very much.


According to me you have to modified your SensorManager class in android. The method provided is onSensorChange(). In this method you can write the code for your requirement i.e for Landscape mode.

Need Your Help

Fluffy Cloud Configurations For .NET windows hosting amazon-web-services cloud

Very simple question, is there any cloud server enviroments avaliable these days for us .NET guys that rivals Amazons ec2?

Error updating Swift 1 array code to Swift 2

ios arrays swift swift2.1

Hello i have just updated to swift 2 and i the following error in my array: