GLBasic forum

Main forum => GLBasic - en => Topic started by: MCP on 2013-Mar-17

Title: Android help
Post by: MCP on 2013-Mar-17
Hi folks,
I have a couple of newbie questions regarding Android builds I hope someone can help me with:-

1) What's the best file directory to save files to on Android bearing in mind not all devices have external storage using glbasic?

2) Is it possible to change the Android build config to support arm arm7 and x86? If so how would I go about doing this?

3) Is it possible to incorporate the Google licensing api in glbasic compiled app from eclipse and compile the final apk from there?

Any help appreciated thanks.
Title: Re: Android help
Post by: Det on 2013-Mar-17
I'm newbie as well (to glbasic as to android, but got some years experince in java / eclipse) but at least I can answer the 2nd part of question 3:
You can run or build from out of eclips: Import the android - distribution to the exlips (or adt) workspace.
Caution: There a two problem that I faced:
- Distribution packes an activity under "com.glbasic.test": Don't know where that came from, but you have to change this packe to " org.libsdl.app"
- My Project seems to loose the setting under project->properties->Android->ProjectBuildTarget.

run build.xml ant script.

rebuild if necessary.

At least I had the chance of compiling under ADT, I don't see why I should not be able to extend the project from now on.
BTW: Had some issues concerning NDK: Had to adjust local.properties to point to my android\sdk and had to adjust AndroidManifest.xml to use this
       <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="17" />

(not too sure whether this is needed at all)

Please let me know if this was helpful
Det
Title: Re: Android help
Post by: MCP on 2013-Mar-17
Thanks for your reply det. I'm used to the eclipse SDK/ndk setup too so I'll follow your instructions and let you know how things work out.  ;)
Title: Re: Android help
Post by: MrTAToad on 2013-Mar-18
I don't know the best directory unfortunately - I think "APPSDATA" is preferred...
Title: Re: Android help
Post by: MCP on 2013-Mar-18
Thanks for your help MrTAToad. It's a toss up between that or "DOCUMENTS' from what I can gather. I guess I'll have to get some more hardware and do some testing.