Solved

Using XMPP aSMACK library

Posted on 2012-03-12
4
1,910 Views
Last Modified: 2012-03-14
Hi.

Im developing a chat for an Android app, and i am using the aSMACK library, the one used for Android. Im trying to open the debug, because I can connect correctly, and the send method does not launch any exception, but there is no response. The only thing I need is to activate the debugger!.

 My code:

protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.chatlayout);
		XMPPConnection.DEBUG_ENABLED = true;
		BOSHConnection.DEBUG_ENABLED = true;
		ConnectionConfiguration conconfig = new ConnectionConfiguration("talk.google.com", 5222);
		conconfig.setDebuggerEnabled(true);
		
		
		final XMPPConnection con=new XMPPConnection(conconfig);

Open in new window


Any help? thank you.
0
Comment
Question by:Grontag
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Dejan Pažin
Comment Utility
What IDE are you developing in? If you use IDEA it is very simple to use debugger on either the real phone or emulator.
0
 

Author Comment

by:Grontag
Comment Utility
I am using Eclipse. I have debugged with Eclipse, but it doesn't allow me to watch the traffic sent and received.
0
 
LVL 17

Accepted Solution

by:
Dejan Pažin earned 500 total points
Comment Utility
0
 

Author Comment

by:Grontag
Comment Utility
I was able to finally develop my app without debugging traffic, but thank you very much for your help, anyway.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I tend toward trying the newest hardware and software.  Thiss sometimes works out to my benefit, and sometimes not.  Because I downloaded and installed Android 5.x (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.htm…
If your app took Google’s lash recently, here are the 5 most likely reasons.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now