# HG changeset patch
# User marseille
# Date 1240525941 -7200
# Node ID 72bfb4fe5815426f6f01321a2bd22d80a58a8ef1
# Parent 2809f7f2d04a646ef08c0a3ed16987e122df3a95# Parent b9223cf6f3be1d123685933b07f650c810750dc4
COntactList modification affichage 'correcte'
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/away.png
Binary file res/drawable/away.png has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/buddie_robot.png
Binary file res/drawable/buddie_robot.png has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/chat.png
Binary file res/drawable/chat.png has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/connecting.png
Binary file res/drawable/connecting.png has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/dnd.png
Binary file res/drawable/dnd.png has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/error.png
Binary file res/drawable/error.png has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/invisible.png
Binary file res/drawable/invisible.png has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/logo.jpg
Binary file res/drawable/logo.jpg has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/message.png
Binary file res/drawable/message.png has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/online.png
Binary file res/drawable/online.png has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/requested.png
Binary file res/drawable/requested.png has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/scrollbar_vertical_thumb.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/res/drawable/scrollbar_vertical_thumb.xml Fri Apr 24 00:32:21 2009 +0200
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/scrollbar_vertical_track.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/res/drawable/scrollbar_vertical_track.xml Fri Apr 24 00:32:21 2009 +0200
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/xmpp.jpg
Binary file res/drawable/xmpp.jpg has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/drawable/xmpp.png
Binary file res/drawable/xmpp.png has changed
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/layout/contactlistcontact.xml
--- a/res/layout/contactlistcontact.xml Thu Apr 23 23:03:25 2009 +0200
+++ b/res/layout/contactlistcontact.xml Fri Apr 24 00:32:21 2009 +0200
@@ -9,8 +9,10 @@
android:gravity="center_vertical" >
@@ -30,8 +32,11 @@
diff -r 2809f7f2d04a -r 72bfb4fe5815 res/layout/sendim.xml
--- a/res/layout/sendim.xml Thu Apr 23 23:03:25 2009 +0200
+++ b/res/layout/sendim.xml Fri Apr 24 00:32:21 2009 +0200
@@ -7,31 +7,35 @@
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:paddingLeft="10px"
- android:paddingRight="10px"
android:background="@drawable/beem_sendim_header_1"
android:gravity="center_vertical" >
-
+ />
+ android:paddingLeft="10sp" />
+ android:paddingLeft="15sp" />
@@ -76,6 +80,9 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/beem_sendim_textview"
+ android:scrollbarTrackVertical="@drawable/scrollbar_vertical_track"
+ android:scrollbarThumbVertical="@drawable/scrollbar_vertical_thumb"
+ android:scrollbarSize="12dip"
android:layout_weight="1">
-
+
diff -r 2809f7f2d04a -r 72bfb4fe5815 src/com/beem/project/beem/BeemApplication.java
--- a/src/com/beem/project/beem/BeemApplication.java Thu Apr 23 23:03:25 2009 +0200
+++ b/src/com/beem/project/beem/BeemApplication.java Fri Apr 24 00:32:21 2009 +0200
@@ -5,6 +5,7 @@
import java.util.LinkedList;
import java.util.List;
+
import android.app.Activity;
import android.app.Application;
import android.app.ProgressDialog;
@@ -18,9 +19,13 @@
import android.os.Message;
import android.os.RemoteException;
import android.util.Log;
+import android.widget.Toast;
+
import com.beem.project.beem.service.aidl.IBeemConnectionListener;
import com.beem.project.beem.service.aidl.IXmppConnection;
import com.beem.project.beem.service.aidl.IXmppFacade;
+import com.beem.project.beem.ui.AddContact;
+import com.beem.project.beem.ui.ContactList;
import com.beem.project.beem.utils.Status;
/**
@@ -61,7 +66,6 @@
try {
mConnection = mFacade.createConnection();
if (!mConnection.isAuthentificated()) {
- mProgressDialog.show();
mConnection.addConnectionListener(mConnectionListener);
mApplicationContext.startService(BeemApplication.SERVICE_INTENT);
}else {
@@ -111,6 +115,8 @@
*/
public synchronized void startBeemService() {
if (!mIsConnected) {
+ mProgressDialog.setMessage("Connecting...");
+ mProgressDialog.show();
// the connection will be made on service connect
mApplicationContext.bindService(BeemApplication.SERVICE_INTENT, mServConn, BIND_AUTO_CREATE);
}
@@ -207,7 +213,6 @@
* Constructor.
*/
public ConnectionListener() {
-
}
/**
@@ -215,9 +220,7 @@
*/
@Override
public void connectionClosed() throws RemoteException {
- // TODO Auto-generated method stub
- Log.e("BeemApp", "test1");
-
+ Log.e(TAG, "Connection Close");
}
/**
@@ -252,8 +255,6 @@
*/
@Override
public void reconnectingIn(int seconds) throws RemoteException {
- // TODO Auto-generated method stub
- mProgressDialog.show();
}
/**
@@ -261,9 +262,6 @@
*/
@Override
public void reconnectionFailed() throws RemoteException {
- // TODO Auto-generated method stub
- Log.e("BeemApp", "test3");
-
}
/**
@@ -271,8 +269,6 @@
*/
@Override
public void reconnectionSuccessful() throws RemoteException {
- // TODO Auto-generated method stub
-
}
@Override
diff -r 2809f7f2d04a -r 72bfb4fe5815 src/com/beem/project/beem/ui/ChangeStatus.java
--- a/src/com/beem/project/beem/ui/ChangeStatus.java Thu Apr 23 23:03:25 2009 +0200
+++ b/src/com/beem/project/beem/ui/ChangeStatus.java Fri Apr 24 00:32:21 2009 +0200
@@ -1,16 +1,14 @@
package com.beem.project.beem.ui;
import android.app.Activity;
-
+import android.content.Context;
import android.content.Intent;
-
-import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
-
import android.os.Bundle;
import android.os.Handler;
import android.os.RemoteException;
+import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
@@ -22,7 +20,6 @@
import com.beem.project.beem.BeemApplication;
import com.beem.project.beem.BeemService;
import com.beem.project.beem.R;
-
import com.beem.project.beem.service.aidl.IXmppFacade;
import com.beem.project.beem.utils.Status;
@@ -44,18 +41,20 @@
private static final int UNAVAILABLE_IDX = 4;
private SharedPreferences mSettings;
private ArrayAdapter mAdapter;
- private Context mContext = this;
private Toast mToast;
+ private static Integer nb = 0;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- setContentView(R.layout.changestatus);
-
+
+ nb++;
+ Log.i("nb de oncreate changestatus", nb.toString());
// Beem Application specific
mHandler = new Handler();
mBeemApplication = BeemApplication.getApplication(this);
-
+
+ setContentView(R.layout.changestatus);
mStatusText = (TextView) findViewById(R.id.ChangeStatusText);
mOk = (Button) findViewById(R.id.ChangeStatusOk);
mClear = (Button) findViewById(R.id.ChangeStatusClear);
@@ -67,7 +66,7 @@
mAdapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item, STATUS);
mAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
mSpinner.setAdapter(mAdapter);
- mToast = Toast.makeText(mContext, R.string.ChangeStatusOk, Toast.LENGTH_LONG);
+ mToast = Toast.makeText(this, R.string.ChangeStatusOk, Toast.LENGTH_LONG);
showSettings();
}
diff -r 2809f7f2d04a -r 72bfb4fe5815 src/com/beem/project/beem/ui/ContactList.java
--- a/src/com/beem/project/beem/ui/ContactList.java Thu Apr 23 23:03:25 2009 +0200
+++ b/src/com/beem/project/beem/ui/ContactList.java Fri Apr 24 00:32:21 2009 +0200
@@ -87,14 +87,6 @@
}
@Override
- protected void onResume() {
- super.onResume();
- if (mSettings.getString(getString(R.string.PreferenceHostKey), "") == "") {
- startActivityForResult(new Intent(this, ContactListSettings.class), PREFERENCECHANGED);
- }
- }
-
- @Override
protected void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
@@ -155,9 +147,17 @@
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == PREFERENCECHANGED) {
if (resultCode == RESULT_OK) {
+ /*
+ List tmp = new ArrayList();
+ tmp.add("");
+ List tmpC = new ArrayList();
+ tmpC.add(new Contact());
+ showContactList(tmp, tmpC);
+ */
+ setContentView(R.layout.changestatus);
mBeemApplication.stopBeemService();
mBeemApplication.startBeemService();
- callbackShowContactList();
+ //callbackShowContactList();
}
}
}