GLBasic forum

Main forum => GLBasic - en => Topic started by: spacefractal on 2019-May-13

Title: Android Studio Progress......
Post by: spacefractal on 2019-May-13
Instead writing in the message to gernot thread, im will write it here as a general trhead.

The progress to move glbasic to Android Studio is now more more became great, which will means im dont thinks its really is a long time to release it. Im thinks max a month and you would see a new platform. Today im have just got JavaCalls to works and im using SDK Api 29 (Android 9) with minimum Api 16 required (due the newer NDK require it).

Now its compiles and run fine, but with few issues and missing bits left.

Currectly the Gamecontrollers require some changes and hopefully im still can support gameInput API to cross support it, but SDL do have a nice progress about this area, so its should even been possible to route it to the official joy commands. Also im will support single player by using KEY() as well throught fore more simple games.

Also currectly Android TV and normal apps is supported, but im have not have Ouya and other microconsoles in mind at all. Its should been pretty easy to implement them again later eventuelly, but Android TV is a bit more important.

So im dont think we are far to get this platform working again.
Title: Re: Android Studio Progress......
Post by: MrPlow on 2019-May-13
This sounds great!!
And will be a huge selling point for GLB!
Title: Re: Android Studio Progress......
Post by: bigsofty on 2019-May-13
Good news indeed!  :good:
Title: Re: Android Studio Progress......
Post by: Snoopy on 2019-May-13
Good initiative Spacefractal and good work too.

Ps : I think the most important platform for Android TV is the Fire TV which sells very well around the world (because of the power of Amazon but also because it is not expensive and of very good quality).



Title: Re: Android Studio Progress......
Post by: spacefractal on 2019-May-13
Fire TV is pretty much the same as with Android TV and should support it out of the box. The only different is you cannot use Google Service, which is currectly not used yet. This means you can of course not use Admob and such service on Android TV, which does not give any sense anyway on thise kind of devices.

Howovere there is a little catch im do should look, if its issue, its Audio Focus (but might not even been required, more than to example disable music in your game, so the music from the other app countinue can play):
https://developer.amazon.com/docs/fire-tv/differences-from-android-tv-development.html

Gernot did got it compile first, then im is gonna to reimplement the Java part bit.
Title: Re: Android Studio Progress......
Post by: MrPlow on 2019-May-14
Guys

When Android building is ready - I would suggest that GLB creates a product listing on itch.io too.

Those users would love GLB, and might not know about the steam version.

Title: Re: Android Studio Progress......
Post by: Ian Price on 2019-May-14
Well done so far and good luck with the missing/non-working features.
Title: Re: Android Studio Progress......
Post by: JohnnyB on 2019-May-14
Great work! GLBasic is great, should have started using it years ago. Much better than AppGameKit (that language is so ugly).
Title: Re: Android Studio Progress......
Post by: spacefractal on 2019-May-14
Howover the editor in Android Studio has a bit too much auto correction im cant disable, which annoying me quite a bit and backspace does not do what excpeted (curser often move up intead deleting).

Howover assest loading do now works again and tilt hopefully works again. Also GameInputAPI code im have did will break combatible and needs a update to get it working. But the official JOY commands should also works throught as well KEY() commands (which im choosen to change them to a float rather than int, which allways have annoying med, property due back in the iOS game controller days).

So its a nice progress, even the help documents is require updating and Android Studio is HUGE! Howover its doess seen Android Studio automatic download the eventuelly missing files and combonents in a project.

Admob as well inapp purchase wont been in this first release, so dont bugger me with that. Its better to get thing working again. But admob should been pretty easy to reimplements again throught as we now can use the newest google services api again, which can improve the stability a lots.

Im & Gernot have still not integrate the project to glbasic yet, but its a nice progressing throught.

Just to note, Android TV is supported and Fire TV should been supported out of the box as well (as long you does not uses Google Service for those devices), and you have full access to the source code for Android version. There is no So libs used this time, that is include glbasic source code its self. Of course landscape suppot is required.

Im do havent take a look into Ouya as well gameStick. Ouya was such a great test console prior to Android TV really. Here the Ouya SDK is required to been implemented, which im think should do that as a own project really.

The project is still works on a Android 5.1 emulator and on a Android 8 phone as im have, so api 16 would been the minimumsdk required while im currectly using api 28 as target sdk (Android 9). Arm 32, 64 + Intel 32+64 bit should all been supported (the emulator im uses is Intel based). So the future 64bit requirements would not been a issue.
Title: Re: Android Studio Progress......
Post by: spacefractal on 2019-May-25
we stilll working on it. Today its has seen the minimum android version Glbasic in the future can support is API-18 (Android 4.3) as its simply just crash out on startup on older system, due a missing SO, which im cant do anything at all!

GameController seens work better now the default gamepad layouts should all works, even with KEY().

Look like most controllers have two different layout: A Google one and a Microsoft one for the sticks. Im have seen the order have been right stick, left trigger, right trigger (correct order) as well left trigger, right stick and right trigger. Quite annoying. So yes... axes conflict happens!

Im do so much HATE the Android GameController Java report system!!!

But howover fullscreen seens also finally works now, which is a quite annoying issue and a fix was a quite strange as well.

Im need to test out the glbasic intetegration as well.

Admob is not a priotity in the first version as im wrote, but its can been easy added later on.
Title: Re: Android Studio Progress......
Post by: MrPlow on 2019-May-25
Great to hear!
All sounds very positive and great work on the controller stuff - that will be very nice feature for GLB!
Title: Re: Android Studio Progress......
Post by: Snoopy on 2019-May-28
 :good: :good:
Title: Re: Android Studio Progress......
Post by: Kitty Hello on 2019-May-30
It's running. We're fixing just a few tiny issues. In the meantime, you can download Adnroid Studio. It might take a few "minutes"  :D
Title: Re: Android Studio Progress......
Post by: spacefractal on 2019-May-30
its might also download addidation componests first time. the glbasic Android Studio project it self is very small, under 20mb. But Android Studio is VERY big like xCode.
Title: Re: Android Studio Progress......
Post by: MrPlow on 2019-May-30
The best news I've had this month!
Thanks Guys!
:)
Title: Re: Android Studio Progress......
Post by: mentalthink on 2019-Jun-04
Wow!!!! too much out from here  :whistle: and this new is really interesting... thanks to spacefractal I think he did and do a lot of Huge things for GLbasic. Thanks from here!!!  :nw: :nw: :nw: