# HG changeset patch # User Philippe Lago # Date 1237592908 -3600 # Node ID 1e044613960c29bb70d1a5b5178937fa13de91cc # Parent 280112cd9602832f329dd935abfaf9191c54c36b Activite envoi de messages diff -r 280112cd9602 -r 1e044613960c res/layout/sendim.xml --- /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 @@ + + + + + diff -r 280112cd9602 -r 1e044613960c src/com/beem/project/beem/ui/ContactList.java --- 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> groupData = new ArrayList>(); List>> childData = new ArrayList>>(); diff -r 280112cd9602 -r 1e044613960c src/com/beem/project/beem/ui/SendIM.java --- /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 mMessages = new ArrayList(); + + @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); + } + }); + } +}