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

learn more… | top users | synonyms

-1
votes
1answer
1k views

Ball Physics for Android Game

I am starting work on a new Android game and I haven't had any experience implementing physics before. I am trying to steer clear of external libraries such as box2d, not just because I think it is ...
2
votes
0answers
1k views

AndEngine Making Chase Camera Follow Player

I am playing around with the AndEngine Race Game example. I am trying to make the camera follow the car as the player moves around. The Tile Map is larger than the player's screen but the camera ...
5
votes
2answers
2k views

How do I place a progress bar in andEngine?

I am developing game using andEngine. I need to place a progress bar in my game to denote time remaining in the game. Is there a built-in method for doing this in andEngine? My searches only turned up ...
1
vote
1answer
948 views

Can ARToolkit be used with Unity on the Android platform?

Does anyone know if ARToolkit can be integrated with Unity and work on Android phones? It would be helpful if you could share any examples or resources.
3
votes
1answer
2k views

Java code to get android phone hardware specs

Is there code available to view the specs of a phone that is running your application?
2
votes
1answer
1k views

Which is better for mobile games, PNG or SVG? [closed]

I want to make several 2D games for mobile platforms, mainly using Qt for iOS, Android, Symbian, MeeGo and whatever supported by Qt. I've made one game already using PNGs. Now I'm thinking of making ...
-3
votes
1answer
1k views

What can be the cause of sudden lag spikes in my Android game?

My Android game has sudden lag spikes sometimes. I know this is due to something going wrong. My phone has a 1GHz processor so there shouldn't be a problem. Basically I use the Canvas class to render ...
2
votes
2answers
753 views

Resume option on game in android

I made simple puzzle game. I want to add a "Resume" option to it, so when user opens the game, he can pick up where he left off last time.
2
votes
1answer
1k views

Relative and absolute position with sprites in libgdx

In libgdx, can i add a sprite as children of another an set it with the relative coordinates of the father and not the stage? Like in HTML when you add controls they are relative to its parent, but ...
-5
votes
1answer
448 views

Why do I get this null pointer exception? [closed]

When I execute this code it gives me the Exception Glthread 8 Java.lang.null.pointer MouseJointDef md = new MouseJointDef(); md.bodyA = _body; md.bodyB = _body; md.target.set(locationWorld); ...
4
votes
2answers
6k views

How can I save my game state so it can be resumed when my application resumes?

I've found that after resuming my game the whole engine is reloaded and application is reinitialized. I want to save engine state and in "onResume," resume the game process from where it left off. ...
1
vote
1answer
1k views

Android-Handling screen clicks for dynamically moving objects in a view

I have a kind of broad question to ask but I have to start some where so.....What is the best way to handle onscreen clicks for moving objects being drawn on a canvas in a view. Im registering the ...
7
votes
3answers
8k views

How to remove a box2d body when collision happens?

I’m still new to java and android programming and I am having so much trouble Removing an object when collision happens. I looked around the web and found that I should never handle removing BOX2D ...
14
votes
16answers
6k views

Cross platform mobile game design - any options? [closed]

Are there any frameworks or projects that support cross-platform mobile game development? At the moment Titanium does cross platform development, but doesn't support high end graphics APIs, so many ...
0
votes
2answers
2k views

Recreating assets after onResume()

After onPause is called for the GLSurfaceView the rendering surface is destroyed, along with all the textures, shaders and the like. On onResume() should the surface not be recreated and GLRenderer ...
-2
votes
3answers
2k views

Best Platform/Engine for turn based Client/Server Android game [closed]

I'm currently designing a turn based game for tablets. Initially for Android with porting to iOS later considered in design. I'm having trouble narrowing down the available technologies to even know ...
2
votes
2answers
2k views

Loading and rendering one large image or many smaller ones

I am working on an android game with a top down style view similar to the original GTA's or a scrolling version of Legend of Zelda. I have recently begun designing some prototype levels for the game ...
4
votes
1answer
571 views

android game development dilemma

I'm doing a android game project that has a character that can do basic movements like step, turn left, turn right, raise left arm etc. When combining those moves together, the character can do some ...
7
votes
3answers
2k views

Should I move the world or move the player?

I'm about to start developing a sidescrolling game where the players goal is to travel as far as he can in the horizontal axis before touching down. Note that I do not need to ever travel back on the ...
0
votes
2answers
1k views

The best option to multi-platform 2d mobile development [closed]

we are in the process of porting a game from iphone(made with cocos2s) to android(using the andEngine), and it has been a pain to do. So for our next project (a 2d game) we are thinking about using ...
1
vote
1answer
3k views

How to create a splash (loading) screen in cocos2d for Android?

How to create a splash (loading) screen in cocos2d for Android? I need a loading screen that shows my app name and after that the next scene will show automatically. Thanks
2
votes
4answers
1k views

Cross platform development tool/platform for the modern indie game developer?

I'm a Flash developer, but I think it's time to think of other avenues. Ideally I want to be able to write once but be able to deploy to as many different platforms as possible, so iOS AND ...
3
votes
1answer
954 views

What are the requirements for a sound file in android?

I am creating a game in Android and eventually I am going to outsource the sound effects. I have a few place holder sounds for testing and I have noticed a problem. I have an OGG sound file which ...
1
vote
1answer
1k views

Android - Using opengles through java vs c++

Ive been reteaching myself opengl so I can make a game on android. However Ive been struggling with how to build objects and scenes in opengl using c/c++ and passing them through the jni to the ...
8
votes
2answers
639 views

Keeping user's attention with tycoon style games

I'm developing a tycoon game, and with most games in the "genre", some in game things just take time. Making money, waiting for things to happen, etc. For mobile gaming (ios, android), how do I keep ...
2
votes
1answer
1k views

Ball bouncing and throwing, how to?

I was given a task to make a 3D game for Android, but since I never programmed games and opengl until now I'm totally lost on how and where to start. Right now I'm using libgdx framework to ease my ...
2
votes
1answer
742 views

How to move a 2d sprite to a target location while avoiding obstacles?

How can I get a 2d sprite to move to a position clicked on the screen, without bumping into other objects? I'm programming in java using the android API library I have created a surface view and ...
1
vote
1answer
2k views

Andengine Traffic game: moving sprites along path on map

I'm developing simple traffic educational game like https://market.android.com/details?id=cz.allianz.krizovatky.android . When the player taps on car sprite, it started to move with other cars. If ...
0
votes
1answer
388 views

Determining the X, Y co-ordinates in sprite sheets

I am new to Android COCOS2D and developing a simple game to start with. I am developing a game for kids in which the kids shall spell out the names of the fruits they select. I have developed the ...
11
votes
2answers
6k views

how should i develop my android game efficiently?

I have attached a image of a flow chart that i made in paint. The image shows how i want to develop my game. I want a game that runs great with smart coding that is easy to update and ad features ...
-1
votes
3answers
537 views

How to create solid human characters in MAYA, so that their hands do not cut into bodies while signaling hand sign?

How to create solid human characters in MAYA, so that their hands do not cut into bodies while signaling hand signs? Or can I make the characters solid in Unity? I create animations in MAYA and import ...
0
votes
1answer
3k views

How do I animate a spritesheet in cocos2d Android

I'm trying to animate a sprite in a spritesheet, the goal is to make the character walk from left to right. I subclassed CCSprite: CharacterSprite. this is my code: ...
2
votes
2answers
705 views

Detecting image curve to move a truck on this surface

I have an image background in surface view I want to move something according to black surface.But i can not do this using height of this image as it return same height.and one more thing ...
1
vote
0answers
660 views

Android Game Development Tutorial [closed]

Is there a really good tutorial on Android game development? Provide some links, please.
1
vote
2answers
768 views

How can I disable/dim the screen when I click the pause button?

I am working in an android game using cocos2d. I want to dim the background screen when I click the pause button. How can I do this ?
3
votes
1answer
245 views

How can I organize code for views efficiently?

I'm making a video game for the Android platform and I need advice on the overall set up of the activities and views in the code. I don't need actual code, psuedocode will do, but actual code always ...
1
vote
2answers
2k views

Rotate a bitmap and bitmap is getting blur in android

I am developing an android game. and in this I want to move an object along a Bezier path. my object is rotating with some angle on this curve. I used this piece of code: public void update() { ...
4
votes
3answers
2k views

What 3D engine should I use for the browser, iPhone, and Android platforms?

I have a C++ game that has a 3D engine that works only in Windows. I'm wondering which engine I should use so that it can be used in a browser or in iPad (iPhone) and Android environments? Does anyone ...
-1
votes
1answer
300 views

Touching on the particular sprite from the spritesheet

I want to click on the particular sprite from the sprite sheet. For instance i have fruits sprite sheet i want to click on the particular fruit. Thanks, Jubin Mehta
5
votes
3answers
357 views

Pricing an application

I decided to make my application for free but introduce donation button. For this I would use paypal. What are the advantages of this monetization model and what are other models to consider? My ...
1
vote
4answers
538 views

How can I support scrolling when using batched rendering for my tiles?

I have tiled map 100*75 and tiles are 32*32 pixel.I want to use batching for performance .I don't figure it out , because of my game needs scrolling and every frame i draw 22*16 tiles (my screen is ...
1
vote
2answers
591 views

Android pong clone, having trouble getting the paddle to stop at the screen edge

Well, I'm obviously very new to game dev and android. I've got a ball bouncing around (successfully detecting screen edge collision so that the bitmap stays within screen) and a paddle that the user ...
1
vote
1answer
4k views

How to rotate a moving canvas in Android

I am developing an Android game. In this game some trains are moving on tracks. I am able to move trains horizontally and vertically using two train images for horizontal train and vertical train ...
2
votes
3answers
2k views

How do I change my gravity and jumping logic to put the character at a specific height at a specific point in time?

I'm making a 2D platformer on Android using libGDX. One thing I've had a problem with recently is gravity and jumping. I found a few tutorials on the internet and was able to come up with this... ...
1
vote
0answers
644 views

How to Store the game score in android cocos2d

I calculates the score in game project using android cocos2d, in that game after finishing the first level it goes to the next level, so i want to store that first level score and also add next level ...
6
votes
3answers
4k views

building a game for different resolution phones

I am starting some tests for building a game on the Android program. So far everything is working and seems nice. However I do not understand how to make sure my game looks correct on all phones as ...
1
vote
2answers
2k views

2d engine/library for android in C#

I'm looking for a good 2d engine or library (that supports physics) for Android. I have a restriction - language should be C#. It's not a requirement to use Mono Droid, but it seems that it is an ...
8
votes
1answer
5k views

VSync / real 30FPS on Android

I'm working on a game which can't run at Full speed on some devices. On Tegra2, with many optimizations, performance is near 40 fps. The framerate is stable but animations aren't smooth enough, so i ...
1
vote
0answers
554 views

Context Menu on Surface View [closed]

I'm making a game for Android. The game interface consists of a SurfaceView, with objects represented by drawable Bitmaps on it. Is there a way to long-press one of the bitmaps and call a context ...
1
vote
1answer
1k views

Scaling and new coordinates based off screen resolution

I'm trying to deal with different resolutions on Android devices. Say I have a sprite at X,Y and dimensions W,H. I understand how to properly scale the width and heigh dimensions depending on the ...