<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/action_shuffle"
android:icon="@drawable/rand"
android:orderInCategory="1"
android:showAction="always"
android:title="shuffle"/>
<item
android:id="@+id/action_end"
android:icon="@drawable/end"
android:orderInCategory="2"
android:showAction="always"
android:title="End"/>
</menu>
@Override
public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()){
case R.id.action_shuffle:
//shuffle
break;
case R.id.action_end:
stopService(playIntent);
musicSrv=null;
System.exit(0);
break;
}
return super.onOptionsItemSelected(item);
}
I am having sleepless night on this matter. I have tried all I could but this is giving me real time headache.
At first it was uri not registered error but after I validated the error now read thus:
Error:External resource http://schemas.android.com/apk/res/android is not registered.
How do I register this?
Error #2
Error:(2, 66) cvc-elt.1.a:cannot find the declaration of element of 'menu'
Error: Premature end of file