Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [android-studio]

The tag has no usage guidance.

0
votes
0answers
13 views

Opinions regarding 2d mobile platformer development framework [closed]

I'm currently in dubio about which language / framework I should use to develop a 2d mobile platformer rpg. I have experience in Unity, C#, Android Studio and Java, but can someone provide some advice ...
0
votes
0answers
121 views

Error: Program type already present: android.support.v4.app.NavUtils

Every time I try to build an APK file, it gives me an error. I fix one and then I get another and another. This was my last try: My gradle file: ...
0
votes
0answers
42 views

Graphics messed up when I try to reskin the game in Android Studio

I need a little help. I'm new in Android Studio, I have a game where I want to reskin the design. First of all when I install it on my phone with the original files the game run perfectly without ...
0
votes
0answers
26 views

Fail to Start android service in android studio Unity

I have written a service file in android studio like: Manifest file: ...
0
votes
0answers
138 views

Android studio background GPS service call and Unity

If I have a service file written like this in android studio: Manifest file: ...
0
votes
0answers
15 views

Box2D rotational issues

I am making a game in Android Studio using LibGDX. My player is supposed to fly up and down, and angle itself accordingly(lean back/up when going up, lean forward/down when going down). I am having ...
0
votes
1answer
79 views

How to create an even gamescore?

Currently I'm doing an android game. My problem is the score. The game speeds up in every round and currently I'm counting the score like this: ...
0
votes
1answer
276 views

How to use Glide

I want to implement glide in my game but I don't know how. I know that the Glide format is: Glide.with(context).load(R.drawable.image).into(imageView); But I don'...
-1
votes
0answers
51 views

LibGDX: Why is freetype font having long load times on startup?

How can I fix this? I have about 3 generators for the freetype fonts. They work fine of course, but the startup loading times last up to 15 seconds. Aren't freetypes supposed to be better than ...
-3
votes
1answer
91 views

In android studio, how can I move ball to point I click? [closed]

I try to create a game like billiards. I want to move the ball the point I clicked.
0
votes
1answer
364 views

How to create activity again in Android?

I am making some game and I want to create activity again after click on some Button. For example: I have activities A (game) and B (after game menu). I want to go back to activity A after clicking "...
0
votes
1answer
157 views

Detect android device rotation

I am developing a game in android and I want to be able to use device rotation for moving. So, I am not sure what sensors should I use. I tried gyroscope, it will do, but there are not a lot of ...
1
vote
1answer
328 views

LibGDX: Why won't certain actions work on my Actor?

In my GameClass, I called the Stage.act and Stage.draw methods in the right order accordingly. I have actions set up so that the actor fades in/fades out, bounces down/up, and also rotate, like so: <...
1
vote
2answers
231 views

How To Add Animation Graphics To An Android Game

