1 package ro
.ieval
.unical
;
5 import android
.app
.Activity
;
6 import android
.os
.Bundle
;
7 import android
.view
.Menu
;
8 import android
.view
.MenuInflater
;
9 import android
.widget
.TextView
;
11 public class displayEventActivity
extends Activity
{
13 protected void onCreate(Bundle savedInstanceState
) {
14 // TODO Auto-generated method stub
15 super.onCreate(savedInstanceState
);
18 setContentView(R
.layout
.eventview
);
19 final TextView eventTitle
= (TextView
) findViewById(R
.id
.eventTitle
);
20 final TextView date
=(TextView
) findViewById(R
.id
.date
);
21 final TextView description
=(TextView
) findViewById(R
.id
.description
);
22 final TextView location
= (TextView
) findViewById(R
.id
.location
);
23 eventTitle
.setText(e
.title
);
24 date
.setText((new Date(e
.date
)).toString());
25 description
.setText(e
.description
);
26 location
.setText(e
.location
);
30 public boolean onCreateOptionsMenu(Menu menu
) {
31 // TODO Auto-generated method stub
32 // nu stiu cum sa pun delete in loc de new event
33 MenuInflater inflater
= getMenuInflater();
34 inflater
.inflate(R
.menu
.options
, menu
);