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

2
votes
0answers
43 views

Improving Position Sync Bandwidth Usage in a Multiplayer Game

This is the class i use to sync position between clients in a multiplayer top-down 2D shooter game: [System.Serializable] public class MovementUpdateClass { public int MessageTime ...
1
vote
1answer
70 views

Switch beetween Screen on LibGdx application

i have set main class like this: public class MyClass extends Game { MenuClass menuClass; ActionGame actionGame; @Override public void create() { menuClass = new MenuClass(this); ...
4
votes
2answers
166 views

Does Google Play allow an account to log in to the same game on 2 devices?

I'm developing an online Android game with Unity. I want all Google Play accounts to have only one session logged in at a time. Do I need to write my own code to disconnect an existing session on ...
1
vote
1answer
80 views

Unity apple/google ID access?

After extensive Googleing I have not come up with a way to access Apple ID's or Google ID's from unity running in respective devices. Either ID's or something else unique to the accounts logged in. I ...
2
votes
1answer
68 views

EULER Integration

I'm a little confused over using integration to move a sprite. This is how I've always achieved this: float time = 10f; //Number of seconds to pass a pre-defined area (using the screen width in ...
1
vote
1answer
87 views

Sprites are rendered as black rectangles in android 4.0.x only

I have some problems rendering sprites correctly on a LG optimus vu (android version 4.0) with libgdx. Basically sprites are black rectangles, while other images that i declare as Texture are correct. ...
1
vote
0answers
102 views

My app has no client ID?

So I'm using the Unreal Engine 4 to make a mobile game. I'm currently trying to set up the Google Play services so I can do Leaderboards, Acheivements and In-App Purchases but I'm struggling with the ...
2
votes
1answer
106 views

Android with SDL2

How to link native code (it has SDL_CreateWindow) with Java application code? In my case, there libSDL2.so, also my .so library that uses the SDL. My method contains functions SDL_CreateWindow and ...
2
votes
0answers
35 views

Record voice and Comparison prefab audio in unity

I am android programmer that i Comparison Entrance voice with ready voice(prefab voice) for example when you say hello >>>>>to analyze>>>>>if your voice == prefab voice >>>>>you listen hello(play ...
1
vote
0answers
143 views

Implement Candy Crush like level graph

I want to implement road-map like level graph where in you can see what level are you and your friends are on. Just like we see in Candy Crush Saga.For people who have not seen Candy Crush Saga, ...
2
votes
0answers
28 views

Restore IAP in Android using Prime 31

can someone please guide me how to restore purchases in android using prime 31. What my basic understating is to get the list skus which player has purchased after he logs in with his account and ...
2
votes
2answers
60 views

IOS/Android Game programming [closed]

I am somewhat new to the whole game programming thing. I was wondering if I could develop a game for IOS and Android with using openGLES. if so how can I run the code on the devices and what are some ...
4
votes
0answers
64 views

OpenGL: Frame partially jumps back and forth

I'm working on a project with SDL and OpenGL. The game works great on Windows, Linux, OS X and iOS. However, the Android version is showing a problem on my phone in particular. I have tested another ...
3
votes
1answer
58 views

Setting 4 different enemy spawn zones off screen

This is my first game, so I really appreciate all the help. I want to create four enemy spawn zones for enemies and this areas are off screen. The enemies are coming from left, right, up and down, ...
3
votes
1answer
77 views

How i can control button input android?

i am android programmer and i want control button input in android for example i made a game that when you press back button in android mobile nothing happens but i want quite from game. This is ...
2
votes
0answers
44 views

Spawning enemies in four different positions with a fixed trajectory in android game

This is my first android game, I appreciate all the help. I want to define 4 spawning zones starting from out of the screen (left, right, up and down). Enemies coming from this areas have a fixed ...
1
vote
0answers
149 views

Snow fall animation android

I already got snow fall effect from here the main activity for the snowfall public class SnowFallActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { ...
2
votes
1answer
72 views

Stencil Buffer not working as expected in OpenGL ES 2.0 (Android)

I'm trying to get to grips with the stencil buffer. Apart from setting up viewport, camera, etc, my OpenGL ES 2.0 initialisation code is: GLES20.glDisable(GLES20.GL_CULL_FACE); ...
3
votes
1answer
85 views

How can I hand out free copies of my otherwise-paid Play Store game?

With Google Play Services, is it possible to give people redeemable codes for an Android game I made, or give them special access or something like that? How do I do it?
5
votes
0answers
140 views

What's the best practice for a progress bar in OpenGL ES 2.0 (Android)

As the title says, what is the best practice for a progress bar in OpenGL ES 2.0 on Android ? My attempt: I make a texture (could be a single colour or otherwise), and then stretch that texture from ...
0
votes
1answer
69 views

Creating Unity games for older versions of Android? [closed]

In the Unity editor, the lowest available Android version for debugging is Android 2.3.1 In my case, I have a phone running an older version of Android and I intend to publish my game to a wide ...
1
vote
0answers
24 views

Android native database organization

I am developing an Android native game, but I have problems with Data Storage. For a better comprehension think it like as i am developing Clash of Clans, but with Native Andorid. Now imagine I have ...
1
vote
1answer
115 views

Android canvas.drawColor throws a null object reference

I have two nearly identical methods, the first to draw a splash screen while assets are loading, and the second to draw all of the assets to the screen. The first throws a NullPointerException on ...
1
vote
2answers
177 views

Moving sprites using the accelerometer (Android)

In my previous game, I was moving my sprite like so: float time = 10f; //Number of seconds to pass a pre-defined area (using the screen width in this example) float velocity = 1f/time; //work out ...
1
vote
1answer
21 views

GLES multiple output buffers

I'd like to write multiple values (not just the color and depth value) in one pass to avoid redundancy in vertex shader. Therefore, i attach multiple (let's say two) color buffers (e.g. textures) to a ...
5
votes
1answer
137 views

How do I implement tilt controls that work even when the device is not vertical?

I'm using libGDX to develop an Android game. The main character can be moved freely in the 2d plane by tilting the phone. The relevant part of my current implementation looks somewhat like this: ...
1
vote
1answer
235 views

Platformer collision problems

I am working on a platformer 2D, and i am currently focusing on collision. I have the actual rectangle(class: Rect) and i can detect if the player-model is intersepting it. However, when it comes from ...
2
votes
0answers
65 views

Native vs Framework development for simple board game development [closed]

I have been working on a simple word game like Hangman Pro but for a different language and I have been using libgdx blindly. After a lot of hassle and unnecessary distractions, I am beginning to ...
2
votes
1answer
50 views

Sounds make Andengine Scene junky

I have a GameScene which has a character (animated sprite), AutoParallaxBackground background with quite large textures and no more than 3 other items attached to the scene at a time, previous 3 items ...
1
vote
0answers
24 views

Error rendering map android

I'm trying to read this text file and render the corresponding tiles on the screen. The code for reading the map is as follows: private void loadMap(InputStream is) throws IOException { ...
1
vote
0answers
27 views

Looking for a scrollable map with constructable buildings-> example, tutorial, guide, anything [closed]

I started to develop a game for platform android. I searched the web but haven't found anything about the following topic: I would like to implement the following functionality Scrollable area with ...
2
votes
2answers
88 views

Android libGDX FreeTypeFontGenerator exception

I am working on a libGDX project for Android. Since I added the following code, running the game on my Android phone produces an exception: final FreeTypeFontGenerator generator = new ...
1
vote
1answer
46 views

Concerns about APK version compatibility

I'm making a game in Unity, and i want to know if I generate the apk in version 4.1 Jelly Bean he will run in newest versions of android? Can anyone explain me better how the version works?
1
vote
2answers
75 views

How to make ranked matches in a head-to-head multiplayer game?

I am working on a field hockey like game for Android and iOS. Currently I support being able to play against another player online in a client/server fashion where one device host and the other ...
1
vote
1answer
78 views

Best practice for implementing overall / weekly / daily highscores?

So I'm setting up social leaderboards and I want there to be daily weekly overall high scores. The way the scoring works is each score is tied to a user after the user logs in so the scores need to ...
1
vote
0answers
84 views

How do I draw multiple irregular polygons with OpenGL ES?

In this post I was asking how to program a map of a Risk-like game. Now that the map is pretty coded, both client and server-side, I'd like to finally draw the map. I'll try to keep least broad as ...
2
votes
1answer
165 views

How do I check for collision between an ellipse and a rectangle?

I am working on LibGdx framework for developing a 2D isometric tower defense game.All my sprites are drawn in 2D isometric view. I have used an array list to store 8 points at boundary in the ...
1
vote
0answers
31 views

Drag and Flick Objects to any position (Unity3D)

In unity, I have several boxes in one cluster. I want the user to be able to move any of these boxes to any position that they desire in the app, and have it stay there until they move it again. Also, ...
1
vote
0answers
33 views

Physics Body editor loader collision detect

In my game I use the Physics Body Editor to add custom shapes to my bodies. In my show() method I use the follownig code to create my Jetski Body: BodyDef jetskiDef = new BodyDef(); ...
1
vote
0answers
114 views

Best practices for client-server communication in an online Android game

I'm developing an online RPG game for my "Object-Oriented Programming" module laboratory project. The client part must be written in C#, also using Unity 3D as a graphics engine. The problem is that ...
1
vote
1answer
45 views

Unity LoadLevel Loads Late

We are developing a 2D game for Android on Unity. It's our first project, we don't have a lot of knowledge on Unity. We have 2 scenes, in first scene there is only a "Play" button. When that button ...
1
vote
0answers
40 views

Android Multitouch Implementation

I'm trying to implement multitouch in my game but I'm running into problems. Basically all I want is for the player to run and shoot or jump at the same time. I've followed a multitouch tutorial and ...
1
vote
1answer
47 views

Centering an animation [libGDX]

I have the following class: public class AnimationDemo implements ApplicationListener { private SpriteBatch batch; private TextureAtlas textureAtlas; private Animation animation; ...
1
vote
1answer
47 views

How to make a levels map page?

I'm trying to make a levels map page that shows number-buttons in the page. I want to make this page in a XML layout file and I'm actually trying to make something like this: I know that I should ...
3
votes
1answer
53 views

Sensor listener setup/tear down android

I am developing my own game for android but when I open my app after 5 or 10 seconds it sets up the sensor listener and I can see a clear stuttering and the fps drops for a second to 40 fps instead of ...
1
vote
2answers
169 views

How to fix overly blurred texture / image in unity?

so, I'm not sure what caused this, let image below do the explanation : How to fix the overly blurred texture in unity? It's so frustrating, since I can't get it right, because when I tried it in ...
1
vote
1answer
140 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
116 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 ...