Page 1 of 1

player for Android8 SCALEMODe_AUTO

Posted: Wed Feb 13, 2019 12:05 am
by plouf
hi

if you set @DISPLAY {width = 320, Height = 480,title =#TITLE,
DisableBlanker = True,
ScaleMode=#SCALEMODE_AUTO,
SmoothScale=True,
mode="FullScreenScale"}

and have some buttons, they are recognized in wrong position (used o be ok in player7)

changing to #SCALEMODE_LAYER, coordinated correct

ALSO #HW_ANDROID is not set in new player !

tested with android9 , mi a9

Re: player for Android8 SCALEMODe_AUTO

Posted: Sat Feb 16, 2019 1:20 pm
by airsoftsoftwair
plouf wrote:
Wed Feb 13, 2019 12:05 am
and have some buttons, they are recognized in wrong position (used o be ok in player7)
Please provide a full test script that I can try here.
plouf wrote:
Wed Feb 13, 2019 12:05 am
ALSO #HW_ANDROID is not set in new player !
What do you mean by that? #HW_ANDROID is only handled at compile time while the player is just a runtime which doesn't compile anything. So what is your exact use case for #HW_ANDROID?

Re: player for Android8 SCALEMODe_AUTO

Posted: Sat Feb 16, 2019 3:44 pm
by plouf
i have mailed full script and applets

btw how to "compile" for android ?
you just "compile an applet" correct?

Re: player for Android8 SCALEMODe_AUTO

Posted: Mon Feb 18, 2019 4:17 pm
by airsoftsoftwair
plouf wrote:
Sat Feb 16, 2019 3:44 pm
i have mailed full script and applets
There's a lot of code in there. Can't you make a very very short script with no external dependencies that shows the issue?
btw how to "compile" for android ?
you just "compile an applet" correct?
You can actually compile an applet specifically for Android or iOS by doing the following:

Code: Select all

Hollywood test.hws -compile testandroid.hwa -exetype android
Hollywood test.hws -compile testios.hwa -exetype ios
If you use "android" or "ios" instead of "applet", Hollywood will compile an applet but it will set the platform-specific constants for Android or iOS, e.g. #HW_ANDROID. See here.

Re: player for Android8 SCALEMODe_AUTO

Posted: Sat Mar 02, 2019 8:59 pm
by airsoftsoftwair

Code: Select all

- Fix: Wrong touch to mouse offset mapping when using "FullScreenScale" mode on Android
I'll push an update through Google Play soon because the current build of Hollywood 8.0 on Google Play is actually a debug version so I need to push an update anyway :oops:

Re: player for Android8 SCALEMODe_AUTO

Posted: Sat Mar 02, 2019 10:08 pm
by plouf
airsoftsoftwair wrote:
Sat Mar 02, 2019 8:59 pm

Code: Select all

- Fix: Wrong touch to mouse offset mapping when using "FullScreenScale" mode on Android
Cool waiting :)
You can actually compile an applet specifically for Android or iOS by doing the following:

Code: Select all

Hollywood test.hws -compile testandroid.hwa -exetype android
Hollywood test.hws -compile testios.hwa -exetype ios
If you use "android" or "ios" instead of "applet", Hollywood will compile an applet but it will set the platform-specific constants for Android or iOS, e.g. #HW_ANDROID. See here.
A) still do not work !
B) this option SHOULD exist in IDE while compiling applet, like compile APPLET, Compile Android APPLET etc
maybe i will never discovery it ! and it is not easy to use anyway !

OOT why quoting for ios ? is there a way to run it under ios ?

Re: player for Android8 SCALEMODe_AUTO

Posted: Sun Mar 03, 2019 12:53 pm
by airsoftsoftwair
plouf wrote:
Sat Mar 02, 2019 10:08 pm
A) still do not work !
Works here, *minimal* test script please.
B) this option SHOULD exist in IDE while compiling applet, like compile APPLET, Compile Android APPLET etc
Might be worth an addition...
OOT why quoting for ios ? is there a way to run it under ios ?
Currently not, but this year there'll probably some good news for iOS users :)

Re: player for Android8 SCALEMODe_AUTO

Posted: Sun Mar 03, 2019 5:44 pm
by plouf
command

hollywood test.hws -compile test.hwa -exectype android

script

Code: Select all

@IF #HW_ANDROID

	SystemRequest("test","android","ok")
@ELSE

	SystemRequest("test","no droid","ok")
@ENDIF

Re: player for Android8 SCALEMODe_AUTO

Posted: Mon Mar 04, 2019 9:57 pm
by airsoftsoftwair
You are using the wrong command line, it is EXETYPE not EXECTYPE, i.e.

Code: Select all

hollywood test.hws -compile test.hwa -exetype android

Re: player for Android8 SCALEMODe_AUTO

Posted: Sun Dec 15, 2019 3:46 pm
by airsoftsoftwair

Code: Select all

- New [IDE/GUI]: Added support for Android and iOS targets when compiling scripts; compiling for these
  targets will yield applets that can be used with the Hollywood APK Compiler or Hollywood Player for
  Android and Remedios for iOS but the difference from just compiling normal applets is that Hollywood
  will set the #HW_ANDROID and #HW_IOS preprocessor keywords when compiling applets specifically for
  Android or iOS