3 * This file is part of shape_android.
5 * shape_android is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * shape_android is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with shape_android. If not, see <http://www.gnu.org/licenses/>.
19 package org.ocera.orte.shape_android;
21 import android.app.Activity;
22 import android.os.Bundle;
23 import android.view.Menu;
24 import android.view.MenuItem;
27 * This activity shows help.
29 * @author jiri hubacek <jiri.hubacek@gmail.com>
33 public class HelpActivity extends Activity
36 * Setting up workspace.
41 protected void onCreate(Bundle savedInstanceState) {
42 super.onCreate(savedInstanceState);
43 setContentView(R.layout.activity_help);
48 * There is nothing in the menu now.
53 public boolean onCreateOptionsMenu(Menu menu) {
54 // Inflate the menu; this adds items to the action bar if it is present.
55 getMenuInflater().inflate(R.menu.help, menu);
60 * Nothing happens now when menu is selected.
65 public boolean onOptionsItemSelected(MenuItem item) {
66 // Handle action bar item clicks here. The action bar will
67 // automatically handle clicks on the Home/Up button, so long
68 // as you specify a parent activity in AndroidManifest.xml.
69 int id = item.getItemId();
70 if (id == R.id.action_settings) {
73 return super.onOptionsItemSelected(item);