Newbie question on Android App

Just starting out? Need help? Post your questions and find answers here.
BjornF
Posts: 5
Joined: Thu Nov 02, 2017 5:31 pm

Newbie question on Android App

Post by BjornF »

Dear All,

I have just started trying to create my first Android app using Spiderbasid 2.0. The following works on my Pc:

Enumeration
#WinMain
#EdSec
EndEnumeration

Procedure main ()
OpenWindow(#WinMain, 100, 100, 200, 200, "My Window")
EditorGadget(#EdSec, 0,0,200,200,#PB_Editor_WordWrap)
SetGadgetText(#EdSec,"This is my first editorgadget in a window")
EndProcedure

main()

and I can create an apk ok without any problems. But when I try installing it on my phone it says "App not installed. The package appears to be corrupt."

Any thoughts on why it doesn't work?

All the best,

Björn
IdeasVacuum
Posts: 143
Joined: Tue Feb 25, 2014 1:27 pm

Re: Newbie question on Android App

Post by IdeasVacuum »

Hi Björn

Could be anything, starting with the Create App settings. I have created an APK of your code and it runs on my phone.

Settings I used:
Image
BjornF
Posts: 5
Joined: Thu Nov 02, 2017 5:31 pm

Re: Newbie question on Android App

Post by BjornF »

Very strange. All right, I'll try and play around with the settings. Thank you for trying it out.

All the best,

Björn
BjornF
Posts: 5
Joined: Thu Nov 02, 2017 5:31 pm

Re: Newbie question on Android App

Post by BjornF »

If I use the settings in "Create app" like you show here then the apk is created and runs as expected. If I however remove the "Enable debugger" tick then the crated apk does not run.

May be a bug?

All the best / Björn
falsam
Posts: 280
Joined: Mon May 05, 2014 9:49 pm
Location: France
Contact:

Re: Newbie question on Android App

Post by falsam »

BjornF wrote:May be a bug?
Not a bug.

:idea: If you are testing your apk, check the box "Enabled debugguer" and insert CloseDebugOutput () in your code.

If you publish your code on Android Store read this link. http://forums.spiderbasic.com/viewtopic.php?f=9&t=883

➽ Windows 11 - JDK 1.8 - SB 2.40 - Android 13
http://falsam.com

Sorry for my poor english
BjornF
Posts: 5
Joined: Thu Nov 02, 2017 5:31 pm

Re: Newbie question on Android App

Post by BjornF »

Thank you for the clarifying that.

Björn
Post Reply