[android-developers] Re: Can u help me to find the mistake? i can't run this program.

2010-10-31 Thread davemac
I'm going to guess that asking for the SEARCH_SERVICE and casting it to a SensorManager is not going to go well for you. You're probably getting a NoSuchMethodException, yes? - dave www.androidbook.com On Oct 29, 12:01 am, 菠菜冬 huabeiyipil...@gmail.com wrote: package com.android.CirclingCounter;

[android-developers] Re: Can u help me to find the mistake? i can't run this program.

2010-10-31 Thread Bob Kerns
No, assuming he doesn't get an error even earlier, I'm sure he gets a ClassCastException on that line. That happens before it even checks for the method. NoSuchMethodException is somewhat more esoteric The advice he actually needs is beyond the scope of this group. But I'll sum it up: Learn to