As i don't know how to test in emulator..i test it on phone and printed the value of "x" in the screen. initially the value changes but after sometimes value becomes 0; where as my onTouchEvent is working fine.
On Sun, Aug 8, 2010 at 10:23 PM, RichardC <[email protected]>wrote: > Anything in LogCat? > > On Aug 8, 4:53 pm, diptendu das <[email protected]> wrote: > > Hi all, > > in my game i use SensorListener for CAR movement according to phone > > tilting but stop responding after some time. > > my code is > > > > public void onSensorChanged(int sensor, float[] values) { > > if (sensor == SensorManager.SENSOR_ACCELEROMETER ) { > > > > x = values[SensorManager.DATA_X]; > > > > } > > > > I am new to Android please help me. , > > -- > > -- > > Thanks & Regards > > Diptendu > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- -- Thanks & Regards Diptendu -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

