Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Using XMPP aSMACK library

Posted on 2012-03-12
4
1,919 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
ID: 37718753
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
ID: 37718778
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
ID: 37719474
0
 

Author Comment

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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Perplexed with Google Play 2 78
disable wifi and bluetooth 10 56
migrating my whatsapp from iPhone to an Android phone 8 70
Backup Android 2.3.6 Alarms 15 18
This is an explanation of a simple data model to help parse a JSON feed
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
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.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

860 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