diff --git a/android/BOINC/res/drawable-hdpi/ic_launcher.png b/android/BOINC/res/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index 96a442e5b8..0000000000
Binary files a/android/BOINC/res/drawable-hdpi/ic_launcher.png and /dev/null differ
diff --git a/android/BOINC/res/drawable-hdpi/ic_menu_add.png b/android/BOINC/res/drawable-hdpi/ic_menu_add.png
new file mode 100644
index 0000000000..444e8a5ee8
Binary files /dev/null and b/android/BOINC/res/drawable-hdpi/ic_menu_add.png differ
diff --git a/android/BOINC/res/drawable-ldpi/ic_launcher.png b/android/BOINC/res/drawable-ldpi/ic_launcher.png
deleted file mode 100644
index 99238729d8..0000000000
Binary files a/android/BOINC/res/drawable-ldpi/ic_launcher.png and /dev/null differ
diff --git a/android/BOINC/res/drawable-ldpi/ic_menu_add.png b/android/BOINC/res/drawable-ldpi/ic_menu_add.png
new file mode 100644
index 0000000000..89620af8c0
Binary files /dev/null and b/android/BOINC/res/drawable-ldpi/ic_menu_add.png differ
diff --git a/android/BOINC/res/drawable-mdpi/ic_launcher.png b/android/BOINC/res/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index 359047dfa4..0000000000
Binary files a/android/BOINC/res/drawable-mdpi/ic_launcher.png and /dev/null differ
diff --git a/android/BOINC/res/drawable-mdpi/ic_menu_add.png b/android/BOINC/res/drawable-mdpi/ic_menu_add.png
new file mode 100644
index 0000000000..361c7c460e
Binary files /dev/null and b/android/BOINC/res/drawable-mdpi/ic_menu_add.png differ
diff --git a/android/BOINC/res/drawable-xhdpi/ic_launcher.png b/android/BOINC/res/drawable-xhdpi/ic_launcher.png
deleted file mode 100644
index 71c6d760f0..0000000000
Binary files a/android/BOINC/res/drawable-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/android/BOINC/res/drawable-xhdpi/ic_menu_add.png b/android/BOINC/res/drawable-xhdpi/ic_menu_add.png
new file mode 100644
index 0000000000..7d498a96e2
Binary files /dev/null and b/android/BOINC/res/drawable-xhdpi/ic_menu_add.png differ
diff --git a/android/BOINC/res/layout/projects_layout.xml b/android/BOINC/res/layout/projects_layout.xml
index 4a23efd7db..795f3fb739 100644
--- a/android/BOINC/res/layout/projects_layout.xml
+++ b/android/BOINC/res/layout/projects_layout.xml
@@ -17,27 +17,16 @@
You should have received a copy of the GNU Lesser General Public License
along with BOINC. If not, see .
-->
-
-
-
-
-
+
+
+
diff --git a/android/BOINC/res/menu/eventlog_menu.xml b/android/BOINC/res/menu/eventlog_menu.xml
index 4176c3bacd..14188ef732 100644
--- a/android/BOINC/res/menu/eventlog_menu.xml
+++ b/android/BOINC/res/menu/eventlog_menu.xml
@@ -1,6 +1,6 @@
\ No newline at end of file
diff --git a/android/BOINC/res/menu/projects_menu.xml b/android/BOINC/res/menu/projects_menu.xml
new file mode 100644
index 0000000000..9141839fbc
--- /dev/null
+++ b/android/BOINC/res/menu/projects_menu.xml
@@ -0,0 +1,5 @@
+
+
\ No newline at end of file
diff --git a/android/BOINC/res/values/strings.xml b/android/BOINC/res/values/strings.xml
index 78be586691..7bfbe3d55f 100644
--- a/android/BOINC/res/values/strings.xml
+++ b/android/BOINC/res/values/strings.xml
@@ -18,10 +18,6 @@
along with BOINC. If not, see .
-->
-
- BOINC Test Project
- http://isaac.ssl.berkeley.edu/test/
-
BOINC
BOINC started.
@@ -107,7 +103,7 @@
Reading projects…
- + Add project
+ Add project
Delete project
Update project
@@ -184,4 +180,8 @@
Requested by project
Unknown reason
+
+ Email to…
+ Send mail…
+
diff --git a/android/BOINC/src/edu/berkeley/boinc/EventLogActivity.java b/android/BOINC/src/edu/berkeley/boinc/EventLogActivity.java
index 129b0a63d4..5f47261aa6 100644
--- a/android/BOINC/src/edu/berkeley/boinc/EventLogActivity.java
+++ b/android/BOINC/src/edu/berkeley/boinc/EventLogActivity.java
@@ -158,7 +158,6 @@ public class EventLogActivity extends FragmentActivity {
super.onDestroy();
}
-
@Override
public boolean onCreateOptionsMenu(Menu menu) {
Log.d(TAG, "onCreateOptionsMenu()");
diff --git a/android/BOINC/src/edu/berkeley/boinc/ProjectsActivity.java b/android/BOINC/src/edu/berkeley/boinc/ProjectsActivity.java
index b190282cf1..f6f9c8d8f5 100644
--- a/android/BOINC/src/edu/berkeley/boinc/ProjectsActivity.java
+++ b/android/BOINC/src/edu/berkeley/boinc/ProjectsActivity.java
@@ -39,6 +39,9 @@ import android.os.IBinder;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.FragmentActivity;
import android.util.Log;
+import android.view.Menu;
+import android.view.MenuInflater;
+import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
@@ -162,8 +165,31 @@ public class ProjectsActivity extends FragmentActivity {
super.onDestroy();
}
- public void addProjectButtonClicked(View view) {
- Log.d(TAG, "addProjectButtonClicked");
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ Log.d(TAG, "onCreateOptionsMenu()");
+
+ MenuInflater inflater = getMenuInflater();
+ inflater.inflate(R.menu.projects_menu, menu);
+
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ Log.d(TAG, "onOptionsItemSelected()");
+
+ switch (item.getItemId()) {
+ case R.id.projects_add:
+ onProjectAdd();
+ return true;
+ default:
+ return super.onOptionsItemSelected(item);
+ }
+ }
+
+ public void onProjectAdd() {
+ Log.d(TAG, "onProjectAdd()");
startActivity(new Intent(this,LoginActivity.class));
}