GSoC Android front-end

Eion Robb eion at
Fri Mar 23 21:19:05 EDT 2012

The frontend wouldn't just have to be written in Java, it could be
HTML5/JavaScript using something like PhoneGap as a bridge (hypothetically)
so that it could be used in Cydia as well as Android, but similar design
principals would apply  (Having a JavaScript wrapper to libpurple could be
pretty cool though, for writing plugins in javascript... maybe a different
project idea though)

On 24 March 2012 10:50, Michael Zangl <michael at> wrote:

> Libpurple currently has only been compiled for android (pidroid) and
> testet with the null protocol. That means if you write C code for
> android, you can use libpurple functions.
> But there are lots of things that need adaption, for example:
>      * Function calls from Java (GUI) need to be send and converted to
>        c function calls, probably in an other thread, because UI Thread
>        only has limited stack.
>      * The event system should be implemented in Java, for better
>        control of which thread does what and synchronisation.
>      * All objects need to be wrapped inside java objects.
>      * Object deletion often happens by libpurple, so such cases need
>        to be caught and the corresponding java objects marked for
>        deletion (=> dereference them)
>      * SSL is shipped with android, but only has java interface.
>      * I don't know about normal network connections, it might be that
>        android's permission policy is in the way and everything needs
>        to be sent through java.
>      * Calling java callbacks from c code => implementing all the ui
>        ops to send callbacks along to java.
>      * And by the way, a GUI needs to be written and adapters for
>        account list, buddy list, ... to android data structures.
> It is a task that needs a lot of little changes, so you should mainly
> focus on getting the basic protocols and stuff working, and synchronize
> all access properly.
> Am Donnerstag, den 22.03.2012, 17:55 +0100 schrieb Alexis:
> > I know what is a cross-compiler for, but never used it. According to
> > ideas page, libpurple was already ported to Android. I dont't know if
> > is this one (​dtbartle/pidroid/<>)
> or another
> > one, because is not specified.
> ______________________________​_________________
> Devel mailing list
> Devel at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Devel mailing list