Great Luciano,

I'm trying the code you have commited.

Instructions to get it running:

1. checkout the Java SCA 1.x from
https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/, compile and
install it using mvn and etc

2. import all SCA modules, but tuscany-host-embedded, to your Eclipse
workspace

3. rename the tuscany-host-android to tuscany-host-embedded, so you don't
need to fix the other projects that are still referencing
tuscany-host-embedded instead of tuscany-host-android

3. Import samples/calculator-android to your workspace

After these three steps, if you run calculator-android, you will get a no
class not found exception when it tries to load XMLInputFactory, whihc
belongs to stax api. It seems Android eclipse plugin still does not include
automatically the other projects' jar depencencies to Android project. So
you need to add manually the stax-api and stax library jars to the Android
project. Unfortunatelly, when you try to compile it again, it will throw
that error again about not allowing "core" libraries into Android
applications. It happens because XMLInputFactory is defined in
javax.xml.stream package, and this package is considered by android compiler
a core library :S

So, here we go again back to this problem :S

Luciano, when you get back from vacation, could you help me recompile the
Android SDK with the stax classes and make it available for everybody?! : )

Best Regards,
Adriano Crestani



On Sat, Dec 20, 2008 at 3:03 PM, Luciano Resende <[email protected]>wrote:

> Below are some updates on what I have done on Android on the last
> couple days...
>
> - Store android sample app : a work in progress store app that runs on
> android and consumes the services from Tuscany original store app. It
> uses native JSON support from Android and uses JSON-RPC to invoke SCA
> services. The catalog piece of this sample is working fine, but we
> need to finish up the cart piece, mainly getting a button on the
> catalog to add to cart and the logic behind this.
>
> - Android SCA Runtime (host-android / calculator-android) : This is
> the effort we started during GSoC, I have made some progress in this
> area, and right now I'm in the process of bootstrapping the tuscany
> extensions in the host-android (similar to what we had before we
> introduced the tuscany extension mechanism) to workaround the Android
> limitation that concatenate all jars into a dex file and ignore the
> META-INF pieces... this and the fixes on the android jar to allow
> QNames should give us some progress on this effort.
>
> There is also a need to get some of these sample apps integrated to
> the build environment, and I have looked into this in the past, but
> haven't bring the android maven plugin to life yet.
>
> Well, anyone is welcome to help on both directions (the store-android
> or Android SCA runtime)...
> I'll also start working on this in the next couple days once I get
> back from vacation...
>
> --
> Luciano Resende
> Apache Tuscany, Apache PhotArk
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://lresende.blogspot.com/
>

Reply via email to