]> iEval git - unical.git/blobdiff - src/ro/ieval/unical/displayEventActivity.java
Rewrite the Event class and make displayEventActivity work with it
[unical.git] / src / ro / ieval / unical / displayEventActivity.java
index b6ded5dab82fded73105e2c3a7b1020d39d8460f..fb76934a7411bc4ed37c79a703ef6148a291cce9 100644 (file)
@@ -9,21 +9,21 @@ import android.view.MenuInflater;
 import android.widget.TextView;
 
 public class displayEventActivity extends Activity {
+       public static final String EXTRA_EVENT = "event";
+
        @Override
        protected void onCreate(Bundle savedInstanceState) {
-               // TODO Auto-generated method stub
                super.onCreate(savedInstanceState);
-               //aici iei parametru
-               Event e=new Event();
+               final Event e=getIntent().getParcelableExtra(EXTRA_EVENT);
                setContentView(R.layout.eventview);
            final TextView eventTitle= (TextView) findViewById(R.id.eventTitle);
                final TextView date=(TextView) findViewById(R.id.date);
                final TextView description=(TextView) findViewById(R.id.description);
                final TextView location= (TextView) findViewById(R.id.location);
                eventTitle.setText(e.title);
-               date.setText((new Date(e.date)).toString());
+               date.setText((new Date(e.dtstart)).toString());
                description.setText(e.description);
-               location.setText(e.location);
+               location.setText(e.eventLocation);
        }
        
        @Override
This page took 0.019212 seconds and 4 git commands to generate.