Android build issues

Previous topic - Next topic

MrPlow

Hi
Been a while since I used my GLB Android compile - must have been updated since.
I tried with a clean start - removing my older Android Studio folder from the app...

However, I got a Project build error with new the build

It seems to your  template for "Catch Out" is used for the manifest but the build is getting only as far as creating the Interstitial.java file and none of the the others

Any ideas why this is happening?

Strange that only the Interstitial.java file is being created in the project.???
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

I noticed there is a non-beta update - so I will apply this to see if this fix works...

I wish the updates were communicated a bit better...hoping this update works :)
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Got it working and compiling once again :)

However, SAVESPRITE is now not working for me on android? Would the update have affected that?
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

dreamerman

Didn't use Android target for a long time, but be sure to always set current dir (probably to 'Documents') before each SaveSprite command,
If that's not an issue, does it affect both *bmp and *png saving? v16 has some bugs, maybe this is some new one :/
Check my source code editor for GLBasic - link Update: 20.04.2020

MrPlow

Not sure - I tried Appdata with older build and that worked...

I might try a work around....build my own savesprite function maybe?
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

dreamerman

Not sure how access privileges now work in Android but easiest way to verify that would be trying to save any kind of file with OpenFile / OpenIni in that directory, that's first thing to check, even double check for other directories like mentioned Documents and so on.
Custom saving sprite function - as bmp is simple, but as png wuld require to work with some compression library like zlib.
Another solution could be using directly Android API to make screenshots, that would be in Java and called from GLB.
Check my source code editor for GLBasic - link Update: 20.04.2020

MrPlow

hmm,
yes a few options there...Good idea, I will check that the ini file writes first - before I invest in a savesprite function :)
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

#7
its around 1 month ago last time im have uploaded it. and have barely touched it since. There was a change to the Interstitial.java, build.grandle and sdlactivity.java as well (as interstitial was inited in wrong place and might got catched by a resolution change), but should take a look.

The change for a month ago was its was possible to detect you do a debug or a retail version, etc if you running a debug version, you should get test ads, but retail ads for retail. This is how its should works, so you dont suddently got your account closed under testing.

But if you dont get the new java copied over. delete the android.xcl from the java folder, and then its should copy all files from the main project. If you have the file, No java files is copied over when that file is present.

No idea about SAVESPRITE and no idea without a example.

Currectly im did do have focus in very different place and its also quite hot here. etc a Frogger adaption for Spectrum Next. This why im was idle comply of days.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Hi SF

Just did a complete new build of older simple pong project...this worked before and has no complex items...

Didn't work this time, just wondering if you built a working apk recently?

I will keep testing and try the emulator to see if it runs
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Am I doing something wrong - every compile of the project resets the Interstitial.java file ADMOB code to be commented out...

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

That strange. The official version is gernot version, which diddent do that 100 procent correctly as I'm remember.

I'd you don't want the java files in your project changed by a update, add a android.xcl to the project java folder. Then no files is overwrote.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Thanks - I will try that :)
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs