| By Raymond Feng | Article Rating: |
|
| November 23, 2009 08:30 PM EST | Reads: |
1,374 |
In Apache Tuscany, we have been experimenting with Google Android Platform to build Mobile SOA Applications, and we now have couple Android based samples that demonstrate a Android mobile application consuming SCA services available on the cloud.
Store-android: A front end to our "Store Getting Started Guide" that consumes the catalog and shopping cart services and allow you to shop for fruits and vegetables.
SCATour-android: A front end to the "SCA Tour" scenario that allows you to search for trips direct from your Android phone.
If you are reading here, you are interested on this topic and might want to get hands-on and run this applications... below are the necessary steps to get the Tuscany/Android sample applications running:
1) Install Android SDK following the steps described in Android SDK Installation Guide:
curl -O http://dl.google.com/android/android-sdk-mac_x86-1.5_r2.zip
unzip android-sdk-mac_x86-1.5_r2.zip
2) Install Android Eclipse Plugins (Android DDMS and Android Development Tools):
- Start Eclipse, then select Help > Software Updates....
- In the dialog that appears, click the Available Software tab.
- Click Add Site...
- Enter the Location below and click Ok:
https://dl-ssl.google.com/android/eclipse/
- Back in the Available Software view, you should see the plugin listed by the URL, with "Developer Tools" nested within it. Select the checkbox next to Developer Tools and click Install...
- On the subsequent Install window, "Android DDMS" and "Android Development Tools" should both be checked. Click Next.
- Read and accept the license agreement, then click Finish.
- Restart Eclipse.
3) Create a Android Virtual Device (AVD)
cd ~/opt/android-sdk-mac_x86-1.5_r2/tools
android create avd --name android-1.1 --target 1
android create avd --name android-1.5 --target 2
4) Configure the Android Eclipse Plugins to point to the Android SDK
- Start Eclipse, then select Eclipse->Preferences->Android
- Point to the directory where you installed the Android SDK in step 1.
You you should be ready to run Android applications. Now let's add the Tuscany Android samples to your Eclipse IDE and run it.
1) Checkout Tuscany code and create Eclipse IDE project for the samples we are going to use :
svn co http://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/ java-1.x
cd java-1.x/samples/store
mvn eclipse:eclipse
2) Import the sample projects into Eclipse
- Start Eclipse
- Select File->Import : General->Existing Projects into Workspace
- Select root directory : java-1.x/samples/store
- Select File->Import : General->Existing Projects into Workspace
- Select root directory : java-1.x/samples/store-android
3) Launch the store sample application
- In eclipse project (sample-store), run the Launch.java as a Java Application
4) Launch the store android application
- In eclipse project (sample-store-android), run the project as a Android Application
You should now have your Android Fruit Store up and running, accessing the Catalog and Shopping Cart services from the regular store application we have started in step 3.
References:
- Tuscany Getting Started Guide : The Fruit Store Application scenario.
I also want to give the special Thanks to our 2009 GSoC Student, Lookman SANNI, for the recent updates to the Store-Android sample and ui.
Read the original blog entry...
Published November 23, 2009 Reads 1,374
Copyright © 2009 Ulitzer, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Raymond Feng
Raymond Feng is a senior software engineer with IBM. He is now working on the Service Component Architecture (SCA) runtime implementation in Apache Tuscany project as a committer. Raymond has been developing SOA for more than 4 years and he was a key developer and team lead for WebSphere Process Server products since 2002.
- Reality Check at the Cloud Expo
- Microsoft’s First Step Toward Cloud Computing
- Cloud Expo New York Call for Papers to Expire January 15, 2010
- Six Enterprise Megatrends to Watch in 2010
- What is Enterprise Cloud Computing?
- Five Gadgets That I Can’t Wait to See in 2010
- Technology Predictions for 2010
- My Personal 2010 Predictions
- Motorola Droid Review
- Cloud Computing Instrumental in IT Recovery for 2010
- Cloud Computing Was the Big News of 2009
- Sun Microsystems Launches GlassFish Enterprise Server v3
- Reality Check at the Cloud Expo
- Cloud Computing Can Revitalize Your Career as Software Developer
- Microsoft’s First Step Toward Cloud Computing
- Cloud Expo New York Call for Papers to Expire January 15, 2010
- Six Enterprise Megatrends to Watch in 2010
- What is Enterprise Cloud Computing?
- Five Gadgets That I Can’t Wait to See in 2010
- Technology Predictions for 2010
- Adobe Flex Developer Earns $100K in New York City
- My Personal 2010 Predictions
- Motorola Droid Review
- Cloud Computing Instrumental in IT Recovery for 2010
- The Top 150 Players in Cloud Computing
- Industry Experts Discuss the State of Cloud Computing
- Yahoo! SVP Shelton Shugar to Discuss Innovation at Cloud Computing Expo
- The Cloud Computing Kettle Heats Right Up
- Reality Check at the Cloud Expo
- Cloud Computing Can Revitalize Your Career as Software Developer
- Microsoft’s First Step Toward Cloud Computing
- Cloud Expo New York Call for Papers to Expire January 15, 2010
- Six Enterprise Megatrends to Watch in 2010
- What is Enterprise Cloud Computing?
- The Cloud Opportunity Window is Now Officially Open
- Five Gadgets That I Can’t Wait to See in 2010





















Ulitzer content is offered under Creative Commons "Attribution Non-Commercial No Derivatives" License.
For any reuse or distribution, you must make clear to others the license terms of this work.
The best way to do this is with a link to this web page.
Any of the above conditions can be waived if you get written permission from Ulitzer, Inc., the copyright holder.
Nothing in this license impairs or restricts the author's moral rights.