The XML:
<item android:id="@+id/itemPrefs"
android:title="@string/titlePrefs"
android:icon="@android:drawable/ic_menu_preferences"></item>
<!-- added the bottom two -->
<item android:title="@string/titleServiceStart"
android:id="@+id/itemServiceStart"
android:icon="@android:drawable/ic_media_play"></item>
<item android:title="@string/titleServiceStop"
android:id="@+id/itemServiceStop"
android:icon="@android:drawable/ic_media_pause"></item>
The Java code
case R.id.itemServiceStart:
startService(new Intent(this, UpdaterService.class));
break;
case R.id.itemServiceStop:
stopService(new Intent(this, UpdaterService.class));
break;
//top two are new
case R.id.prefs:
Intent i = new Intent(this, PrefsActivity.class);
startActivity(i);
break;
I made note of what is new because before they were put in, all the code worked, and now I'm getting cannot find symbol errors and it's pissing me off. I've done clean builds and check R.java and it all checks out the variables are being made. Help?

New Topic/Question
Reply


MultiQuote






|