--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/res/layout/sendim.xml Sat Mar 21 00:48:28 2009 +0100
@@ -0,0 +1,25 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+ <ListView android:id="@+id/listMessages"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:scrollbars="horizontal"
+ />
+ <EditText android:id="@+id/sendText"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:textSize="16sp"
+ android:autoText="false"
+ android:capitalize="none"
+ android:scrollHorizontally="true"/>
+ <Button android:id="@+id/send"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="Send">
+ </Button>
+</LinearLayout>
--- a/src/com/beem/project/beem/ui/ContactList.java Fri Mar 20 22:23:35 2009 +0100
+++ b/src/com/beem/project/beem/ui/ContactList.java Sat Mar 21 00:48:28 2009 +0100
@@ -32,6 +32,7 @@
private void showContactList() {
ExpandableListAdapter Adapter;
+
List<Map<String, String>> groupData = new ArrayList<Map<String, String>>();
List<List<Map<String, String>>> childData = new ArrayList<List<Map<String, String>>>();
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/com/beem/project/beem/ui/SendIM.java Sat Mar 21 00:48:28 2009 +0100
@@ -0,0 +1,37 @@
+package com.beem.project.beem.ui;
+
+import java.util.ArrayList;
+
+import org.jivesoftware.smack.packet.Message;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+
+import com.beem.project.beem.R;
+
+public class SendIM extends Activity {
+ private EditText mToSend;
+ private ArrayList<String> mMessages = new ArrayList<String>();
+
+ @Override
+ public void onCreate(Bundle saveBundle) {
+ super.onCreate(saveBundle);
+ setContentView(R.layout.sendim);
+ mToSend = (EditText) findViewById(R.id.sendText);
+
+ Button send = (Button) this.findViewById(R.id.send);
+ send.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View view) {
+ String text = mToSend.getText().toString();
+ /*
+ * Prepare the message to send
+ * */
+ Message msg = new Message("barbu", Message.Type.chat);
+ msg.setBody(text);
+ }
+ });
+ }
+}