README.android
changeset 6354 17840f487124
parent 6330 0fa55ca2efdd
child 6387 58f0fb54bf88
equal deleted inserted replaced
6352:a9bcd26e7105 6354:17840f487124
    90 a specific message, (which is not yet implemented!) and restore your textures
    90 a specific message, (which is not yet implemented!) and restore your textures
    91 manually or quit the app (which is actually the kind of behaviour you'll see
    91 manually or quit the app (which is actually the kind of behaviour you'll see
    92 under iOS, if the OS can not restore your GL context it will just kill your app)
    92 under iOS, if the OS can not restore your GL context it will just kill your app)
    93 
    93 
    94 ================================================================================
    94 ================================================================================
       
    95  Threads and the JAVA VM
       
    96 ================================================================================
       
    97 
       
    98 For a quick tour on how Linux native threads interoperate with the JAVA VM, take
       
    99 a look here: http://developer.android.com/guide/practices/jni.html
       
   100 If you want to use threads in your SDL app, it's strongly recommended that you
       
   101 do so by creating them using SDL functions. This way, the required attach/detach
       
   102 handling is managed by SDL automagically. If you have threads created by other
       
   103 means and they make calls to SDL functions, make sure that you call
       
   104 Android_JNI_SetupThread before doing anything else otherwise SDL will attach
       
   105 your thread automatically anyway (when you make an SDL call), but it'll never
       
   106 detach it.
       
   107 
       
   108 ================================================================================
    95  Additional documentation
   109  Additional documentation
    96 ================================================================================
   110 ================================================================================
    97 
   111 
    98 The documentation in the NDK docs directory is very helpful in understanding the build process and how to work with native code on the Android platform.
   112 The documentation in the NDK docs directory is very helpful in understanding the build process and how to work with native code on the Android platform.
    99 
   113