Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 20-Aug-2015 13:57:23

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

.xos with custom code does not display console on android

hello!

i created a simple os3d project.  all it does is use addsourcecode plugit with this function in it:

fun helloworld()=

_showconsole;
  _fooS "Hello Android";
0;;

i added an onint plugit to trigger the "run" action on addsourcecode.

i tried exporting to my connected android device, but my the pc console reported that the device could not be found. os3d went ahead and create the .apk in the export directory of my project (good idea programmers)  i then copied and pasted the .apk to my sd card on my phone

i ran the .apk but after the os3d loading screen all that the phone displays is a blank screen...

does the console work on android?

Offline

#2 21-Aug-2015 22:37:21

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: .xos with custom code does not display console on android

Hi

The console will not display on android device directly, it send the content in the log file when activated in the usm.ini or in the logcat android console when the device is plugged on the computer with android tools and the device is set in dev mode.

Offline

#3 22-Aug-2015 00:34:02

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: .xos with custom code does not display console on android

arkeon wrote:

Hi

The console will not display on android device directly, it send the content in the log file when activated in the usm.ini or in the logcat android console when the device is plugged on the computer with android tools and the device is set in dev mode.


I see, thx. If scol launches multiple vms, do they all print to the same android console?

Offline

#4 22-Aug-2015 09:32:37

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: .xos with custom code does not display console on android

All vm on  android are different.
This is stand alone app

Offline

#5 22-Aug-2015 14:59:33

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: .xos with custom code does not display console on android

Can the _newmachine function be used on android to manage multiple vm's. Arkeon I think you know what I'm thinking of.....loading screens during os3d startup on android.

Or can scol communicate with the android os to use 'activities' (I think that's what I call  'pages' on android refer to (I'm familiarizing myself with the general Android api but have just begun....,analogous to windows on a desktop/laptop inteface.)

Offline

#6 22-Aug-2015 18:15:48

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: .xos with custom code does not display console on android

For now we started a test to display a plash scren in java called by scol but this doesnt work

No newmachine is disable on android

Offline

#7 22-Aug-2015 20:27:10

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: .xos with custom code does not display console on android

I see....so at this point the scol vm cannot communicate with the android os to access the android ui?

Offline

#8 24-Aug-2015 12:41:04

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: .xos with custom code does not display console on android

only the camera works this way actually

Offline

Board footer

Powered by FluxBB