I’m trying to build Smack from source using the Android SDK instead of the standard JRE so that I can use Smack in an Android application. The first thing I did was excluded the following, since they require AWT which isn’t included in the Android SDK:
Once that is done all that is left with problems are:
These don’t work because the Android SDK doesn’t include the following:
So my question is, does someone more knowledgable than me about these things and how they work think it’s possible to remove those dependancies without a massive amount of effort? I would assume some of them have Android equivilants, like javax.naming has to be replaced by something in Android…
An alternative, that I’m going to try next, is to see if I can pull out the source for those items from the JRE and rebuild them in my own namespace, then have Smack point to my custom built ones instead of the Java ones. However, I’m expecting that this will lead to the need for many other dependancies and / or there was a reason that the Android SDK left them out.