User Tools

Site Tools


projtec:readme.md

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projtec:readme.md [2017/03/23 15:30] orelprojtec:readme.md [2024/03/18 15:06] (current) – external edit 127.0.0.1
Line 47: Line 47:
 Don't forget to accept ALL Licences when the install process starts! Don't forget to accept ALL Licences when the install process starts!
  
-**At CREMI, launch for the first time the following script to move $HOME/.android in a different place to save disk space:**+**At CREMI**  
 + 
 +Get archive *android-sdl2-demo.zip* on Moodle and decompress it... 
 + 
 +Then, launch (only for the first timethe following script to move $HOME/.android in a different place to save disk space:**
  
     ./init-cremi.sh     ./init-cremi.sh
Line 194: Line 198:
 ---------- ----------
  
-You can deploy and run your application on both a real phone (off-topic) or an emulator.+You can deploy and run your application on both a real phone or an emulator. 
 + 
 +### Deployment on Emulator
  
 To create your own emulator or AVD (Android Virtual Device), launch To create your own emulator or AVD (Android Virtual Device), launch
Line 226: Line 232:
  
 Now, find the 'SDL2 Demo' icon in the Android emulator... Enjoy! Now, find the 'SDL2 Demo' icon in the Android emulator... Enjoy!
 +
 +### Deployment on a real phone (Android version >= 6.0)
 +
 +First to activate the developer mode. For that, click 5 times on the [build number](https://www.greenbot.com/article/2457986/how-to-enable-developer-options-on-your-android-phone-or-tablet.html).
 +
 +Now, on your phone, allow "debug via USB"
 +
 +Now connect your phone with a USB cable.
 +
 +Now, on your phone, allow this particular computer to debug via the USB cable
 +
 +Finally, on the computer run the deployment command:
 +
 +    ant debug install
 +    
  
 Android Log & Debug Android Log & Debug
Line 238: Line 259:
     adb shell getprop     adb shell getprop
  
-GDB Debug (off-topic)+GDB Debug (off-topic)
  
---+---
 aurelien.esnard@u-bordeaux.fr aurelien.esnard@u-bordeaux.fr
  
projtec/readme.md.1490283008.txt.gz · Last modified: 2024/03/18 15:05 (external edit)