Changed Java source file to use constant from API instead of just a String.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 27 Apr 2013 14:26:15 +0200
changeset 7119 b0ad5dd4cabb
parent 7118 84d8f37b112b
child 7120 bc4424a5a38f
Changed Java source file to use constant from API instead of just a String.
android-project/src/org/libsdl/app/SDLActivity.java
--- a/android-project/src/org/libsdl/app/SDLActivity.java	Sat Apr 27 14:13:30 2013 +0200
+++ b/android-project/src/org/libsdl/app/SDLActivity.java	Sat Apr 27 14:26:15 2013 +0200
@@ -482,7 +482,7 @@
         setOnKeyListener(this); 
         setOnTouchListener(this);   
 
-        mSensorManager = (SensorManager)context.getSystemService("sensor");
+        mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
 
         // Some arbitrary defaults to avoid a potential division by zero
         mWidth = 1.0f;