Skip to main content

Questions tagged [android-studio]

Android Studio is the official integrated development environment for the Android operating system.

Filter by
Sorted by
Tagged with
0 votes
1 answer
103 views

Comparison of 2 different quaternion axes

I am trying to compare the Z-axis and the X-axis of two different quaternions in a way that would give me the Euler angles about the X and Y axes to line up the two different axes. In my program, the ...
ACR115's user avatar
  • 1
0 votes
0 answers
183 views

How to shade the whole Google Map except for radii?

I am implementing line-of-sight into a strategy game I am developing, and I would like to shade the map darker outside of the LoS of the player and their structures (fog of war). The trick is, this is ...
TheBiscuit's user avatar
1 vote
2 answers
814 views

SurfaceView shows black screen

My code does not work correctly. SurfaceView shows a black screen instead of Bitmaps. I make a game loop that doesn't depend on CPU, like Fix Your Timestep!, but I can't get it to work. ...
Limpan's user avatar
  • 11
0 votes
0 answers
90 views

SurfaceView gameloop

Could you suggest an implementation of a game loop with interpolation for SurfaceView and thread? i have this, but it doesnt work. ...
Limpan's user avatar
  • 11
0 votes
0 answers
83 views

In my Online multiplayer quiz game how can i make players to join and compete at a time?

I am creating a multiplayer Online quiz game in Android Studio using Java. I am having players registered using Firebase in my app. Ok so the main thing is , I'm having different set of quiz ...
Kumar Harsh's user avatar
0 votes
1 answer
180 views

How can I add a button that opens a pop-up?

I have developed a game with a libGDX game engine. I want to create a button on the game screen and add a popup to this button. How can I do this? My current code: ...
Dou Software's user avatar
1 vote
0 answers
28 views

Recognize L-Shape in a 4x4 Matrix

I'm trying to make a board game, there the player has to press four buttons to make the L. It can be mirrored or rotated, it just has to be an L. But if the player press four buttons and make another ...
Yan Oguino's user avatar
0 votes
0 answers
928 views

Listview With Custom Adapter, Checkbox Items And Select All option

I have an application that populate data from sqlite and put in a listview 1 of the holder in listview layout is a checkbox. I also have 1 checkbox in the forupload activity which named select all, ...
user avatar
0 votes
1 answer
2k views

Error while trying to Build APK, fails when profile option is enabled

When I build normally my android app it execute without no problems, but when I go to File -> Buil and Run and I eneble Development Build and Autoconnect to profiler I got this error ...
eflores's user avatar
  • 11
0 votes
0 answers
15 views

Connecting android game with website to show user scores on logon

How do I make my android game users logon to my website to see their scores? I can create fb login in app and website, but I need to show the score of the particular user in the website. An example: A ...
shanganithi's user avatar
0 votes
1 answer
265 views

Button on click event crashes

I'm trying to create an android game using libgdx with a Titlescreen, you just press start and your game startes. However I'm having difficulty trying to get these buttons to work. The titlescreen ...
stayutazen's user avatar
1 vote
0 answers
101 views

What happens to deleted or added assets in your app when updating to a new version in the Google Play Store and iOS App Store?

So let's say I used Unity and built an app and uploaded it to the android and iOS app store, it is 100 MB and lots of people downloaded it. So now I want to update it to the newer version, however ...
EmperiumIce's user avatar
0 votes
0 answers
108 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 ...
Aleksandar Mitrev's user avatar
1 vote
1 answer
226 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: ...
Sanevent's user avatar
0 votes
1 answer
492 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'...
Zekirak's user avatar
  • 111
-2 votes
1 answer
312 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.
Alihan Karabulut's user avatar
0 votes
1 answer
2k 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 "...
Jon Doe's user avatar
  • 17
0 votes
1 answer
1k 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 ...
Jon Doe's user avatar
  • 17
1 vote
2 answers
913 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: <...
Erick Adam's user avatar
2 votes
2 answers
579 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
J.N's user avatar
  • 21
1 vote
0 answers
973 views

Collision detection between image and drawables

I'm trying to collide my ball_1 to greengreen drawable. How can I determine the collision? ...
francis Escolar's user avatar
0 votes
1 answer
492 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 ...
Kunal Pitale's user avatar
0 votes
1 answer
1k 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 ...
Neillbar's user avatar
0 votes
1 answer
321 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 ...
tacofisher's user avatar
0 votes
1 answer
989 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 ...
Agustin Val's user avatar
1 vote
1 answer
772 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 ...
user avatar
1 vote
1 answer
577 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 ...
coder_86's user avatar
  • 175
1 vote
0 answers
665 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 ...
Mr. Mendelli's user avatar
3 votes
1 answer
1k 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 ...
Brett_'s user avatar
  • 31
1 vote
1 answer
672 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 ...
user avatar
1 vote
0 answers
59 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: ...
Agustin Val's user avatar
0 votes
2 answers
1k 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 ...
LizardStd's user avatar
20 votes
2 answers
7k 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 ...
Rakesh's user avatar
  • 539
2 votes
1 answer
159 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 ...
Gad Wissberg's user avatar
0 votes
1 answer
475 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 ...
J. Carlos's user avatar
3 votes
1 answer
217 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 ...
Curio's user avatar
  • 199
2 votes
1 answer
703 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 ...
DeNasti's user avatar
  • 33
2 votes
2 answers
1k 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: ...
Gad Wissberg's user avatar
1 vote
0 answers
709 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 ...
realNewbie's user avatar
0 votes
1 answer
133 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 . ...
ZaidRehman's user avatar
0 votes
1 answer
893 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. ...
realNewbie's user avatar
0 votes
1 answer
1k 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 ...
realNewbie's user avatar
2 votes
1 answer
14k 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 ...
Mr.bit's user avatar
  • 23
0 votes
1 answer
222 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 ...
Big T Larrity's user avatar
1 vote
2 answers
607 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 ...
JAlmazan's user avatar
-1 votes
1 answer
656 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 ...
JAlmazan's user avatar
1 vote
2 answers
998 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 ...
JAlmazan's user avatar
1 vote
2 answers
438 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 ...
Moaz Ashraf's user avatar
1 vote
2 answers
437 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 ...
Storm's user avatar
  • 57
0 votes
3 answers
715 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....
JAlmazan's user avatar