Android is an operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com

learn more… | top users | synonyms

2
votes
2answers
5k views

Android: Improving surfaceView?

I'm using Surfaceview in my Android app. I have two threads, one for UI and another for rendering and updading the UI. I am limiting my frames per second to 30 fps and have employed frame-skipping ...
0
votes
0answers
70 views

2.5D platform Android Game

I am a beginner to game development, so far I just made a top/down scroll shooter with canvas in Android, and I now wanto to make a 2.5D platform game like good old SNES, I am thinking of making it ...
0
votes
0answers
49 views

Transparency in GLSurfaceView

I am new in game development .I have a class which extends GLSurfaceview and we add this class in xml file and that xml file pass in main activity i want to make transparent that class. we already use ...
1
vote
1answer
132 views

What would cause my script generated buttons and text to show in Unity and not on my phone?

I am using Unity 5 and the built in GUI tools. My static GUI shows up just fine which makes me think it's not a text/font issue or some such. Again, it all looks good in the Unity editor when I hit ...
0
votes
0answers
70 views

Why does physics interpolation give me periodic jumps/flickers?

I have seen this question but it didn't solve the problem. I have followed the same steps as in this article. What I notice in my Android game is that my interpolation alpha (or fraction or ...
0
votes
1answer
34 views

OpenGL ES 2.0 basic camera issues

I am having issues with the camera, I cant find how to invert the AXIS Now A point is 0,0,0 B point is 1,0,0 C point is 0,0,1 What I want is A point 0,0,0 B point 0,0,1 C point 1,0,0 ...
2
votes
4answers
530 views

Saving virtual goods balance in Android Game

I'm looking for a good way to store virtual goods and virtual currency balance in an Android game. Since these are "consumable" or "unmanaged" goods the balance is not backed up by Google and so there ...
-1
votes
2answers
1k views

Android bitmap placing

I've recently added an explosion in my game, for when enemies get killed, and it works fine and all, but the explosion wont "spawn" on the enemies x and y. The problem is that I'm not drawing the ...
0
votes
0answers
27 views

How to zoom and scroll in libGdx?

I am trying to both A.) Pinch zoom my game scene and B.) Move (scroll) my game scene but I have not found many examples. I learn more by examples than by reading API documentation (although I am ...
0
votes
0answers
32 views

In OpenGL on Android, how do I give quads a border color?

I am new to game development and I'm working on a Rubiks cube game in Android using OpenGL. I want to create a cube with black borders, but I can only manage to set the fill color: GLColor[] colors ...
0
votes
1answer
30 views

Libgdx bouncy effect in a wall

I have an element inside the screen and I want to set my phone's bounds as a wall where elements are bouncing. I want it to be physically correct. How to do this?
-1
votes
1answer
46 views

Libgdx Drawing a triangle cannot resolve method “render ”

I am looking to draw a triangle. I found a lot of code such as : https://github.com/libgdx/libgdx/wiki/My-First-Triangle-%28Example%29 The code I found are old I think; if I use ...
1
vote
2answers
143 views

Help with Resolving Pixel Perfect Collision

Hi I'm having trouble resolving "Collision detection between axis-aligned bounding box and bitmap (pixel perfect) terrain on a Worms type game". (Read previous question to find more information about ...
1
vote
1answer
40 views

Android - animating spritesheets

I'm creating a basic endless runner game on Android using SurfaceView. I have background that recreates itself constantly, which was simple enough. One problem I've always had is getting my head ...
0
votes
0answers
160 views

Android Studio libgdx multiplayer

Does anyone know if it's possible to setup a multiplayer game using libgdx in Android Studio? I've been trying to convert my game to multiplayer using all kinds of tutorials on libgdx & ...
0
votes
0answers
11 views

Android app not installing because of more files in streaming asset folder

I have created a game which contains some videos, I have put them in Streaming Assets folder. The main problem is if the number of videos increases more than 6, app will not install else it will ...
0
votes
1answer
188 views

Implementing Spine animations in Libgdx

I've been searching a lot for a guide on how to implement 2D animations exported from Spine to Libgdx, but all I could find was outdated tutorials and source codes. I can handle basic Libgdx but Spine ...
0
votes
1answer
38 views

What's the size of library in unity for android?

In unity3d what is the size of library compiled into apk. Is that affect when i make game without any physics(2d or 3d) or when making 2d or 3d game.
1
vote
1answer
101 views

Bad performance using VBO with OpenGL ES in Android

I'm making an Android app and I need to draw some polygons using OpenGL ES. I'm able to render them but I'm disappointed with performance. I updated the code to use VBO but I didn't notice any ...
0
votes
2answers
39 views

Unity3d - deploy game to android device off site

I am using Unity3d to develop my game and my friend with android device wanted to test it. I am natively IOS developer and have no knowledge of deploying Android platform. What do I need other than ...
0
votes
0answers
219 views

Unity3D Android - Move your character to a specific x position

I want to move my character (which is a cube for now) to a specific x location (on top of a flying floor/ground thingy) but I've been having some troubles with it. I've been using this script: var ...
0
votes
1answer
22 views

Image drawing then blackscreen on AVD using cordova

I have an issue on my android JS based game, the game displays well for 1 second then total blackscreen. window.requestAnimFrame = (function(){ return window.requestAnimationFrame || ...
1
vote
1answer
128 views

How do I refer to a native library with Unity 5 on Android?

I have a library called mylibandroid.a. This is given to me by another developer. I also have the iOS version of this lib, and have been able to access it from Unity. It is supposedly built for ...
0
votes
1answer
82 views

OpenGL ES 2.0 2D-Image displaying

I have followed the official OpenGL ES tutorial to create a working OpenGL-environment. I have been able to do anything I wanted to except for displaying 2D-images. To do so I worked through this ...
5
votes
2answers
877 views

Programatically find out which app store install came from?

Background In my app, I have a 'rate me' button. It follows the usual path - user clicks in, it starts an intent and opens the app's listing on the Play Store. All well and good. Now I wish to try ...
1
vote
0answers
67 views

error in post a screen shot of game scores with Android Intent in LIbgdx game

I want to post a screen shot of my game on social apps. I have developed this game using Libgdx framework. I have created an interface in Core class. Here is its Intent share specific code. ...
1
vote
0answers
61 views

Monogame 3.3 SoundEffect play Freezes

After using Monogame 3.3 with Xamarin Android, SoundEffect.Play method freezes the game. I try to convert wav files 8bit mono, 16bit mono no changes. This error on Samsung T101 android 4.0.3 but ...
1
vote
1answer
420 views

Unity Remote 4 on Galaxy S5 won't connect to Unity 5

I'm having some trouble connecting Unity Remote 4 to Unity 5. I'm using a Samsung Galaxy S5. I've searched a bit and the other solutions with other phones aren't working for me. What I've tried so ...
1
vote
0answers
119 views

Accessing variables from non-neighbouring classes specifically in game development (Android) [closed]

Edit Using direct access while breaking the law of demeter looks like this: res.sprite.drawQuad(res.sprite.xScreen,res.sprite.yScreen, mMVPMatrix); Using proxy methods / getters / setter looks ...
0
votes
1answer
107 views

Animation fails due to a NullPointerException which I'm certain shouldn't be thrown (LibGDX / Java)

What the title says basically. I've been stuck on this error for a few hours I got it to work earlier but I honestly can't see why its failing now (ctrl + z'd back to the working stage). Here's my ...
0
votes
1answer
68 views

Libgdx - Jumping, What am i doing wrong?

I really can't work out whats wrong with my code. I have an input listener for gestures, when I Swipe the position goes up on the y axis fine but he doesn't come back down, if with Gravity added. I'll ...
0
votes
1answer
66 views

Google Play Game Services real-time multiplayer secure game data architecture

Is it secure to allow all game clients in a multiplayer game session to store sensitive opponent player data which should be revealed in the UI only upon a certain action (e.g. enemy building type ...
0
votes
2answers
66 views

GestureDetection Issues - How do I make my Actor jump on Swipe?

I've been trying to solve this for hours now, In theory I totally understand how the GestureDetector works but I'm trying to integrate it with the Libgdx SuperJumper Tutorial (for now). Here: ...
1
vote
2answers
112 views

Libgdx: different speed on different devices

I am running a simple Libgdx app that I have wrote, on my Android phone and Android tablet and I am getting the unexpected result of having different velocities when a body is moved. To move the body ...
0
votes
1answer
63 views

Cocos2dx - Touch not recognized on Android

I'm having trouble with a touch listener not picking up touch events on android, but doing fine in windows (mouse input). I've got a Node listening for touches (not a Layer), but from what I've been ...
2
votes
1answer
66 views

unable to use two gestures simultaneously

I have a class implementing gesture listener in libgdx. I want to use longpress gesture in one half of the screen and fling gesture in other part of the screen simultaneously. public class ...
0
votes
1answer
75 views

Coding a left/right object movement C# script for android phones in unity

I have 2 spheres and a cube on screen. I'm experimenting to make a 'left/right movement script' for the cube so that when I touch the left sphere, the cube moves left-wards and when I touch the ...
1
vote
1answer
109 views

How can I get the pressure of a touch in Unity?

Does anyone know how to get the getPressure function from the Android API into Unity? Or is there another way I can access the pressure of a touch?
1
vote
1answer
134 views

How to move objects in any direction by swiping with libgdx android game development

first of, I'm new to android game development so I don't know all the classes and dictionaries within android and libgdx. I'm actually following a game development tutorial for the first time ...
4
votes
3answers
5k views

How can I make my main character move in a parabolic arc when jumping?

I'm entering Android game development, and I already have a computer version of a game I want to publish. The thing is, I want to make this as good as it can be. With that said, I need a physics ...
0
votes
0answers
94 views

(LibGDX/JAVA) How can I get a rectangle to rotate with this pendulum so I can start detecting collisions?

One of the objects in my game is a pendulum that swings in a semi-circle. This is done by having an update() method like this: public void update() { angleAcceleration = +1.81 / length * ...
0
votes
0answers
132 views

Rotate gameobject on fix X and Y axis with touch

I'm using Unity 5, and I want to rotate an object using touch input. This works: target.transform.Rotate(touchDeltaPosition.x 3.0f,touchDeltaPosition.y 3.0f ,0,Space.World); The problem is it also ...
0
votes
5answers
2k views

How do I approach large companies if I have a killer mobile game idea?

I have an idea for a game that has potential, but I'm not a programmer. How do I tell this to development companies without having my idea stolen? All I want from the company is for somebody to ...
0
votes
0answers
287 views

Why does my Unity Android export fail with “No resource identifier found”?

When I try to export my Unity game to Android, I get this error: CommandInvokationFailure: Failed to re-package resources. See the Console for details. F:\Android SDK ...
1
vote
1answer
112 views

Is there any case to mix Android UI with LibGDX?

my question is about creating "non-playable" screens in games with the help of native android tools. For example, I have an Android LibGDX game (singleplatform), what should I use to provide start ...
1
vote
1answer
70 views

(Java) Trying to animate an arraylist of coins with a (working) animation class

I have a coin class which takes in an integer numOfCoinsand an enum LayoutType, which can be linear or curved. A linear layout displays the coins in a straight line one after the other - we'll work ...
0
votes
1answer
180 views

In Unity for Android, how do I create touchable buttons?

I'm making a test game for Android in Unity 5, and I want to add left-right control buttons like the circles below, to move an object left or right. How can I do this? Sorry if this question is ...
0
votes
0answers
46 views

Drag and drop in android

I am using drag and drop, I want to retain Status of Action Down through Action Move in android studio. I am coding for game like candy crush , I want to swap two objects. I am able to swap using ...
2
votes
1answer
54 views

LibGDX font issues

I've started creating a small project for the store with LibGDX. So far I only tested on PC, and everything went well. I'm using the gdx-smart-font library for font rendering. The fonts are looking ...
0
votes
0answers
61 views

How to make touch events work in a match three type game

In "match three" types of games like Crazy Kitchen, when the user touches an image, he can drag his finger over multiple images and create a change in each image he touches in a single gesture. You ...