Android Extras (Micro Game Consoles/GPS/Keyboard/Audio)

Previous topic - Next topic

S.O.P.M.

@spacefractal Awesome, thanks. That seems to be very clever. Important is that my app can still use the standard operation of file and directory handling. The user data of my game is currently saved in the appdata folder that can be retrieved with PLATFORMINFO$(). Because DOESFILEEXIST will copy every requested file to the memory I'll have copies of all user data files in memory unnecessarily??
Notebook PC Samsung E372 Core i5 @ 2,6 GHz; 4 GB RAM; Win 7 Home Premium

spacefractal

its no issue on Windows, both commands can have its uses. So here its no problemo to uses the both.

To make more seance on Android "DOCUMENT" should changee to uses sdcard external data dir (if that exists), not on the download folder. If that data dir doesnt exists, its might returns same as the "APPDATA". This is all Java thing.

DOESFILEEXIST act nearly as before and also still act normall with "APPDATA". From Media folder, its also copy the requested file from APK to the internal memory on the fly, before its checks the file exists.

That is required on Android, because glbasic cannot read directly from the APK file. So before all Media files was installed to the internal memory, that was done by the "..." waiting screen. That screen is now skipped (as its was done in nearly from AE beginning), but its need to copy the files from APK somewhere.

Here DOESFILEEXISTS and DOESDIREXIST do that job best. Its actuelly what its does practically for you. Later that should also been integrate and doing that automatic for all commands, but im diddent do that for now.

You can eventuelly delete the file when the file have been used from the internal memory again (if low in memory).

Mightbeen that help should been explained better? what should im change?
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

S.O.P.M.

Yes, that helps. If this is necessary for stable Android operation, there is no reason to change anything for now. You did a great job for the Android part - without your work, compiling for Android would be a pain. So all is fine if my app will run well after the update which I'll check later on. Have a good day!
Notebook PC Samsung E372 Core i5 @ 2,6 GHz; 4 GB RAM; Win 7 Home Premium

spacefractal

The assest thing was something im changed in one of the very first version of Android Extras so the installation could been much more stable, without any various stuck reasons under install/update (which also was quite lengtly in some of my games).

Its was a part of AE, and now those  2 commands now can performs that directly.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

today a little bug fix release with a null pointer issue in Java, and fixed NETWEBEND for Android, so ALLOWESCAPE no longer have effect (which seen was required on Android to prevent a crash).

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Moru

Where can I download this? The links in the first page seems to all be dead. Would really like to test this if I can anything working on my phone :-)

spacefractal

There is a sticky thread in Glbasic en forum:
http://www.glbasic.com/forum/index.php?topic=9644.msg83746#msg83746

I'm property should link to this in the first thread. All updates is there, but it's not a thread to get help to. It's here.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Moru

Very good idea, inserted a link in the first post. Can I remove the stuff under the line mabe?

spacefractal

Its not my post and hence I'm can't do anything about it. Ask five sprites. I'm so still post news etc in this thread and update the annoys post when that happens now I'm also here and then uses the source code and hope git is soon up.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Moru

Sorry, wasn't paying attention. But now there is a link to the working downloads at least. If I only could stop sneezing long enough to write a full sentence... :-)

spacefractal

Ouya Inapp Shop seens all working again.. phew. There was a lots of small changes in the Java part.

Soon im upload Android Extras v2.7 with those changes:

- NETWEBEND is fixed again.
- KEY() can also uses with most analoge unknown controllers (but only threated them as digital).
- Fixes to the Ouya shop issues (which should have been done a LONG time ago, sorry about that. Im only did seen that few days agao).
- Im have NOT changed to the GameController Api.

But on normal Android Devices im recommered to uses KEY() as well, and also dont forget to let user remap the keys (they can been different from controller to controller). The GameController Api was more designed to run on Ouya, Mojo, GameStick and such console with known controllers.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

I came. I saw. I played.

spacefractal

Today im dedicated to update the Android SDK to uses API-19, which took some time and also Ant was also need to been updated to.

Im do actuelly uses one API-19 feature, which was just a constant (which is config to tell the game to been uses the fullscreen mode) and used the number instead of the variable, so its could compile under API-18 SDK.

The update version can still uses API-18.

API-19 is KitKat. Im waiting checking out Lollipop (which im heard its not the most stable version anyway).

PS. IM will property no longer checking out to work on Android 2.x. There is less of 10% of those devices on Google Play (which is some sort compare to iOS4, which im also no longer support). Im do not own any Android 2.x anymore as well. So im wont fix issues that happens on Android 2.x at all in the future.

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

Also today im have done a stripped down version of the Platform/Android which can been included in a glbasic install, so the android dosent to been that big. Its contain some of the SDK files. The stripped down version is here:
DOWNLOAD LINK REMOVED - THIS OLD PROJECT IS DEPREACTED.

In that version this is required to been download to get Android working, but soon those is download, its should works "out of the box":

1. Start SDK Manager.exe
2. Download those files seen in attacements.
3. Then Android should compile.

Property when the user is compile Android first time, then SDK Manager.exe could been open and tell the user what to download. By now both api-18 and api-19 is tested. Have not tested with newer version.

PS. Im will with Android Extras still include the full sdk for the update and no sdk for the minor updates for easier installs. This was just a idea for the official update to bring the download file down with a good compromise.

PPS. For the help file, see Compiling for Android. Im thinks that text needs to been updated. Also in the future im might not support any 2.x devices.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Marmor