1 package org
.kremlinware
.dh
.keccak
;
3 import android
.support
.v7
.app
.ActionBarActivity
;
4 import android
.os
.Bundle
;
5 import android
.view
.Menu
;
6 import android
.view
.MenuItem
;
8 public class MainActivity
extends ActionBarActivity
{
11 protected void onCreate(Bundle savedInstanceState
) {
12 super.onCreate(savedInstanceState
);
13 setContentView(R
.layout
.activity_main
);
17 public boolean onCreateOptionsMenu(Menu menu
) {
18 // Inflate the menu; this adds items to the action bar if it is present.
19 getMenuInflater().inflate(R
.menu
.main
, menu
);
24 public boolean onOptionsItemSelected(MenuItem item
) {
25 // Handle action bar item clicks here. The action bar will
26 // automatically handle clicks on the Home/Up button, so long
27 // as you specify a parent activity in AndroidManifest.xml.
28 int id
= item
.getItemId();
29 if (id
== R
.id
.action_settings
) {
32 return super.onOptionsItemSelected(item
);