Hi all I have question.
I want to use Scoreloop system in my LibGDX game. So i want to change Libgdx Android Activity to Scoreloop Activity. The problem is that Libgdx abstract layer is out of Android Eclipse project - Libgdx shares Eclipse desktop project and Android Eclipse project. The main game logic is out of Android Eclipse project.
Summing up - How is the simplest way to change android activity in cross-platform Libgdx eclipse project.
regards
You must put android specific code at libgdx android project.
Take a look at http://decisiontreegames.wordpress.com/2012/03/17/writing-android-specific-code-in-libgdx/ for a better integration model.
Related
I am working on an open source project but it turns out to have a lot of files. It is really difficult to understand which activity starts which activity or fragment and there are loads of layout files. Is there an external tool or a built in way in android studio that can show a flowchart or map overview of a project, making it easier to understand the project?
I've started developing my first Android application. I've designed the UI elements in sketch and after I've exported the assets to my project in Android Studio, I don't know how to use it, like how am I going to use the png-assets in the layouts?
Thank you.
I have just started game development in android and for which i choose Libgdx framework, i downloaded gdx-setup.jar file and setup inside android studio. when i opened the libgdx project in android studio, it does not show any 'res' folder, layout, etc. means nothing about gradle (drag & drop). Is there any way so that i could get the gradle (drag and drop) dependency management with Libgdx in android studio..
I searched over the net, but could not get any understandable solution regarding this.
Thanks for your time
LibGDX and Android is not the same thing. LibGDX uses different ways to present ui's which are cross platform.
I've seen some 3rd party software for visually generating scene2D stuff but have never tried it myself.
However, what you are describing is android specific stuff that has nothing to do with LibGDX, so you won't find it.
If you want to get into LibGDX look into this wiki page.
If you are searching for a tool where you can create an UI via Drag and Drop you can use Overlap2D. It is an editor for Scene2d which is used by libGDX
I'm wondering if it's possible to install libGDX without the android SDK. I don't want to have it create a bunch of projects for HTML, Android, and IOS I just want a Desktop app. Is this possible? If not, is there any other openGl library like libGDX? I'm wondering because Slick2D stopped being developed and libGDX is all that I know that's left.
Yes it is possible to run only the Desktop version, you can download the setup program and run it you will have to uncheck the boxes for Android, iOS and HTML, so you are left only with Desktop.
Download set up program here
As per #P.T. suggestion on this question, in order to link Google IAP (In-Apps Purchase) with Libgdx, where should I place the IInAppBillingService.aidl and all the other util files (TriviaDriveSample.util\files)? Should I place it in my main java project (assuming greatGame) or my android project (assuming greatGame-android)? I am currently facing issue integrating Libgdx and Google IAP.
Can some guru please lead me to the destination?
Both of them go into the Android project. For example this is my hierarchy:
MyGame-Android
..-src
....-com
......-android
........-vending
..........-billing
............*IInAppBillingService.aidl
......-my
........-package
..........-util
............*utilfiles...
..........*MainActivity.java
This is because to handle IAP you need to use android specific code in the android project, and interfacing it from the core. Go here for more info about it: https://github.com/libgdx/libgdx/wiki/Interfacing-with-platform-specific-code