I'm new to Android development and I'm on my first application. When my problem is, I have a menu option that says "Settings" and when selected, it brings up a new screen with all the settings options. I've looked at the examples and it shows 2 ways: intent filters, and hard-coding the class name; I'm using the latter method.
Here's my code:
Is there any other code I should post in order to figure out the problem?
Here's my code:
Code:
public class MyClass extends Activity
{
@Override
public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId())
{
case MENU_SETTINGS:
startActivity(new Intent(this, TheSettings.class));
break;
}
return super.onOptionsItemSelected(item);
}
};
Is there any other code I should post in order to figure out the problem?