will some kind sir test this apk file on android?

Started by mainsworthy, January 07, 2022, 06:33:48

Previous topic - Next topic

mainsworthy

will some kind sir test an apk file on android? i have no way to know or test its running, its a straight port from monkey 2, just left click, and right click drag to control it, so im hoping it will be ok, my computer is to old to run the emulater, and i know its unusual but i dont have an android device, i sold it a while back, and at the moment im a little bit to poor to buy an android tablet. i will put the apk file online in about 30 mins if you want to give it a try?     https://iamnumber4.itch.io/strategic-sea-war-when-allies-go-bad


MikeHart

Not talking about mk2 here, but if you want to distribute in the Google Play Store, then you need an app bundle, not just the APK file. I read that there is a tool that can create bundles from APKs.

mainsworthy

#2
I found you can only do a debug version too unless you compile for the play store, but it seems you can manualy install an APK quite easily and itch has an android download version for such things as APK files,from what i have been watching on youtube.

the android studio creates apks or bundles, and one esecialy for play store.

Pfaber11

I've been making .apk files for some time using AGK and releasing via itch.io . I haven't done the bundle part of it but I know it's required for the google play store . I will try your download now.
Windows 11 home edition
PureBasic 6.20 and AppGameKit studio
ASUS Vivo book i5 15 16gb ram 512gb ssd
ASUS Vivo book i3 15 16gb ram 256gb ssd
HP Desktop; AMD 6700 A10 16GB ram 2 GB graphics card windows 10

Pfaber11

I tried it several times and it says that the file is not compatible with this device . Maybe someone else can try it .
Windows 11 home edition
PureBasic 6.20 and AppGameKit studio
ASUS Vivo book i5 15 16gb ram 512gb ssd
ASUS Vivo book i3 15 16gb ram 256gb ssd
HP Desktop; AMD 6700 A10 16GB ram 2 GB graphics card windows 10

mainsworthy

#5
what version of android are you on? i compiled it for 28not 32 , so not sure what os will work, you have helped already i will try compiling for 32 the latest i believe i have compiled for android 9

mainsworthy

i dont know how im doing this, but i think i have an andriod 12 apk version now, if you could try it now much thanks

mainsworthy

ok after a long while the sluggish emulator ran, but its very sluggish and hard to test, but it works on android 11 at least. how do i rightclick and drag on an android?

mainsworthy

#8


ok still to sluggish on my old pc emulator to test but i got it running on android 11 , but how do i rightclick drag and escape key in android, ?

mainsworthy

I just need to know now how i convert rightclick drag, mousewheel, and escape key into the android world? or is it already built in? please help a poor dev :)

Derron

Input design of "classic computer" differs to input design on tablets.

Just think about how users of an old mac with a 1 button mouse has to play your game :D.


On Android/ipad etc you often "swipe" an object to remove it - to the left or to the right ... or you keep your finger down ("mouse down/pressed") and move elements into trash bins or target areas etc.

Of course you could eg add a button to a corner which one has to press in addition to the "other finger" so it becomes a right click...


In my game (TVTower) and my dig framework (for blitzmax) I have a base.util.input.bmx which handles some stuff for tablets too - in the sense of allowing to emulate a right click by "clicking longer" (long down, then release). So short "touches" = left click, long "touches" = right click.
Think this _could_ be doable rather quick (measure time from "down to up" of your touch events)


bye
Ron

mainsworthy

what i meant was will the code for the mouse work in android, can i get away with leaving it as is, you can add mice and keyboards to androids , do they both work the same?

Derron

They would work the same ... yet you should not assume people attach a BT mouse or USB-OTG adapter to make a mouse work.
Assume they only have their thumbs .


bye
Ron

mainsworthy

does right mouse click and drag work, and mouse wheel? theanks Ron, i was thinking bluetooth mice maybe, but i just added a button to help with the escape key , now you can press cancel.

Derron

an attached mouse is ... an attached computer mouse.
dunno what right click does on that android "taste" they installed. If they set the right click to quit all apps, then it might not work (I doubt that).

So yeah, it most probably will be a right mouse click.
But as said - why porting for android and not using their "input approach" as much as possible ("no secondary button", "no scroll wheel").


bye
Ron