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

learn more… | top users | synonyms

0
votes
1answer
161 views

How can i Zoom and Drag The Multiple Image in RelativeLayout [closed]

i try but it did not see the effect for the zoom and Rotate the image ..Here is my code.... ima1 = (ImageView) findViewById(R.id.image); ima1.setOnTouchListener(new ...
0
votes
1answer
78 views

Fixed background on a SurfaceView

I'm currently working on a top-down twin-stick shooter for Android. I've got my player moving around and shooting, but I'm looking to add a large Bitmap background which is larger than the device ...
0
votes
2answers
54 views

Camera position and angle different when running inside Unity and when running on Android

On Windows, running Unity 4.6.1p5, my simple game with only a cube, camera and light looks like this but under Android (Gingerbread on a 5 inch Galaxy Player) the cube appears lower down, slightly ...
0
votes
1answer
45 views

LibGdx Scalling sprites on Android

I have a sprite that is a few buttons but need them in the center of the screen for all android devices. I tried setting it's location to the center of the screen by dividing the orthogonal camera by ...
1
vote
1answer
398 views

How would I find the SDK folder for Android Studio so I can build my Unity project?

So I've been trying to build my unity project for android, but my problem is that I don't know how to find the Android SDK. I have the old developer bundle installed, when it was still the one with ...
0
votes
0answers
16 views

How to specify core project path in Libgdx Project Generator?

I am following a tutorial on making a flappy bird with the Libgdx framework. -http://www.kilobolt.com/day-11-supporting-iosandroid--splashscreen-menus-and-tweening.html I am currently on the step of ...
0
votes
0answers
36 views

Game Loop Thread for different activities

First of all, sorry for my mistakes of language. I'm a noob of game programming in Android but I'm trying to make one using canvas and bitmaps. My game have two screens, the Title Menu and the Game ...
1
vote
1answer
234 views

How does Unity input work with touchscreens

I'm trying to make a racing game on android using unity. I want to make a car move forward when I touch an image button like in the picture below. I've already made it work using the keyboard. How ...
0
votes
2answers
167 views

Libgdx box2d crashing

im making a game in libgdx which i having a bunch of circle bodies floating around in space and when the player's body crashes into another body, that body deletes and creates two smaller bodies ...
1
vote
0answers
105 views

Why do phone games limit turns? [duplicate]

Many phone games restrict the number of turns you can play in a given amount of time. I don't get what is the purpose of this limitation. Is it only to force the player to buy additional turns? Some ...
0
votes
0answers
59 views

onSignInSucceeded and onSignInFailed not called (Google Play Games Services)

Using the code below, can anyone tell me why my onSignInSucceeded and onSignInFailed callbacks are not triggered when signing in? It works fine if I extend BaseGameActivity, but when trying to extend ...
0
votes
1answer
75 views

Scene2d Stage Actor setup issues

I am creating a game using libgdx. In the same each level has a class. I have stage as a member variable of the class. To this stage, I add actors. Inside the levels class, I have attaced the input ...
0
votes
0answers
41 views

Google Play Games: onSignInFailed() and onDestroy()

I just had an error while testing my game, this is an update that I'm working on and it's never done this before (and I've launched this game on various devices literally hundreds of times, so it ...
0
votes
1answer
81 views

Android OpenGL: Use several Textures for one Animated Sprite

Good evening. I'm programming an Android Game. To reduce the amount of textures that need to be loaded (OpenGL ES 2.0) I've created several spritesheets of size 1024x1024. Some frames of the same ...
0
votes
0answers
43 views

Android View (Splashscreen) Vanishes after phone woken up from sleep

My game uses OpenGL ES 2.0 and I have a splashscreen which uses a standard Android View. This plashscreen is shown on top of the GLSurfaceView and then simply removed once everything has been loaded ...
0
votes
1answer
147 views

Background Music in Puzzle Math Game [duplicate]

Can someone suggest, recommend or directly link me on a site that offers free background music for an education puzzle game? I honestly not good in picking up a background audio that suits my puzzle ...
0
votes
0answers
54 views

How to change Google Play thumbnail image in link

Whenever i share my android game which is on Google Play as a link on social media my least favorite pic of the game gets used as a thumbnail. I have since deleted this pic from the developer console. ...
0
votes
0answers
32 views

AndEngine: paint in my scene

In my app I want to paint in a scene but I have a problem with primitive elements; I tried to use a "Line" but I can't draw a line with a big size line, so I tried a "Ellipse" but if my color-swipe ...
0
votes
0answers
68 views

Android: ACTION_POINTER_DOWN Called Multiple Times

I hope someone can help me here My code is below and I can't figure out why the ACTION_POINTER_DOWN case is being called multiple times (sometime twice, sometimes 4 times, but always multiple times). ...
0
votes
0answers
64 views

Google Developer Console Error message

i received my first crash report of on Google Developer Console yesterday and im completely lost. Did anyone receive this error before and how can i go about fixing it? Any help would be greatly ...
0
votes
1answer
134 views

android game development: why is my screen black?

so, im strarting an android game from scratch, and every time I try i stumble uppon the same problem, my screen is not displaying what i want it to. I've read various tutorials but they are either ...
0
votes
2answers
375 views

Counting multiple touches using Cocos2dx 3.2

I'm trying to count the number of active touches in screen in order to perform an an action in case that there are two touches: auto jumpListener = EventListenerTouchAllAtOnce::create(); ...
1
vote
1answer
113 views

How can I make this shader background more efficient?

I want to use a shader as a background for a mobile game. I'm using libgdx for my project. I've never written glsl before, but here's my attempt so far: http://glslsandbox.com/e#22332.13 On desktop ...
0
votes
1answer
134 views

How to make unitypackage from allseen alliance's android sdk?

Im making an offline multiplayer for Android device by Unity and I found only one way to do this is the allseenalliance sdk. After download its from here I found that to use it I need to create an ...
0
votes
2answers
72 views

Adjust bitmaps according to screen ratios on android

I always thought that pixels were square... it turns out i'm wrong, and I am quite worried by this. This means that if I draw a circle, it will be round on my screen but it could be an ellipse on ...
0
votes
0answers
245 views

How to play video in Unity Free on Android (may be using external open source libraries like ffmpeg)

I need to play video file in my game and I am using Unity Free. The solution with rendering images with a certain delay is not suitable for me, because my video file is made from over than 300 images. ...
2
votes
2answers
89 views

AndEngine rotate all connected bodies

I have created below hexagon structure in Andengine with box2D physics extension. I want to rotate whole structure with respect to center when other ball collides with the structure using physics. ...
0
votes
1answer
124 views

Why table in libgdx game give wrong position

Can anybody guide me, I am creating a table in libgdx game on menu screen to set different buttons on my screen. here is the code for table draw table.setBounds(0, 0, Gdx.graphics.getWidth(), ...
0
votes
0answers
77 views

Google Play Game Services Logcat warning

I'm getting the following warning in my LogCat output. I have implemented Google Play Games Leaderboards which, after some research, it appears this warning is related to.... I would point out ...
0
votes
0answers
151 views

Android: Asynctask causes ANR (very) intermittently

I'm doing some work on an AsyncTask (creating game objects, loading resources etc) while displaying a static splashscreen. The problem is that every now and then, the AsyncTask doesn't run and the ...
7
votes
5answers
1k views

How can I mark levels as “complete” in a way that prevents cheating?

My first thoughts about marking levels complete is to just write the information to a file upon level completion and load that in once the app is opened up again. But how could I keep this safe from ...
2
votes
1answer
183 views

Libgdx Actions interpolation Fadeout

In libGDX there is a simple fade Interpolation that speeds up towards the end of the action animation. But what I am looking for is the reversed of it, it needs to start fast and slow down near the ...
0
votes
1answer
257 views

Android Game-Loop (rendering & logic removed, but still 'skipping frames')

Overview Guys really hopeing for some help here. My game loop is based on code from Fix Your Timestep!. I've read the article more than a few times, but I can't quite work out what exactly is ...
0
votes
0answers
32 views

Porting from WP7 to WP8 and Android (Monogame) - Screen Scaling

Sorry if this seems like a silly question but I have ported a game across from WP7 to 8 and noticed the game didn't auto scale so the game was just over a quarter of the screen. which lead me to the ...
0
votes
1answer
189 views

Game sprite far too small

So I started writing an Android 2D game. I've come to the point where I want to display my character image on the screen. I read that most sprites have a resolution of 16*16, or more. So I created an ...
0
votes
1answer
116 views

Port sandbox flash game to Android and iOS

I'm want port my sandbox game to Android and iOS. Game written in AS3 (i'm use my simple 2d engine on stage3d). What do you recommend I use? Haxe + OpenFL MonoGame + Xamarin (C#), or other 2D engine ...
-2
votes
1answer
157 views

How can I parse the leaderboard data returned from Google's API?

We're developing our first Android game and we want to get leaderboard data from Google Play Game Services and use the score data from the different leaderboards. I am able to use Unity's WWW class ...
8
votes
1answer
1k views

Taking advantage of multithreading between game loop and openGL

Talking in context of a game based on openGL renderer : Let's assume there are two threads : Updates the game logic and physics etc. for the in game objects Makes openGL draw calls for each game ...
18
votes
4answers
2k views

How can I “publish” an Android game without Google Play?

I'm new to development and trying to get a sense for the obstacles to publication If I need to circumvent the Google Play app store, can I publish a game to a website that people can visit in a ...
1
vote
0answers
70 views

Having unity game saved to SD card can't run on certain devices but after it's moved to phone memory it works.. why?

A game I made ends up not being able to run (it shows the loading screen but after that it gets stuck), happens on nexus 5, sony experia z3 and I found this happening because the game was downloaded ...
2
votes
1answer
730 views

Cocos2d-x supporting multi-resolution using density independent pixels

Is there a way to use Density Independent pixels(dp) in cocos2d-x? I am developing an Android game using Cocos2d-x 3.0. The Android reference ...
0
votes
1answer
189 views

Capping framerate independently of logic updates in single-threaded Android Gameloop

My game is currently using the below game loop (this is an OpenGL ES 2.0 game, therefore the loop-work takes place on the rendering thread in the provided onDrawFrame method). Currently my loop ...
0
votes
1answer
113 views

Framerate on AIR for Android - Actionscript 3

I am currently working on making Android apps using AIR for Android. This is a sample file and package that I am running to test the FPS and Memory usage of my application while it is not even doing ...
0
votes
2answers
214 views

Mysql database reading and writing [closed]

In my Libgdx application I would like to be able to connect to a mysql server securely and read and write data from it without other users injecting, or changing information. I've found this: ...
1
vote
1answer
152 views

LibGDX Touch Delay

So I'm trying to make a game in which you have to tap things fast, but the thing is - after you touch something (the area I chose), it takes like 2 more seconds to register another touch. Now, I think ...
1
vote
1answer
43 views

Drop in quality of rendering of texture [closed]

Platform: Android OpenGL ES 2.0 I'm drawing a texture on to a square using OpenGL ES2.0. The texture scrolls infinitely in vertical direction. The rendering quality drops very rapidly after a few ...
0
votes
0answers
630 views

Implement Camera (former: CCCamera) v2 in cocos2d-x v3.3

we want to port camera code from cocos2d-x version 2 to version 3.3 with the goal to imitate the behaviour of a CCCamera in cocos2d-x version 2 exactly. You can assume that values for "eye" and "up" ...
0
votes
1answer
149 views

Is it possible to create sqlite database only for android in LIBGDX game? [closed]

I want to know if I can just implement sqlite database for android in libgdx game? Also if this is not possible then may I know the simple way to integrate libgdx game to just store scores in sqlite ...
0
votes
1answer
74 views

Making dialog “clips” in libGDX or in general?

I'm new to libGDX (I just released my first game), and I've started thinking about things I'd like to do next time. One thing I really want to do is, have those story type movies, where you tap the ...
1
vote
0answers
90 views

I'm 14 y/o and I'd like to publish my app on the Play Store! [closed]

I'm 14 and I made a game for Android and I would like to publish it. My question is that how could I publish my app on the Play Store. As a minor is it legal for me to publish it? I wouldn't like to ...