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

learn more… | top users | synonyms

-2
votes
0answers
16 views

How do i move an Object in a circular motion around a point? [on hold]

I have the following code, but the object is not moving at all. public class Move extends Activity implements View.OnTouchListener { private float x=30; private float y=30; private float ...
0
votes
2answers
19 views

How can I add extensions to libGDX

I had a problem with my Font in a game I am developing in libGdx. After some googling I was instructed to use the following code: private void createFonts() { FileHandle fontFile = ...
0
votes
0answers
5 views

Box2D - Slow movement on bodies when some are above others

I set a random position around the screen to some circle bodies with 1f density. And when some of them are above other bodies, they move until they dont touch each to other. I want this movement, but ...
-2
votes
0answers
14 views

Android unity Build error [on hold]

i add the admob in my unity project i got this error Error building Player: Win32Exception: ApplicationName='javac.exe', CommandLine='-bootclasspath C:/Android/sdk/platforms/android-21\android.jar" ...
0
votes
1answer
32 views

android canvas rope swing

I'm creating the code, where a player swinging on a rope for the moment I got this double angle = Math.atan2(player_y - center_y, player_x - center_x) - Math.atan2(end_y - center_y, end_x - ...
0
votes
1answer
25 views

libgdx continuous movement while touch and hold (even after jump)?

So, I have these buttons where I have implemented a method to handle 'touch and hold' (without polling). If the player touches and holds the walk button ..it will keep walking till the button is ...
2
votes
1answer
24 views

OpenGL ES God Ray Precision error

I have encountered the following (i think) precision error. (missing link need 10 rep) My source of inspiration was: (missing link need 10 rep) On the PC everything works fine, but on android it ...
0
votes
1answer
26 views

Marketing PC/Android 2d Physics Game

I've been working on a game for couple years now, its fairly original, has definite potential within an indie market, and appeal for the masses also. I want to deploy on Android and PC, green-light ...
0
votes
0answers
32 views

Capture what is Rendered in OpenGL

Im Making an android Game with OpenGl ES, I Want to capture what is rendered onto screen By FloatBuffer and save it for later use, For Example If this is the OutPut: I want this for Result: How ...
0
votes
1answer
37 views

Playing with hashmap in drawing

I'm developing a game in Java for Android, using LibGDX. In my render(), between the batch.begin() and batch.end() I'm running through all the game objects and draw them. Every game object is stored ...
0
votes
0answers
27 views

NullPointerException in android.app.Activity.onCreate(android/app/Activity.java:874)

I'm trying to get libGDX 1.6.1 to run on Android via Ruboto. So far, I: Generated a new libGDX app using the app generator Got the desktop app to run (Java) Got the android app to run (Java) ...
-1
votes
0answers
25 views

Level generation with libgdx [closed]

Hello i am designing a game with libgdx for android. Now i want to create different levels for my game. the game will include about 200 levels. levels are only about changing some variables in ...
0
votes
0answers
34 views

Libgdx performance on old devices

I'm developing a game in Java for Android, using LibGDX. I'm using Nexus 5 to test my game most of the time and it works great (Minimum FPS it gets is 57 out of 60). Recently I ran my game in Galaxy ...
0
votes
1answer
21 views

How to send dynamic data to a vertex shader OpenGL ES 2 Android

I'm very new to Android development and OpenGL ES 2.0. I have been working through a book called "OpenGL ES 2 for Android A Quick Start Guide" which has been useful, but at times I get a bit lost as ...
1
vote
1answer
37 views

Android OpenGL EGL context lost

I'm developing simple Android game in OpenGL ES 2.0 and the development stage is getting closer to publishing game on play store, but I'm still unsure about EGL context behaviour on different devices. ...
1
vote
1answer
61 views

Developing an iOS/Android game with the free Unity license - feasible?

I recall, when I looked up the Unity license comparison page several months ago, seeing that some iOS/Android features were disabled for the Free license. However I can't seem to find that page now, ...
1
vote
1answer
65 views

What size should i use for my game design?

i am currently working on a android game by using libgdx and i am designing graphics with ps for it. I want my game looks the same quality for different screen sizes but i dont know in which size ...
0
votes
1answer
46 views

Android multiplayer via bluetooth [closed]

How do I transfer game commands between 2 android devices via bluetooth first of all is possible to do this??If possible then someone please help in doing so.Thank u
0
votes
1answer
18 views

ETC1 Performance Problem Android

I wanted to support etc1, because it shoul improve the performance and loading times, but somehow its worse than using normal png files. I'm using Mali compression tool with seperate RBG pkm texture ...
4
votes
1answer
239 views

Why does flipping 1 texture region cause an identical texture region to also be flipped? (libGDX)

Sorry for the bad title. I didn't know how else to explain it. The following is a portion of my code: public class AssetLoader { public static TextureAtlas spriteSheet; public static ...
1
vote
1answer
29 views

Unity: Slow deployment to Android devices?

From the time I hit "Build & Run", I wait 2 minutes (each) for Unity 5 to push to two different 'Droids. Fresh project, one script to generate a simple mesh, and no other assets. I am deploying ...
-2
votes
1answer
22 views

Trying to Create a Sprite Wall [closed]

I am trying to develop a Android Game using Canvas and Animation Sprites in a SurfaceView. I didn't have any issues creating the Animations but my problem is now that i would like to implement a Wall. ...
-2
votes
1answer
56 views

Porting SDL OpenGL Game to Android and IOS

I am currently learning OpenGL (3.0+) with C++. I am using SDL for input handling, window creation, etc., GLEW to use OpenGL and call OpenGL Functions, and GLM for OpenGL Math stuff. If I fully ...
0
votes
0answers
24 views

Cocos framework gives large Android builds than cocos2d-x

This question is regarding Project Architecture and workflow. I have an installation of cocos2d-x and Cocos Studio with Cocos Framework ( version 3.6). I carried out different build tests with hello ...
0
votes
0answers
39 views

Admob - Rewarding users with coins, how is the frequency relevant? [closed]

At each third level restart I ask the user if he would like to see a video AD and I reward him with coins after the view. Is that in line with ADMOB policy? Is there a limit to how much a user can ...
0
votes
0answers
7 views

Unity - Eclipse Error :Failed to receive dispatch signal. status=-11

I develop game . This Game run directly in unity but it export to Eclipse this error : channel UnityPlayerNativeActivity (client)' ~ Failed to receive dispatch signal. status=-11
0
votes
1answer
31 views

AssetManager proper usage in libgdx

I am a beginner in libgdx and I am coding a simple game. This game is like a word puzzle where each letter is a texture. Before loading the first level I need to load into memory 26 textures, one for ...
3
votes
2answers
46 views

LIbgdx android app remove fullscreen and show titlebar

I am developing an app using libgdx and i dont want the app to go fullsceen and i also want to show the title bar but the app goes to full screen and hides title bar instead of all efforts. here is ...
0
votes
0answers
19 views

How can I get float values using glReadPixels? [Android NDK es3.0]

c++ code: float* data = (float*)malloc(texWidth*texHeight*sizeof(float)); // or GLfloat float* result = (float*)malloc(texWidth*texHeight*sizeof(float)); // or GLfloat for (int i = 0; i < texWidth ...
0
votes
1answer
122 views

How do games such as aa Game have high levels in the structure of their code [closed]

How do games such as aa Game have high levels in the structure of their code? I mean if we want create a game with high levels, should we create and use a class for each level? I do not want code from ...
0
votes
0answers
74 views

OpenGL - Make two images blend together

I have 2 images that are .png and they mix together, The problem is that one overwrite the other. I know that the draw order matters, but In that case I should redraw the icons 2 times ( there is a ...
-1
votes
1answer
47 views

Drag and drop game for android [closed]

I'm trying to make some alert for my drag and drop game which I want to insert the sound when user drag the right answer in the space provided. How can I code my Java in Eclipse? Someone please help ...
1
vote
0answers
39 views

Efficient Collision detection for polygons (fleet) in an RTS

I'm trying to make an RTS for android using libgdx. I would like to have collision detection to be able to detect ships inside the range of weapons and collision between my bullets and the ships. So ...
0
votes
0answers
27 views

Issue with texture mapping on a spehre using opgengl es 2.0

I have a problem to calculate the right UV coordinates. I'm calculating the sphere by subdivate a ocathdron. What did I do wrong? Calculate UV Points for the texture: private ...
0
votes
0answers
25 views

Sprite drag drop andengine

How to drag an andEngine sprite anywhere on the phone screen? I have written this code in onAreaTouched function of IOnAreaTouchListener interface which is implemented in my activity, but its not ...
-3
votes
1answer
44 views

Unity Licensing

I'm sorry if this gets asked a lot but google gives up answers from back in 2008 and all sorts so could somebody please clear up a couple of questions for me please. I want to make 2D games in ...
1
vote
1answer
31 views

Java - Trouble with recursion and rectangle placement

I am using Android API's and using the RectF class for rectangles. I have a list of blocks that are on the screen at one time. Each block is given a random position, and then I go through all of the ...
0
votes
1answer
46 views

Camera.unproject(Vector3) method is not working in libGdx

I know the touch postioning in libGdx uses OpenGL, making 0,0 the bottom left corner while the camera uses the top left corner as 0,0. I did some searching and found this SO question that specifies ...
-1
votes
1answer
16 views

Sound isnt playing in Game Maker Studio when interacting with object

Im making a small game in Game Maker Studio. I have a piece of code that moves the player to the next room when he touches obj_star: this works. I have another line that tries to play sound_collect ...
0
votes
0answers
35 views

How to draw my android Hexagons in a grid?

I am trying to create a hexagon grid using the Android ’Canvas’ package. I have a working ’Hexagon’ class that when used in a view will draw a single hexagon on screen. The problem is that I need many ...
0
votes
0answers
108 views

Using Cocos2dx with Android Studio

Has anyone got Android Studio to work with Android Studio? I can get the generated project to work with proj.android, and add the NDK path to local.properties but I can't get it to rebuild after I ...
-1
votes
1answer
54 views

What is the best way to send/receive data about user coordinates and other properties?

For example If I have 2 users, and each of them have an object, and that object has: x coordinates, y coordinates, angle, state, and other properties... I use java let'say the game changes at 30 ...
2
votes
1answer
46 views

[Libgdx]Screen not rendering after restarting game

I have a strange problem while using the libgdx library Game works fine on the initial launch on Android, but after that restarting game does not render the graphics on the screen properly. It is a ...
2
votes
0answers
42 views

LibGDX Android Textures reload other textures, and transparent images get black backgrounds [Pictures]

I have very strange problems with my LibGDX Game in Android - The problem is that sometimes the textures get black backgrounds when they should be transparent, and sometimes when I remove the texture, ...
0
votes
1answer
73 views

What screen resolution do I make an android game in? [duplicate]

Is it safe to assume that most mobile phones and tablets today have moved to 1280x720 resolution and above and make the games in that resolution, scale down for smaller screens or is a smaller ...
0
votes
0answers
46 views

Android client-server logic for a multi-player game

I'm creating an android "quiz" app. The game can be played by two user in real-time. I'm creating game on server with this design: //node js server //new game request api @game/request/new var ...
0
votes
1answer
44 views

Getting position of finger along a screen

I'm trying to get a list of Vector2 position by tracking my finger and then tracing them with a prefab (Basically just gestures). I have appended an onGUI function to help print out the list of ...
0
votes
0answers
37 views

Must have game engine? [duplicate]

So I been working with android studio to create apps, and thought that I would try out a game, am I reading this correctly that I can not create the game in android studio and I must use a 3rd party ...
0
votes
0answers
64 views

Problems with starting a new game in Tic-tac-toe

I have problems with a new-game method in the game Tic-tac-toe, because after I play a game against the computer, and want to replay the game, the buttons freeze and I can't press them. For playing ...
0
votes
0answers
12 views

Problems with computermove in tctactoe android java

I have problems with the computerMove in tictactoe. I am trying to do a method with matrix, but I do not know how to do it in a good way. I have done an array with button which the game board will be, ...