How to run an Android application written in Red?

When I enter this in Windows CMD ...

red -c -t Android hello.red

... Red displays a file with a name hellowithout a file name extension. If I transfer this file to my Android device, he does not know what to do with it.

What additional steps should I follow to check my red code on my Android device? Which of these steps, if any, should I do differently, depending on whether my code will try to use the Android modem?

+4
source share
4 answers

If you do not package the executable in the .APK, then for security reasons, Android throws some walls in your path to chmod + x and starts.

, :

$ cd /data/data/jackpal.androidterm/shared_prefs

$ cat /sdcard/Download/hello.bin > hello

$ chmod 755 ./hello

$ ./hello

, cat cp, , .

Nexus 5.

+3

Android - , android. , :

red -t Android <script.red>

APK , APK ( , JDK1.6 +). , APK .

, system/formats/APK.r 11 verbose yes.

. .

+3

, , , , Red Linux Android ODROID 2014 http://magazine.odroid.com.

" 2014" ( ) , , .apk Red.

+1
source

Source: https://habr.com/ru/post/1545634/


All Articles