User Tools

Site Tools


proton:android_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
proton:android_setup [2013/01/20 12:00]
seth
proton:android_setup [2013/06/19 07:42]
seth
Line 2: Line 2:
  
 ====Compiling for Android from Windows==== ====Compiling for Android from Windows====
-**NOTE:​**  ​12/28/2012 - Proton ​doesn'​t ​work with the latest Android ​SDK out of the boxthere are some minor changes required. The changes are described [[http://​www.rtsoft.com/​forums/​showthread.php?​5604-build-bat-failed-on-Windows-using-ndk-r8b-sdk-20-0-1&​p=25039&​viewfull=1#​post25039|here by ccthien]] or you can try to download the [[http://​www.rtsoft.com/​forums/​showthread.php?​5604-build-bat-failed-on-Windows-using-ndk-r8b-sdk-20-0-1&​p=24890&​viewfull=1#​post24890|older sdk]].  ​Seth plans on updating ​the examples to build with the latest SDKs soonish.+**NOTE:​**  ​6/19/2013 - Proton ​has been updated to work with the latest Android ​platform tools (r20) and the latest NDK. (r8e)  If your old proton project won't compilesteal the android/build.xml from a proton example and replace your old one.  ​(And edit the top as need..)
  
 Originally the Android platform was crippled by requiring all "​app"​ code to be written in Java. Originally the Android platform was crippled by requiring all "​app"​ code to be written in Java.
Line 20: Line 20:
 The C++ "​glue"​ code for Android is located in /​shared/​android and the .Java parts are in /​shared/​android/​src. ​ These are shared between all applications so be careful if you touch them. The C++ "​glue"​ code for Android is located in /​shared/​android and the .Java parts are in /​shared/​android/​src. ​ These are shared between all applications so be careful if you touch them.
  
-** Side Note **: There is actually an even newer way to do NDK now - something called a NativeActivity where you can use 100% C++.  Except you can't, because things like IAP and Tapjoy integration would still be in Java so I assume more ugly bridging would be required.. also it requires Android 2.3+ (boo, hiss), but I plan to do an android target supporting this eventually, especially since it seems to be the only way to fully support the xperia play gamepad controls. -Seth+** Side Note **: There is actually an even newer way to do NDK now - something called a NativeActivity where you can use 100% C++.  Except you can't, because things like IAP and Tapjoy integration would still be in Java so I assume more ugly bridging would be required.. also it requires Android 2.3+, but I plan to do an android target supporting this eventually, especially since it seems to be the only way to fully support the xperia play analog sticks. -Seth
  
 ====Prerequisites==== ====Prerequisites====
Line 35: Line 35:
 Important note:  For all this stuff, try to choose a custom install path WITHOUT spaces in it.  There, I just saved you like 40 minutes of diagnosing vague errors that will happen later. ​ No charge, friend! Important note:  For all this stuff, try to choose a custom install path WITHOUT spaces in it.  There, I just saved you like 40 minutes of diagnosing vague errors that will happen later. ​ No charge, friend!
  
-  * Install the [[http://​developer.android.com/​sdk/​index.html|Android SDK]] - use the Windows exe version so it will also prompt you to install the Java SE JDK which will be needed as well. NOTE - you'll need to install the 32bit version of the Java JDK, NOT the 64 bit, since the android SDK install process won'​t ​recognise ​the 64 bit version. Also note, the advice about using a custom install path applies as much for the Java JDK as it does for everything else. If you install Java to Program Files, ANT will complain about this later (since Ant sits on top of Java).+  * Install the [[http://​developer.android.com/​sdk/​index.html|Android SDK]] - use the Windows exe version so it will also prompt you to install the Java SE JDK which will be needed as well. NOTE - you'll need to install the 32bit version of the Java JDK, NOT the 64 bit, since the android SDK install process won'​t ​recognize ​the 64 bit version. Also note, the advice about using a custom install path applies as much for the Java JDK as it does for everything else. If you install Java to Program Files, ANT will complain about this later (since Ant sits on top of Java).
   * Add **C:​\whatever\android-sdk\platform-tools** to your windows path    * Add **C:​\whatever\android-sdk\platform-tools** to your windows path 
   * Add **C:​\whatever\android-sdk\tools** to your windows path   * Add **C:​\whatever\android-sdk\tools** to your windows path
proton/android_setup.txt ยท Last modified: 2017/05/22 08:33 by seth