i wanted to try bbcsdl basic with my smartphone.

Discussions about the BBC BASIC language, with particular reference to BB4W and BBCSDL
funkheld
Posts: 30
Joined: Sun 12 Feb 2023, 10:16

i wanted to try bbcsdl basic with my smartphone.

Post by funkheld »

Hi good afternoon.
i wanted to try bbcsdl basic with my smartphone.

how does this magic actually work?
what do you have to do with the magic wand?

can you please explain everything in detail until a bccsdl program works on the smartphone?

but please explain slowly step by step.
I'm running bbcsdl on win10.

the bbc2apk.exe is the load

Thanks.
greeting
Hated Moron

Re: i wanted to try bbcsdl basic with my smartphone.

Post by Hated Moron »

funkheld wrote: Tue 14 Feb 2023, 16:38 but please explain slowly step by step.
I'm running bbcsdl on win10.

the bbc2apk.exe is the load
I do not advise diving straight in at the deep-end by using BBC2APK to create an Android app. Although this may work if you are lucky, especially if the BASIC program is relatively simple, there are pitfalls. If the app you created doesn't work, it may not be obvious why.

Rather, I would recommend that you first run your program in the Android edition of BBC BASIC for SDL 2.0. That will give you the opportunity to check that it works, debug it, and make any necessary changes. When the program is running exactly as you want, then you can use BBC2APK with confidence.

Although the approach you adopt to writing, testing and debugging your code is up to you, one particularly nice way is to connect your Android phone to your Windows 10 PC using a USB cable. Then you can mount BBC BASIC's @usr$ folder so it can be seen from Windows, and you can save and edit your program on the phone itself!

If you want to try that method, the Android directory corresponding to BBC BASIC's @usr$ folder will appear in Windows as something like Android/data/com.rtrussell.bbcbasic/files.
funkheld
Posts: 30
Joined: Sun 12 Feb 2023, 10:16

Re: i wanted to try bbcsdl basic with my smartphone.

Post by funkheld »

Hello thanks for the information.
I'll get to work.

I'm sure I'll have more questions.

greeting
funkheld
Posts: 30
Joined: Sun 12 Feb 2023, 10:16

Re: i wanted to try bbcsdl basic with my smartphone.

Post by funkheld »

Hi good afternoon.

my bbcbasic is now running on the smartphone.

why are the bars all gray and not working with bbc2apk.exe?

Thanks
greeting
You do not have the required permissions to view the files attached to this post.
Hated Moron

Re: i wanted to try bbcsdl basic with my smartphone.

Post by Hated Moron »

funkheld wrote: Wed 15 Feb 2023, 10:25 why are the bars all gray and not working with bbc2apk.exe?
That's normal. They will be enabled once you've entered the details of your first app. The most important button - Help - is enabled!
funkheld
Posts: 30
Joined: Sun 12 Feb 2023, 10:16

Re: i wanted to try bbcsdl basic with my smartphone.

Post by funkheld »

Hi, Thank You.
a file is now being compiled.
but the file dwjavusans.bbc is missing
I can't find it.
where is the file?

and
-----------------------------
\release.keystore
-----------------------------
not found.

greeting
You do not have the required permissions to view the files attached to this post.
Hated Moron

Re: i wanted to try bbcsdl basic with my smartphone.

Post by Hated Moron »

funkheld wrote: Wed 15 Feb 2023, 13:00 but the file dwjavusans.bbc is missing
There's no such file, the file you want is DejaVuSans.ttf (it's a TrueType font file).

The error message happens because you are relying on the automatic scan for embedded files, which in this situation doesn't know what the correct extension is.

Either change your FONT command to include the .ttf extension, or use REM!Embed directives to specify the embedded files explicitly.

Generally, using REM!Embed directives gives you more control.
funkheld
Posts: 30
Joined: Sun 12 Feb 2023, 10:16

Re: i wanted to try bbcsdl basic with my smartphone.

Post by funkheld »

Hi good afternoon.
where is the file please :
release.keystore ?

thanks
greeting


-----------------------------------------------
Keystore password for signer #1:
Failed to load signer "signer #1"
java.io.FileNotFoundException: C:\Users\pebi\AppData\Roaming\BBC2APK\release.keystore (Das System kann die angegebene Datei nicht finden)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCertsFromKeyStore(ApkSignerTool.java:603)
at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCerts(ApkSignerTool.java:546)
at com.android.apksigner.ApkSignerTool$SignerParams.access$200(ApkSignerTool.java:500)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:236)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:93)
Drücken Sie eine beliebige Taste . . .
-----------------------------------------------
Hated Moron

Re: i wanted to try bbcsdl basic with my smartphone.

Post by Hated Moron »

funkheld wrote: Wed 15 Feb 2023, 19:15 where is the file please : release.keystore ?
Wherever you chose to store it! The default location is %appdata%\BBC2APK\release.keystore but if you changed it I can't help. ;)

However I don't fully understand the question; BBC2APK remembers the location, so you should not need to know it.
funkheld
Posts: 30
Joined: Sun 12 Feb 2023, 10:16

Re: i wanted to try bbcsdl basic with my smartphone.

Post by funkheld »

if this comes up when compiling with bbc2apk.exe :
-----------------------
Keystore password for signer #1: ?????
-----------------------

I don't know what to write there?
Thanks.
greeting