Android is an operating system for mobile devices developed and maintained by Google, Inc. This tag should contain specific programming questions about Android.

learn more… | top users | synonyms

1
vote
1answer
141 views

What organic traffic can I expect from publishing on Google Play, without other marketing?

I've just published a new Android game on Google Play. It has been a bit over 48 hours. It's active in the store, and I can search for it by name to get to it. However, I've had 0 organic downloads ...
2
votes
1answer
117 views

Unity2D 5 - Flickering sprites on Android

So the game had been working fine for a few days on Android phone without any issues. Today, after adding some scripts and tweaking the game a little bit (tweaks which have nothing to do with the ...
1
vote
1answer
62 views

States within a GameState?

I ended up coming up with having states within game states. For example: States splash menu tracks garage loading play What bothers me is that I now have states within the play state to handle it ...
1
vote
0answers
16 views

Unregister touch sprite when background scene is zoom and moving

I am new to game development on Android, I use AndEngine framework. I'm developing an application with isometric view, at this time I had problems with touchlistener area on the sprite in the scene ...
1
vote
0answers
69 views

error after changing the app name

I have made a game in Libgdx(eclipse).I changed the name of the app inside the string.xml file.Now I have an error in AndroidManifest.xml. in this line: android:label="@string/app_name"‬ (line 12). ...
1
vote
0answers
88 views

Bold black bar on right side of game in Unity (Android)

I am trying to create an endless runner. I have already created a system to generate infinite backgrounds from an array of some. However, on running the game, I get huge black bar on the right side of ...
1
vote
1answer
92 views

Unity Augmenter Reality on Android with Video playing

Hey sisters and brothers, So, I created an augmented reality marker, which works perfectly, I was able to display 3 shape on the screen with my Nexus 5. I would like to replace my shapes with a ...
1
vote
0answers
56 views

resize images in libgdx

I know how to set Image width and height using pixel coords. Is there a way to set relative coords? I want to deal with multiple screens. For example i have 1920x1080 screen size. And i have relative ...
1
vote
0answers
27 views

Andengine app freezes after resuming from background

I have developed an andengine app which works fine except whenever the app goes goes into background. There are 2 issues I am seeing. 1) If i leave the app by pressing the home button and then come ...
0
votes
1answer
27 views

Box2d java contact point reference changes after collision

I am trying to hold the contacts made during a collision in an array list. After I add n amount of contacts, when I try to retrieve them later on, they point to the last contact made in the world. ...
1
vote
1answer
154 views

LibGdx Sound start to give an error after loading GameScreen multiple times

I have a LibGdx game, where the user taps on the screen, and a Sound will play. When the user taps on the screen, a texture will "fire" another texture as a missile, and can hit a target, when this ...
1
vote
1answer
71 views

How can I calculate when a spesific amount of time has passed [closed]

I am trying to get something to happen, when a spesific amount of time has passed(in my case it is in secounds). I have tried using this method: long elapsed = ...
0
votes
0answers
19 views

LibGdx - Sound stops working after a while with error from SoundPool/AudioTrack [duplicate]

I have a LibGdx game, where the user taps on the screen, and a Sound should play. After a while, the Sound stops, and all other Sounds too, but it doesn't stop completely, it plays after a while ...
0
votes
0answers
20 views

OpenGL ES 2.0 save data for next render cycle

I'm currently writing a simple game, that should be able to cope with moving and rendering a large number of ships (particles). I started benchmarking with a sprite system, but obviously it was to ...
0
votes
1answer
63 views

How to force Landscape Mode Unity3D Android Game?

I am developing a small side project on Unity that will ultimately be for Android but I cannot figure out how to force landscape on the device and when I have tried it out the game just goes all over ...
0
votes
1answer
214 views

UNET start game with friend by finding their name, Android

There is a game at the google play store called Fun Run 2- Multiplayer Race. I loved its feature to find friends by writing their names, and then to play with them. Is it possible to achieve that with ...
0
votes
2answers
68 views

How to calculate attacks

I am making a android game, and it is supposed to have attacks.(Note, this game is 2D). I have implemented things like movement to the base, but I am not too sure about the actual attack algorithm. ...
1
vote
1answer
88 views

Google Leaderboards, Reducing the Score of a Player

I am making a strategy game similar to chess for Android. I'll be using the Google Leaderboards for rankings. I want to implement a sort of ranking system, that the player can actually lose score, ...
0
votes
1answer
45 views

Reading map.txt from assets android

I'm a beginner android developer currently working on my second app which is a platformer game. I'm trying to read the level map (which I've stored in the assets folder) but I keep getting a ...
0
votes
1answer
68 views

Crash when setting a new screen

In my almost finished game I want to set a new screen on game over. I got my game over method: private void gameOver(Label score) { for (Body body : worldBodies) { ...
3
votes
1answer
117 views

Android TV game development

Anybody develop games for Android TV? Especially with libGDX? I would like to know what game controllers Android TV uses? And whether we can use libGDX to control the game controllers?
1
vote
1answer
37 views

Why is my Box2D Body only colliding with one type of Object after a new level has been built?

So developing for an android mobile game, using Android Studio and developing for the API 17, with Box2D implemented. FIRST LEVEL For some reason, one the first level everything is running okay: ...
1
vote
1answer
48 views

dynamic body jumping out of water object

In my game I have my main object, a jetski, which will dive down into water, when the screen is touched. I managed to code the jetski diving down, with Box2d and some buoyancy forces. But when the ...
1
vote
1answer
154 views

Using coroutines to instantiate larger GameObjects in Unity/C#

We are making a scroller type game for mobile platforms and we got pretty far (Beta is already out). Now we are adding some additional content and are starting to experience a noticable lag when ...
1
vote
2answers
36 views

applyForce as long as display is pressed

In my project I have my main character body. I want it to move down on the y-axis as long as the screen is pressed. I tried it with public boolean touchUp(int screenX, int screenY, int pointer, int ...
1
vote
0answers
37 views

Cross-platform game to be wrapped into a native iOS/Android app

I need to build an app like Lumosity (https://play.google.com/store/apps/details?id=com.lumoslabs.lumosity) that is native app and have some game screens. So the question is: Is there a way to build ...
0
votes
1answer
51 views

Black screen when launching on phone

I am coding a game in libgdx. While adding the background I used the html module to watch the results fast and easy on my computer. But when I try to see it on my phone I just get a black screen. My ...
0
votes
0answers
144 views

How to use Minim-Android library with an Android Studio game

I have a game project set in Android Studio in which I need to use a library called Minim. It is meant for using with Processing, so its constructor asks for an object that I couldn't find on Android ...
0
votes
3answers
293 views

Unity Application.LoadLevel freezes the game on Android device

I'm developing a game using Unity. The game has a single level and after the player wins/loses, I simply want to reload the same scene. Here's the code I'm using: private void OnLevelFailed() { ...
1
vote
1answer
92 views

How to implement constant velocity and collisions without gravity

I am learning game development and i am trying to implement the AndEngineBox2D Extension such that my character is always moving at a constant velocity, when it collides with a body sprite, the ...
0
votes
0answers
31 views

What is dynamic branching in shader? And How to check which runs on android phone?

Is it simple "for" or "while" in loop with variable? Is it standard term? I have errors on some android devices with "for"-terms. [0020.31] Log: Compiling Shader 0x8200000000_0x3000000000000000, ...
-4
votes
1answer
216 views

best way to creating card game on Android [closed]

I have a new idea for creating a new Uno like card game. I have Java programming experience but not in Android. What is the best way creating card game on Android ? I mean handling cards easily as ...
0
votes
2answers
159 views

2D Coordinate Based Game [duplicate]

I want to make a game for Android that has a 10x10 Grid Plane as UI.In this game users going to touch on a grid and tihs grid will be painted. My question is how do I understand which gird or tile ...
0
votes
0answers
84 views

How do I hide the navigation bar in Android using the NDK? C++

I can't seem to enable immersive mode in android using the NDK. The only code that I've found relating is AConfiguration *config = NULL //AConfiguration_new(); ...
1
vote
2answers
111 views

In-app update, live update, hotfix for mobile game

I'm researching how to make an in app update on mobile game. When there is a hotfix, or an update, users don't have to go to Playstore, or App store to update but update inside the game. (E.g. Clash ...
1
vote
0answers
73 views

Save game on Android keeps disappearing

my company has developed an Android game using Cocos2D-X. Game works quite well except that for some unknown reason, save games keep disappearing. Users report that they play the game for several ...
0
votes
0answers
19 views

DynamicBody diving into StaticBody

In my game I want a DynamicBody to dive down into a StaticBody. I set up both bodies. At the moment they are colliding. How can I get my DynamicBody to dive down? Is it going to work with this ...
1
vote
0answers
77 views

LibGDX: How to detect remote button press for Android TV?

On Android TV, I need to be able to detect the remote control centre button to start the game. I tried: if (Gdx.input.justTouched() || Gdx.input.isKeyJustPressed(Input.Keys.SPACE) || ...
1
vote
1answer
556 views

How to do offline notifications for Android in Unity3d

I am making a game for Android with Unity3d. I've been looking for a solution to this on the web for a little, but I couldn't find anything suitable: I want to make my game have offline ...
0
votes
1answer
32 views

Box2d Coordinate System

In the game I'm trying to code I got to have two bodies. One StaticBody and one DynamicBody. I want to have the DynamicBody on top of the StaticBody. Somehow all I get is this: Is it possible that ...
0
votes
3answers
53 views

libgdx(android) touchup triggers more than once?

I have a function I run inside the touchUp method but when I click with the mouse during emulation, it triggers my function multiple times. I don't think its an error with the called method itself ...
0
votes
1answer
157 views

Libgdx Admob how to hide ad on specific screen?

I've recently started learning Java for android development. My first game is almost ready to publish in Google Play, but I'm affraid that google might say that on the one screen, the ad may be ...
2
votes
0answers
81 views

LibGDX on Android TV

Anybody wrote games for Android TV using LibGDX? What is the mapping of the remote control? Can we use the game controller with LibGDX? Thanks!
1
vote
1answer
136 views

accelerometer not working unity

why is the cube moving when I use a controller, but not with the accelerometer? void Update () { text.text = "X: " + Input.acceleration.x + "; Z: " + Input.acceleration.z; ...
1
vote
1answer
69 views

Box2d jetski on water

At the moment I am trying to code a 2d game in java, where a jetski is riding on water. If you press on the screen the jetski should dive down and jump back up on release. How do I have to do this in ...
2
votes
1answer
71 views

Viewport and Camera setting

For my first game in LibGDX and Android I got a Problem: I have a background picture which is 2560px * 720px. The screen is 1280 * 720. How do I have to set the viewport and camera in order to get ...
0
votes
0answers
7 views

Consturcting a sprite bitmap from mutliple partial sprties across sheets

First of all, I am not using engine and this is for Android. Bear with me if I use incorrect lingo as I am not experienced in game dev (but I am trying) I am being provided multiple sprite sheets. ...
-1
votes
1answer
393 views

Creating an Android port of old PC games [closed]

I have seen some decent ports to Android of old PC games. The graphics and game engines are the same, and all that seems to have been changed was the key mapping, and adding touch-screen events. I ...
1
vote
3answers
115 views

Avoid if else pattern everywhere depending on game settings

I am creating a sudoku game using the android sdk. I have a PreferenceActivity filled with different settings, such as "Highlight all digits" or "activate the visual helper". The problem is that I am ...
0
votes
2answers
187 views

What will happen with PlayerPrefs data after updating the app?

I'm using PlayerPrefs (Unity3D, on Android). If a user updates my application via the Google Play store, what happens to the data I've stored in PlayerPrefs?