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
{
12 public static final String EXTRA_EVENT
= "event";
15 protected void onCreate(Bundle savedInstanceState
) {
16 super.onCreate(savedInstanceState
);
17 final Event e
=getIntent().getParcelableExtra(EXTRA_EVENT
);
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
.dtstart
)).toString());
25 description
.setText(e
.description
);
26 location
.setText(e
.eventLocation
);
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
);