Search found 87 matches

by amyren
Tue Oct 08, 2019 12:46 pm
Forum: Tutorials
Topic: Very simple Exit-the-maze game
Replies: 4
Views: 390

Re: Very simple Exit-the-maze game

jPV: Thank you for pointing this out. I must admit I have made a similar mistake in some of my other programs, so I will need to update these as well. For smooth movement I did choose to use only 1 pixel movement per cylcle, and I notice that using vwait() in this example will limit the character ma...
by amyren
Mon Oct 07, 2019 10:12 pm
Forum: Tutorials
Topic: Very simple Exit-the-maze game
Replies: 4
Views: 390

Very simple Exit-the-maze game

This is a simple basic exit-the-maze game made for beginners. The purpose is to show how easy programming in Hollywood can be, so this first code is stripped down to just what is needed to make it run. I might add more features to in in follow up posts later. Prerparations: You should make an image ...
by amyren
Wed Oct 02, 2019 5:54 pm
Forum: General programming
Topic: Detect incoming calls on android
Replies: 7
Views: 691

Re: Detect incoming calls on android

Here is a small app for testing this with hollywood player on android. I just realized that my example shown above was not a good example, since installeventhandler must be put after function in order to work. @DISPLAY {Title = "Test", Width = 640, Height = 480, Color = #BLUE} Function p_HandlerFunc...
by amyren
Wed Oct 02, 2019 5:29 pm
Forum: General programming
Topic: Detect incoming calls on android
Replies: 7
Views: 691

Re: Detect incoming calls on android

Which Android version and how do you switch to another app? I have tested on android 9.0 (my main phone), 8.1.0(tablet), and 4.2.1(old phone) The way I switch to other app is tested on all devices, by either pressing the home button, or use the menu button to show all running apps and select anothe...
by amyren
Wed Oct 02, 2019 4:59 pm
Forum: General programming
Topic: Makedir on SD card failed
Replies: 7
Views: 391

Re: Makedir on SD card failed

Please post a minimal (!) test script, the code in the original post seems like an excerpt from something bigger... the code in the original post actually only need a couple of endif's to run. But here is an even smaller piece of code sufficient for testing If PermissionRequest(#PERMREQ_WRITEEXTERN...
by amyren
Tue Oct 01, 2019 10:43 am
Forum: General programming
Topic: Makedir on SD card failed
Replies: 7
Views: 391

Re: Makedir on SD card failed

Yes, it also happens with the player
by amyren
Mon Sep 30, 2019 12:24 pm
Forum: General programming
Topic: Makedir on SD card failed
Replies: 7
Views: 391

Re: Makedir on SD card failed

This was on android 9, but I also get the same error on my tablet, which runs android 8.1.0, and on my old phone with android 4.2.1. I also did a test by using t.t.ExternalStorage instead of t.SDcard, but this also result in a similar error. Using ES-fileExplorer I do notice that if I stay at folder...
by amyren
Tue Sep 24, 2019 10:58 am
Forum: General programming
Topic: Makedir on SD card failed
Replies: 7
Views: 391

Makedir on SD card failed

I try to make my app to create a directory on my SD card, but it fails with the error message: "Error creating directory /storage/emulated/0/mydir !" And it points to the line 311 in my script, which is the makedir line t = GetVersion() If t.platform = "Android" If PermissionRequest(#PERMREQ_WRITEEX...
by amyren
Tue Sep 24, 2019 10:14 am
Forum: General programming
Topic: Detect incoming calls on android
Replies: 7
Views: 691

Re: Detect incoming calls on android

The InactiveWindow event handler is supported on Android but I don't know if it's going to trigger on incoming phone calls... it should definitely trigger when hiding the app. Unfortunately it does not seem to trigger on android for me. I have this piece of code in my game, which does set the game ...
by amyren
Thu Sep 19, 2019 7:30 pm
Forum: Announcements
Topic: Hollywood APK Compiler 3.2 released
Replies: 3
Views: 418

Re: Hollywood APK Compiler 3.2 released

Installing android studio went smoother than I feared, probably due to that my internet connection was way more stable this time. Being on a measured 4G connection, I try not to download anything not needed, so I unticked the android emulator when installing. When compiling the first time, the scrip...