Open Forum > What's New

ScriptBasic for Android

<< < (12/15) > >>

kryton9:
Thanks John for the info. I get confused too easily anymore jumping from language to language and system to system. I still get into the mood every so many months, but the old mind is not as cooperative as it was 10 years ago :)

First time in my life, I hope Microsoft gets version 8 right to unify truly once and for all multi-device development. But they seem to do things to shoot themselves in the foot quite often. Already signs of it with no opengl support for arm devices, at least so far.

Support:
I found this SL4A API Help Guide that might be worth having a peek at.

Support:
Dr. AIR comes through again and finds the solution to bringing ScriptBasic extension modules to life on Android Linux. (NDK)



kryton9:
Nice to see your team making progress John. Thanks for the updates.

Support:
Here are a few more extension module calls to the t.so (tools) and ux.so (unix specific) functions.

t_xml.sb

--- Code: ---declare command XML alias "xmlserialize" lib "/data/data/org.scriptbasic/t.so"

a{"Name"}="John"
a{"Age"}=59

print XML(a),"\n"

--- End code ---

t_md5.sb

--- Code: ---declare sub MD5 alias "md5fun" lib "/data/data/org.scriptbasic/t.so"

m = MD5("JRS")
print "0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |A |B |C |D |E |F |\n"
for x = 1 to len(m)
  print right("0" & hex(asc(mid(m,x,1))),2) & "|"
next
printnl

--- End code ---

ux_fork - I was surprised that Android allowed forking a child process.

--- Code: ---declare sub uxfork alias "uxfork" lib "/data/data/org.scriptbasic/ux.so"

pid = uxfork()

IF pid THEN
  PRINT "Created a child process with a PID of ",pid,"\n"
ELSE
  PRINT "This is a child process with the PID of ",pid,"\n"
END IF

LINE INPUT x

--- End code ---


Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version