Search found 36 matches

by hoerbie
Tue Jul 26, 2022 10:51 am
Forum: Coding Questions
Topic: Buttongadget and loadsound
Replies: 17
Views: 626

Re: Buttongadget and loadsound

Instead of the variable "pic1" please try "ObjectId" in your "Procedure Loading" for the gadgets.

And please take care of the "; Register the loading event before calling any resource load command"
by hoerbie
Tue Jul 26, 2022 10:05 am
Forum: Coding Questions
Topic: Buttongadget and loadsound
Replies: 17
Views: 626

Re: Buttongadget and loadsound

With external website problems my first thought would be CORS https://en.wikipedia.org/wiki/Cross-origin_resource_sharing In general for all Load*() functions the loaded sources should only be used, after the #PB_Event_Loading was received, so a code like buttonPic=LoadImage(#PB_Any,"pictures/b...
by hoerbie
Tue Jul 26, 2022 7:27 am
Forum: Bugs Reports
Topic: Android compile error - DeviceInfo(*) and new cordova-plugin-device?
Replies: 7
Views: 2240

Re: Android compile error - DeviceInfo(*) and new cordova-plugin-device?

Just in case my solution and tips from above don't work, Stefan found another error:
viewtopic.php?p=8619#p8619
by hoerbie
Tue Jul 26, 2022 7:22 am
Forum: General Discussion
Topic: Instructions for creating an Android app
Replies: 28
Views: 1037

Re: Instructions for creating an Android app

Oh my god, I'm speechless, that such a basic function kills the Android compile.....
by hoerbie
Sun Jul 24, 2022 7:12 pm
Forum: General Discussion
Topic: Instructions for creating an Android app
Replies: 28
Views: 1037

Re: Instructions for creating an Android app

Just tested some of the SB examples compiling for Android, because I don't want new problems for my app, and found out: the Screen.sb example triggers the same plugin error . Stefan, do you use the Screen/Frame/Buffer/Sprite features in your app? Maybe you can try with the example, what function the...
by hoerbie
Sun Jul 24, 2022 8:11 am
Forum: General Discussion
Topic: Instructions for creating an Android app
Replies: 28
Views: 1037

Re: Instructions for creating an Android app

Stefan, sorry but there really must be other SB commands in your code, that trigger the automatic include of the device-plugin. I‘ve checked my spiderbasic.js file, and there is no cordova in it. Do you use geolocation or any other things, that are not really „basic“? If you really have time, you co...
by hoerbie
Sat Jul 23, 2022 4:45 pm
Forum: General Discussion
Topic: Instructions for creating an Android app
Replies: 28
Views: 1037

Re: Instructions for creating an Android app

Peter, our SB god, thanks for this tip, I think it will be really helpful with the next upcoming problems! Stefan, what version of SB and what Java do you use? I use SB 2.32Beta1 with Java jdk-8u321 on Win 11 Pro 64 for compiling, but I'm actually at "only" 10000 code lines, mostly SB and ...
by hoerbie
Fri Jul 22, 2022 3:40 pm
Forum: General Discussion
Topic: Instructions for creating an Android app
Replies: 28
Views: 1037

Re: Instructions for creating an Android app

Do you use any other hardware-near features of SB?
DeviceAlwaysOn() for example also needs the plugin, but I didn't try to solve it myself, because I don't need it.
You can only try to comment out hardware near SB functions, until you can compile.
by hoerbie
Fri Jul 22, 2022 7:50 am
Forum: General Discussion
Topic: Instructions for creating an Android app
Replies: 28
Views: 1037

Re: Instructions for creating an Android app

The problem from the screenshot is the plugin "cordova-plugin-device", that from my testings is automatically imported by SB, when SB functions are used, that read Android hardware information, in my apps it was DeviceInfo(*). And I think it is possible, that other functions like DeviceBri...
by hoerbie
Fri Jul 22, 2022 7:45 am
Forum: General Discussion
Topic: Instructions for creating an Android app
Replies: 28
Views: 1037

Re: Instructions for creating an Android app

As a special exception in german: Hallo Stefan, ich hatte dir bereits den Link auf meinen Bug-Report geschickt, aber anscheinend verstehst du meinen dort genannten Lösungsvorschlag nicht? Es geht darum, dass die von dir als Foto gepostete Fehlermeldung vermutlich von einem im Cordova automatisch upg...