Placeholder for activity stream UI
diff --git a/src/com/android/contacts/ActivityStreamActivity.java b/src/com/android/contacts/ActivityStreamActivity.java
new file mode 100644
index 0000000..0440864
--- /dev/null
+++ b/src/com/android/contacts/ActivityStreamActivity.java
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2009 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.contacts;
+
+import android.app.ListActivity;
+import android.os.Bundle;
+import android.widget.ArrayAdapter;
+
+public class ActivityStreamActivity extends ListActivity {
+
+ @Override
+ protected void onCreate(Bundle icicle) {
+ super.onCreate(icicle);
+
+ setContentView(R.layout.activity_list_content);
+
+ setListAdapter(new ArrayAdapter<String>(this,
+ android.R.layout.simple_list_item_1));
+ }
+}
diff --git a/src/com/android/contacts/ContactsActivity.java b/src/com/android/contacts/ContactsActivity.java
index fbffc17..d78d19c 100644
--- a/src/com/android/contacts/ContactsActivity.java
+++ b/src/com/android/contacts/ContactsActivity.java
@@ -64,6 +64,7 @@
mTabHost.setOnTabChangedListener(this);
// Setup the tabs
+ setupActivityStreamTab();
setupContactsTab();
setupFavoritesTab();
@@ -88,6 +89,17 @@
}
}
+ private void setupActivityStreamTab() {
+ // Just a placeholder for now
+ Intent intent = new Intent("com.android.contacts.action.LIST_DEFAULT");
+ intent.setClass(this, ActivityStreamActivity.class);
+
+ mTabHost.addTab(mTabHost.newTabSpec("stream")
+ .setIndicator(getText(R.string.activityStreamIconLabel),
+ getResources().getDrawable(R.drawable.ic_tab_contacts))
+ .setContent(intent));
+ }
+
private void setupContactsTab() {
Intent intent = new Intent(UI.LIST_DEFAULT);
intent.setClass(this, ContactsListActivity.class);