[android-developers] XMPP on Android, an android service approach

2010-10-29 Thread rtreffer
crashed won't cause the service to quit. The source was just pushed to github: http://github.com/rtreffer/AsmackService http://github.com/rtreffer/AsmackChat I thought LGPL 2.1 and Apache 2.0 would give every project a chance to use it. There are still some Apache 2 only parts, but they are on my

[android-developers] Re: zlib / inflate / partial sync / hanging

2010-10-10 Thread rtreffer
I've finally found the problem: /** * Returns 0 when when this stream has exhausted its input; and 1 otherwise. * A result of 1 does not guarantee that further bytes can be returned, * with or without blocking. * * pAlthough consistent with the RI, this behavior is

[android-developers] Re: zlib / inflate / partial sync / hanging

2010-10-06 Thread rtreffer
Ok, results so far: zlib decompression works, even with InflaterInputStream and partial flush. However the xml pull parser seems to have implicit dependencies on specific read/available behaviour. Return 0 (no data read) causes a partial parsing of the input stream. (I've tried to decode the raw

[android-developers] zlib / inflate / partial sync / hanging

2010-10-05 Thread rtreffer
Good Morning, I recently got stuck playing around with xmpp and stream compression (essentially a zlib initialization). There is an alternate implementation, jzlib, which most apps use for this purpose. XMPP recommends a flush after each package. This is especially needed during feature

[android-developers] Where can I find the Android Cloud to Device Messaging API?

2010-05-20 Thread rtreffer
So Android 2.2 is out, we've got a new SDK, and a promising new feature Android Cloud to Device Messaging. But I just can't find any traces of this in the API diff. Did anyone find an API? Or some further docs? Thanks in advance, Rene Treffer -- You received this message because you are

[android-developers] Re: aSmack library errors

2010-05-08 Thread rtreffer
Hi, On May 2, 12:44 am, Alex Hall mehg...@gmail.com wrote: Hi all, I am relatively new to android. As a project for the programming class I am in, we have to make an app in android, and, since I am blind, I am working on a simple messaging program which will work with speech and the vibrator

[android-developers] Re: asmack as apposed to smack

2010-05-04 Thread rtreffer
Sorry, I've totally missed that posting. Asmack is trunk based, so any javadoc of the latest version should be fine. Trunk based means you'll get smack and smackx in one package. Use e.g. proguard if you have to strip content. The main difference is that trunk smack won't run on Android. You

[android-developers] Re: Best practice for P2P handset networking

2009-12-23 Thread rtreffer
Serverless XMPP, here we go: http://xmpp.org/extensions/xep-0174.html NOTICE: The protocol defined herein is a Final Standard of the XMPP Standards Foundation and can be considered a stable technology for implementation and deployment. You will need a patched XMPP lib, too.

[android-developers] Smack 3.1.0 an Android

2009-12-07 Thread rtreffer
Hi, I've hacked together a working smack 3.1.0 lib for Android. http://github.com/rtreffer/asmack Here's what's inside: - apache harmony spec for javax.security.sasl - qpid and novell openldap/jldap for SaslClient impl. (Plain Digest- MD5) - smack(x) - various patches shell scripts to glue

[android-developers] Re: Smack 3.1.0 an Android

2009-12-07 Thread rtreffer
...@buddycloud.com wrote:I On Dec 7, 10:28 am, rtreffer rtref...@googlemail.com wrote: Hi, I've hacked together a workingsmack3.1.0 lib for Android. http://github.com/rtreffer/asmack Here's what's inside: - apache harmony spec for javax.security.sasl - qpid and novell openldap/jldap

[android-developers] Re: Smack 3.1.0 an Android

2009-12-07 Thread rtreffer
On 7 Dez., 21:08, rtreffer rtref...@googlemail.com wrote: Hi, thanks for the feedback. I've just got MD5-Digest working (due to another request). This should make the lib working with just about every jabber server, I'll push it as soon as I'm online with my laptop. I'll try DNS later today