Assalam o alikum Dear!

i found exception when passing control to another activity when user click
on menu item in android
/////////////////////////////////////////////
public boolean onOptionsItemSelected(MenuItem item) {
        // Handle item selection
        switch (item.getItemId()) {
        case R.id.temperature:
        intent=new
Intent(UnitConverterAssignmentActivity.this,temperature.class);
    startActivity(intent);
            return true;
        case R.id.dimentions:

            return true;
        case R.id.time:

            return true;

        default:
            return super.onOptionsItemSelected(item);
        }
//////////////////////////////////////////
public class temperature extends Activity {
Intent intent;
 public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
        }
}
/////////////////////////////////////

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to