<activity android:name=".AddEventActivity"></activity>
<activity android:name=".DisplayEventActivity"></activity>
<activity android:name=".AlarmReceiverActivity"></activity>
+ <activity android:name=".AddAlarmActivity"></activity>
</application>
</manifest>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TimePicker
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/timePicker" android:layout_gravity="left|center_vertical"/>
+ <DatePicker
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/datePicker" android:layout_gravity="left|center_vertical"/>
+</LinearLayout>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/save"
+ android:title="@string/save"
+ android:showAsAction="always"
+ android:icon="@android:drawable/ic_menu_save">
+ </item>
+</menu>
\ No newline at end of file
--- /dev/null
+package ro.ieval.unical;
+
+import android.app.ListActivity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuInflater;
+
+public class AddAlarmActivity extends ListActivity {
+ @Override
+ protected void onCreate(final Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.add_alarm);
+ setTitle(R.string.add_alarm);
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(final Menu menu) {
+ final MenuInflater inflater = getMenuInflater();
+ inflater.inflate(R.menu.add_alarm, menu);
+ return true;
+ }
+}
AddEventActivity.editEvent(DisplayEventActivity.this,event);
return true;
case R.id.add_alarm:
-
+ startActivity(new Intent(this,AddAlarmActivity.class));
return true;
default:
return true;