1 package ro
.ieval
.unical
;
2 import android
.content
.Intent
;
3 import android
.content
.SharedPreferences
;
4 import android
.os
.Bundle
;
5 import android
.preference
.PreferenceManager
;
6 import android
.view
.Menu
;
7 import android
.view
.MenuInflater
;
8 import android
.view
.MenuItem
;
10 public class mainActivity
extends android
.app
.Activity
{
13 protected void onCreate(Bundle savedInstanceState
) {
15 // And here it began the olympic app that does olympic thing
18 super.onCreate(savedInstanceState
);
20 final SharedPreferences prefs
=PreferenceManager
.getDefaultSharedPreferences(this);
21 if(prefs
.getBoolean("FirstTime", true)) {
22 prefs
.edit().putBoolean("FirstTime", false).commit();
23 Intent i
=new Intent(this,loginActivity
.class);
29 public boolean onCreateOptionsMenu(Menu menu
) {
30 // TODO Auto-generated method stub
31 MenuInflater inflater
= getMenuInflater();
32 inflater
.inflate(R
.menu
.options
, menu
);
37 public boolean onOptionsItemSelected(MenuItem item
) {
38 // Handle item selection
39 switch (item
.getItemId()) {
41 Intent i
=new Intent(this,addEventActivity
.class);