Page 1 of 1
App not installed as package appears to be invalid
Posted: Wed Jul 17, 2024 11:23 pm
by matalog
I have been following the How to create an android application thread, in the tips n tricks section of the forum, and can compile the example app, although when I copy it over to my phone, it always gives the error, "App not installed as package appears to be invalid.". I am trying to install it on a Samsung S20+. I have tried 3 versions of jdk 8u202,8u421 and 32 bit jdk1.8 I had from a while ago.
Is there anything I shoud be looking at to allow the app to install on the phone. This is the app I create
https://www.dropbox.com/scl/fi/vb6vzri7 ... sid1s&dl=1
Re: App not installed as package appears to be invalid
Posted: Wed Jul 17, 2024 11:26 pm
by Quin
You might have to sign the APK. I did when trying to run my code on my Pixel. Here's a
Stack Overflow post on how to do this.
Re: App not installed as package appears to be invalid
Posted: Thu Jul 18, 2024 5:09 am
by plouf
if not signed, you MUST enable debugger !! otherwise it does not isntall
you can enable debugger in app compile
and immediatly close it with CloseDebugOutput() .. this makes a feeling like it has no debugger
Re: App not installed as package appears to be invalid
Posted: Thu Jul 18, 2024 8:10 pm
by matalog
plouf wrote: Thu Jul 18, 2024 5:09 am
if not signed, you MUST enable debugger !! otherwise it does not isntall
you can enable debugger in app compile
and immediatly close it with CloseDebugOutput() .. this makes a feeling like it has no debugger
Yes, that worked, I prefered to try this over installing 18gb of ADK. Thanks.
The program has a Spiderbasic splash screen when it has loaded, is there a way to have no splash screen, and just get straight into the program?
This is what I compiled:
Code: Select all
Enumeration
#mf
#mfFont
#mfTime
EndEnumeration
Declare Start()
Declare ShowTime()
;No debug
CloseDebugOutput()
Start()
Procedure Start()
LoadFont(#mfFont, "", 50)
OpenWindow(#mf, 0, 0, 0, 0, "", #PB_Window_Background)
TextGadget(#mfTime, 10, 100, 300, 50, "00:00:00")
SetGadgetFont(#mfTime, FontID(#mfFont))
AddWindowTimer(#mf, 0, 1000)
BindEvent(#PB_Event_Timer, @ShowTime())
EndProcedure
Procedure ShowTime()
Protected Time.s = FormatDate("%hh:%ii:%ss", Date())
SetGadgetText(#mfTime, Time)
EndProcedure