Hi,
Sorry for the late reply.
I looks like the addStanzaAcknowledgedListener callbacks are not called for the fist two packets until the first chat packet is ack'ed. See the last three lines in the log below.
When I register for the specific packet ID, processPacket() callback is not even called.
I am using the snapshot release of 2015-01-28. Unfortunately I do not know how to easily use the sources-jar inside Android Studio and therefor I am not able to set breakpoints (I am using the jar with the compiled sources).
Thanks,
Andrej
SENT (0): <stream:stream xmlns='jabber:client' to='localhost' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='38d0c0e8cfd24522835db7002e65a959@localhost' xml:lang='en'>
RECV (0): <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='572510457' from='localhost' version='1.0' xml:lang='en'>
RECV (0): <stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mech anism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/><sm xmlns='urn:xmpp:sm:3'/></stream:features>
SENT (0): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='SCRAM-SHA-1'>biwsbj0zOGQwYzBlOGNmZDI0NTIyODM1ZGI3MDAyZTY1YTk1OSxyPUF iQGZPLjBWNWF+fiNVfSYna2c5LU46XGRZUVI9Zil2</auth>
RECV (0): <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cj1BYkBmTy4wVjVhfn4jVX0mJ2tnOS1OOlxkWV FSPWYpdndxUE92d2hoLzJ6K2hVL3p6QU5qbHc9PSxzPW1xeGdrakVxRVpvb2F2K3hyNDg3MHc9PSxpPT QwOTY=</challenge>
SENT (0): <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Yz1iaXdzLHI9QWJAZk8uMFY1YX5+I1V9JidrZz ktTjpcZFlRUj1mKXZ3cVBPdndoaC8yeitoVS96ekFOamx3PT0scD1qSzZxRUprR3EzMzJSZkQ3VlkyL0 d0UXBrVGs9</response>
RECV (0): <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dj0zcTF0djJMU2E1QU1tR1JnaytGNnh6K0lsM2 c9</success>
SENT (0): <stream:stream xmlns='jabber:client' to='localhost' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='38d0c0e8cfd24522835db7002e65a959@localhost' id='572510457' xml:lang='en'>
Last login: Mon Feb 2 19:26:44 on ttys000
matthijss-mbp:~ andrej$ vim /tmp/bla.txt
matthijss-mbp:~ andrej$ cat /tmp/bla.txt
SENT (0): <stream:stream xmlns='jabber:client' to='localhost' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='38d0c0e8cfd24522835db7002e65a959@localhost' xml:lang='en'>
RECV (0): <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='572510457' from='localhost' version='1.0' xml:lang='en'>
RECV (0): <stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mech anism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/><sm xmlns='urn:xmpp:sm:3'/></stream:features>
SENT (0): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='SCRAM-SHA-1'>biwsbj0zOGQwYzBlOGNmZDI0NTIyODM1ZGI3MDAyZTY1YTk1OSxyPUF iQGZPLjBWNWF+fiNVfSYna2c5LU46XGRZUVI9Zil2</auth>
RECV (0): <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cj1BYkBmTy4wVjVhfn4jVX0mJ2tnOS1OOlxkWV FSPWYpdndxUE92d2hoLzJ6K2hVL3p6QU5qbHc9PSxzPW1xeGdrakVxRVpvb2F2K3hyNDg3MHc9PSxpPT QwOTY=</challenge>
SENT (0): <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Yz1iaXdzLHI9QWJAZk8uMFY1YX5+I1V9JidrZz ktTjpcZFlRUj1mKXZ3cVBPdndoaC8yeitoVS96ekFOamx3PT0scD1qSzZxRUprR3EzMzJSZkQ3VlkyL0 d0UXBrVGs9</response>
RECV (0): <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dj0zcTF0djJMU2E1QU1tR1JnaytGNnh6K0lsM2 c9</success>
SENT (0): <stream:stream xmlns='jabber:client' to='localhost' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='38d0c0e8cfd24522835db7002e65a959@localhost' id='572510457' xml:lang='en'>
RECV (0): <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2594809415' from='localhost' version='1.0' xml:lang='en'><stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/><register xmlns='http://jabber.org/features/iq-register'/><sm xmlns='urn:xmpp:sm:3'/></stream:features>
SENT (0): <iq id='bPaws-1' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>android/38a332ee3de6e61a</re source></bind></iq>
RECV (0): <iq id='bPaws-1' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>38d0c0e8cfd24522835db7002e65a959@ localhost/android/38a332ee3de6e61a</jid></bind></iq>
SENT (0): <iq id='bPaws-3' type='set'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>
RECV (0): <iq type='result' id='bPaws-3'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>
SENT (0): <enable xmlns='urn:xmpp:sm:3' resume='true'/>
RECV (0): <presence from='7154a5d8af3e4221976d374b2f05e4c1@localhost/android/16d8ca6d93b4223f' to='38d0c0e8cfd24522835db7002e65a959@localhost/android/38a332ee3de6e61a' xml:lang='en' id='mJ3aP-5'/>
RECV (0): <enabled xmlns='urn:xmpp:sm:3' id='PO/o5pRAz0I1+Oru8NKMWu1YJS8W' resume='true'/>
User logged (0): 38d0c0e8cfd24522835db7002e65a959@localhost:5222/android/38a332ee3de6e61a
XMPPConnection authenticated (0)
SENT (0): <presence id='bPaws-6'></presence>
SENT (0): <iq id='bPaws-7' type='get'><query xmlns='jabber:iq:roster'></query></iq>
RECV (0): <presence from='38d0c0e8cfd24522835db7002e65a959@localhost/android/38a332ee3de6e61a' to='38d0c0e8cfd24522835db7002e65a959@localhost/android/38a332ee3de6e61a' xml:lang='en' id='bPaws-6'/><r xmlns='urn:xmpp:sm:3'/>
RECV (0): <presence from='7154a5d8af3e4221976d374b2f05e4c1@localhost/android/16d8ca6d93b4223f' to='38d0c0e8cfd24522835db7002e65a959@localhost/android/38a332ee3de6e61a' xml:lang='en' id='mJ3aP-5'><delay xmlns='urn:xmpp:delay' from='7154a5d8af3e4221976d374b2f05e4c1@localhost/android/16d8ca6d93b4223f' stamp='2015-02-03T07:26:29Z'></delay><x xmlns='jabber:x:delay' stamp='20150203T07:26:29'/></presence><r xmlns='urn:xmpp:sm:3'/>
SENT (0): <a xmlns='urn:xmpp:sm:3' h='1'/>
SENT (0): <a xmlns='urn:xmpp:sm:3' h='2'/>
RECV (0): <iq from='38d0c0e8cfd24522835db7002e65a959@localhost' to='38d0c0e8cfd24522835db7002e65a959@localhost/android/38a332ee3de6e61a' id='bPaws-7' type='result'><query xmlns='jabber:iq:roster'><item subscription='both' name='friendx' jid='7154a5d8af3e4221976d374b2f05e4c1@localhost'/></query></iq><r xmlns='urn:xmpp:sm:3'/>
SENT (0): <a xmlns='urn:xmpp:sm:3' h='3'/>
SENT (0): <message to='7154a5d8af3e4221976d374b2f05e4c1@localhost' id='chat_message_ack_prefix_workaround_2' type='chat'><body>ABC
</body><thread>7154a5d8af3e4221976d374b2f05e4c1</thread></message>
SENT (0): <r xmlns='urn:xmpp:sm:3'/>
RECV (0): <a xmlns='urn:xmpp:sm:3' h='3'/>
processPacket bPaws-6
processPacket bPaws-7
processPacket chat_message_ack_prefix_workaround_2