How to make something like this animation drawings that coming out from the car ? (I'm using android studio) The Game's Link : Finger Driver
-1
votes
2answers
510 views

Error with LibGDX on Android Studio : Exception in thread “LWJGL Application” java.lang.NullPointerException

After a long time of research, I saw that in January 2017, NVIDIA put a new driver that made crash every application running with LibGDX. I would like to create a game with this library on Android ...
1
vote
0answers
533 views

Collision detection between image and drawables

I'm trying to collide my ball_1 to greengreen drawable. How can I determine the collision? ...
0
votes
1answer
26 views

Problem getting in adjust the image in drawable canvas

I am working on the game which i develop on android and i am just stuck on adjust the images. I want the spinning ball image in center where i targeted the red color on the given image and the both ...
0
votes
1answer
385 views

How can I make my button do something when clicked?

I'm trying to create a game with libGDX in Android Studio, and I am struggling with my code to add a command to the program to do something when I press the button. I have added an ...
0
votes
1answer
118 views

How can I track two fingers?

Im trying to make make game which is intended to be played with the phone in landscape mode, and the player uses their thumbs to control the movement. The game controls look like this: On the left ...
0
votes
1answer
374 views

How to generate circles every 2 seconds

I want to generate circles every 2 seconds, in this case 5 but I can't get it. Instead of creating a circle every 2 seconds, the app wait 10 seconds and draw the 5 circles together. What am I doing ...
1
vote
1answer
428 views

Problem in Splash Screen (Libgdx)

I made the game in libgdx and i want the splash screen in the starting but its show splash screen but not move to the game screen. I don't know what was the problem even the run time error also not ...
0
votes
1answer
256 views

Unable to Set-Up unity remote?

I have installed Android Studio and set the path in unity. And I am able to build apks with no problem. But when I try to test in unity remote unity gives an warning as Set-up Android SDK path to ...
1
vote
0answers
341 views

How do I setup Android SDK for GMS?

I am trying to set the path for the android SDK in GameMaker: Studio, but I am having an unexpected ammount of difficulty with this. Initialy, I installed Android Studio and tried setting it's ...
3
votes
1answer
489 views

how to slide pieces for a slide puzzle game for android(libgdx)

I want to make a small one-screen game in which the player has to slide pieces of an image until the image is completed. I used texture regions to create the pieces from an image ...
1
vote
1answer
238 views

How to set up flatbuffers in Android Studio - Gradle?

Just switching over from Eclipse to Android Studio. I think I'm supposed to use Gradle to automatically download dependencies from the web. Sounds great, but I can't get it working with anything, in ...
1
vote
0answers
48 views

Android Game Screen Limits [closed]

I'm trying to do a game but I'm stuck. I have a player and I move it with the buttons but I can't make the player stop when it reachs the screen limits. What am I doing wrong? Main Activity: ...
0
votes
2answers
593 views

How can I make the background of my game move following my player?

I'm starting with Libgdx and I would like to make my ParallaxBackground move following my player. I am using a TiledMap along with Scene2d, and have the camera follow the sprite of my player. I'm ...
20
votes
2answers
4k views

Unity Method count exceed the limit of 64K

I just got an issue related to a 64k method in Unity so that's why I'm unable to build my project. It shows method limitation exceed the limit of 64k method count. So can anyone here help me out to ...
2
votes
1answer
83 views

How to know if these profiler values are good or bad?

I'm making a 2D game for Android Mobile using LibGDX and Java in Android Studio. My game mostly runs alright with 60FPS, but for some time to time it lowers to 50FPS. I'm trying to find out what ...
0
votes
1answer
244 views

How do I make so the player jump happens only once in a onScreenController on LIBGDX and the player doesn't stick on the roof?

I'm making a simple platform game, and I was following this tutorial to make an onScreenController (https://www.youtube.com/watch?v=z4Vqkp_ve3I&t=66s). There's one think that's not how I want it ...
3
votes
1answer
154 views

Android Studio with libGDX doesn't recognize boolean

In my game, when the users clicks an image button, the value of a boolean changes and then the game is closed. I mean, if I want to restart the game, I click this image button, the game is closed and ...
3
votes
1answer
246 views

Drawing a graph in Java JPEG/PNG for a simple map

For my game i need to create a map based on a graph starting from the coordinates of the nodes, using "roads" instead of simple lines (for the edges) and circles instead of points (for nodes), but i ...
1
vote
2answers
499 views

LibGDX with SoundPool

I'm developing a game for Android using LibGDX in Android Studio. I recently found out that some sounds in my game fail to play. I noticed that every time a sound fails to play, these are the logs: ...
1
vote
0answers
350 views

How to fit a bitmap to a random size rect so it does not strech? (Android Studio)

I'm trying to fit a bitmap to a random size rect but I don't want the bitmap to be streched out. I've tried using BitmapShader and tile it but it become animated and not fixed. Here is my code ...
0
votes
1answer
66 views

spriteBatch.draw is not getting overloaded

I am following this tutorial from gamefromscratch.com tutorial 11. I am using libGdx framework in Android studio . ...
0
votes
1answer
433 views

How to randomly spawn a Rect on x position (android studio)?

I want to draw a rect with a 50x50 size, however I want it to appear randomly on the x position. Where should i set the x position? This is how i set my rectangle. ...
0
votes
1answer
951 views

Why do I get java.lang.OutOfMemoryError in android studio after adding a 2nd activity?

After I decided to create an activity to show the results of the game with try again button. Every 3rd try the game will stop with this error. java.lang.OutOfMemoryError: Failed to allocate a ...
0
votes
1answer
6k views

Can I make a multiplayer Android Game using Android Studio?

I want to create a multiplayer android game, where the clients connect together via a web server. My question is: Is it possible to make this kind of games using Android Studio with other libraries ...
0
votes
1answer
173 views

Error suddenly when compiling Desktop on Android Studio - all projects - nothing changed - LibGDX

I have just gone into Android Studio to open a project. It will run in Android but not my Desktop configuration. Nothing of the code has been changed and I have now tried 3 projects, also a brand new ...
1
vote
2answers
340 views

How to Refresh Dependencies after Adding FreeType Extension in Android Project

I'm planning to use FreeType fonts in my game (LibGDX and Android Studio) and I already added the freetype dependencies in my project. How can I refresh the dependencies after adding them? I have ...
-1
votes
1answer
432 views

Why does the Texture from AssetManager displays black rectangles only (LibGDX)?

I loaded and get a texture from assetmanager but whenever I test the app it only shows black rectangles instead of the texture. I tried finding some probable cause for this in my code but I can't ...
1
vote
2answers
520 views

How to make members of an Array into an actor and add them to stage?

I have an animation (enemies) that I would like to add multiple times on the screen. From what I know, I can save memory and framerate-per-second by using one animating image and make an arraylist of ...
1
vote
2answers
363 views

Should I use Unity for a “non-game” mobile app? [closed]

I have some experience with Unity but I always made games only. Right now I have an idea for an app but I don't think Unity is the most efficient way to do it. Probably Android SDK and OpenGL ES would ...
1
vote
2answers
260 views

Memory leak while loading libgdx game screen

So, I have a lot of texture atlases in my code for a talking tom type libgdx, and I use around 6 of them per screen. The app crashes abruptly without any errors on devices with 1gb ram or less. I ...
0
votes
3answers
354 views

Actor in Stage Does Not Update the MoveTo XY Location

I am creating a game wherein an apple is being shot with an arrow. The apple's location is the XY location of the user input and the arrow actor has to move to that location using the code actor....
1
vote
2answers
112 views

Image Does Not Animate and is Stuck in one Frame

I'm having a problem in my code where the animation from another class does not animate and is stuck in one frame. The image moves across the screen in the right manner though. I know that the problem ...
0
votes
1answer
556 views

What is the meaning of this “MuxOMX ctor” log in LibGDX?

I'm developing a game in Java for Android using LibGDX with Android Studio. I'm using the AssetsManager class and I've noticed weird log when finishLoading() is finished: ...
0
votes
2answers
1k views

libGDX, Android Studio assets not found but linked properly

I used the libGDX setup UI to create a new project, copied sources from my tablet project and fixed all the errors due to libGDX version changes. Finally at the point to test and run, but first I hate ...
0
votes
2answers
393 views

LibGDX touchDown event continues

I'm using libGdx to create a simple platformer. I used a set of images as an onScreen controller for Android, and use this code to fire a shot -> ...
1
vote
3answers
676 views

Better Way to Detect Line Cross

I am developing a very simple game in libGDX for android devices. Simply, the game is a character who runs and jumps over obstacles, every time the character jumps over one of said obstacles, a ...