| 
					
				 | 
			
			
				@@ -6,22 +6,38 @@ android_core uses the `Gradle`_ build and `Apache Ant`_ build systems. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 To build android_core, execute the `gradle wrapper`_: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-.. _Gradle: http://www.gradle.com/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+.. _Gradle: http://www.gradle.org/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 .. _Apache Ant: http://ant.apache.org/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 .. _rosmake: http://ros.org/wiki/rosmake/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 .. _gradle wrapper: http://gradle.org/docs/current/userguide/gradle_wrapper.html 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-Note that the build process currently involves extra steps that will be folded 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-into Gradle tasks or otherwise eliminated. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 Before building ROS applications for Android, you must complete the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-instructions for building rosjava_core. Once you have completed that 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+instructions for `building rosjava_core`_. Once you have completed that 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 successfully, you may proceed as follows. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-For each android_core package you're interested in (e.g. foo): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+.. _building rosjava_core: http://docs.rosjava.googlecode.com/hg/rosjava_core/html/building.html 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+The prerequisites for building android_core are the Android SDK and `Apache Ant`_. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+* Install the `Android SDK`_. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+* Install `Apache Ant`_ (e.g. on Ubuntu Lucid: ``sudo apt-get install ant1.8 ant1.8-optional``) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+.. _Android SDK: http://developer.android.com/sdk/installing.html 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+Then, for each project in android_core you have to create a local.properties 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+file. This will be automated in the future. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#. roscd android_xxx 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#. $ANDROID_SDK/tools/android update project -p \`pwd\` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+Finally, you can build debug APKs for all android_core packages using `Gradle`_. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#. roscd android_core 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#. ./gradlew debug 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+At this point, you may interact with your Android projects as described in the `Android documentation`_. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#. rosrun rosjava_bootstrap install_generated_modules.py foo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#. ./gradlew foo:debug 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+.. _Android documentation: http://developer.android.com/guide/developing/building/building-cmdline.html 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 Automatic generation of Eclipse project files is not currently supported. To 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create an Eclipse project from an existing ROS Android package: 
			 |