Add a menu button for the Home page

This commit is contained in:
bspeice 2013-11-01 16:33:22 -04:00
parent 3f5fafb7a7
commit 9085b79d4a
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/action_alert_settings" android:title="@string/action_alert_settings"
android:icon="@drawable/ic_action_settings"/> android:icon="@drawable/ic_action_settings"/>
<item android:id="@+id/action_home" android:title="Home"></item>

View File

@ -35,6 +35,9 @@ public class MenuActivity extends Activity {
case R.id.action_parking: case R.id.action_parking:
startActivity(new Intent(this, Parking.class)); startActivity(new Intent(this, Parking.class));
break; break;
case R.id.action_home:
startActivity(new Intent(this, Home.class));
break;
} }
return true; return true;
} }