# HG changeset patch # User Da Risk # Date 1293984053 -3600 # Node ID 5437786281e3dae290e3535a80b30949e034bf10 # Parent 7527ec12857d456f36507a88b0f93e4edd64ff6f Add an option to enable the smack debugger diff -r 7527ec12857d -r 5437786281e3 res/layout/preferences.xml --- a/res/layout/preferences.xml Wed Dec 29 13:54:02 2010 +0100 +++ b/res/layout/preferences.xml Sun Jan 02 17:00:53 2011 +0100 @@ -94,6 +94,8 @@ + Configurer la sonnerie des messages entrants Chat compact Activer la fenetre Chat compact + Activer le debugger XMPP Inscription acceptée diff -r 7527ec12857d -r 5437786281e3 res/values/strings.xml --- a/res/values/strings.xml Wed Dec 29 13:54:02 2010 +0100 +++ b/res/values/strings.xml Sun Jan 02 17:00:53 2011 +0100 @@ -121,7 +121,8 @@ Set the chat windows compact History You need to have SDcard mounted and writable to enable history - Enable/Disable history messages + Enable history messages + Enable XMPPP debug Subscription accepted diff -r 7527ec12857d -r 5437786281e3 src/com/beem/project/beem/BeemApplication.java --- a/src/com/beem/project/beem/BeemApplication.java Wed Dec 29 13:54:02 2010 +0100 +++ b/src/com/beem/project/beem/BeemApplication.java Sun Jan 02 17:00:53 2011 +0100 @@ -83,6 +83,8 @@ public static final String NOTIFICATION_VIBRATE_KEY = "notification_vibrate"; /** Preference key for notification sound. */ public static final String NOTIFICATION_SOUND_KEY = "notification_sound"; + /** Preference key for smack debugging. */ + public static final String SMACK_DEBUG_KEY = "smack_debug"; //TODO add the other one diff -r 7527ec12857d -r 5437786281e3 src/com/beem/project/beem/BeemService.java --- a/src/com/beem/project/beem/BeemService.java Wed Dec 29 13:54:02 2010 +0100 +++ b/src/com/beem/project/beem/BeemService.java Sun Jan 02 17:00:53 2011 +0100 @@ -154,7 +154,8 @@ || mSettings.getBoolean("settings_key_gmail", false)) { mConnectionConfiguration.setSecurityMode(SecurityMode.required); } - mConnectionConfiguration.setDebuggerEnabled(false); + if (mSettings.getBoolean(BeemApplication.SMACK_DEBUG_KEY, false)) + mConnectionConfiguration.setDebuggerEnabled(true); mConnectionConfiguration.setSendPresence(true); // maybe not the universal path, but it works on most devices (Samsung Galaxy, Google Nexus One) mConnectionConfiguration.setTruststoreType("BKS");