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

learn more… | top users | synonyms

1
vote
1answer
3k views

Using NinePatch in libGDX for Loading Bar

I am trying to create images for a loading bar in libGDX. I came across the NinePatch class and I was hoping to use it for this loading bar, since stretching images with a plain Texture or Sprite ...
10
votes
2answers
630 views

How can I tactfully ask users to help support my free game?

So, I have a game that has a few dedicated users, but very few actual users. It is a free game on the Android marketplace, supported via ads. I've been toying with the idea of periodically popping up ...
0
votes
1answer
1k views

Creating Projectiles (Beam)

I am making a simple shooter game for Android where the player is a human and is being attacked by aliens. How would I make a laser beam, so that when the user touches the screen or presses the ...
4
votes
5answers
2k views

Is it worth planning to be cross-platform in mobile game development?

Disclaimer: my goal is not to use cross-platform frameworks like Unity. I am currently planning a mobile game which I intend to first launch on iOS. However, I am wondering if it is better to write ...
1
vote
1answer
2k views

OpenGL es glDrawTexfOES() 2D texture is totaly black no color

First of all I know this is a duplicated question and I check out another questions but didn't helped! I'm trying to convert my android game from canvas system to the GL10. After lots of googling I ...
3
votes
1answer
942 views

OpenGL ES drop shadows for 2D sprites

I've got a an OpenGL scene rendered with a bunch of sprites, and I'd like to automagically add drop shadows to all of them. Here's a picture showing what I mean: The scene uses orthographic ...
0
votes
1answer
894 views

Flash Professional vs FlashBuilder 4.6 for mobile app development

From the marketing materials I see online, it seems to me that FlashBuilder 4.6 is a subset of the functionality available in Flash Professional. If I understand correctly, mobile app development ...
4
votes
1answer
6k views

Using the AssetManager in LibGDX

I am trying to use the AssetManager class in LibGDX and I understand how it works but I am trying to implement a loading screen. I have followed the AssetManagerTest.java file here, but I am having a ...
1
vote
1answer
1k views

Z rotation causing skew Android OpenGL ES 2.0

If I rotate about the X, or Y axis there is no skewing however for a pure 2D game that does not help me. When I try to rotate about the Z axis however the quad I am rendering for the sprite starts to ...
2
votes
2answers
4k views

Java game engine for android and desktop [closed]

I want implement 2d game as desktop application. And after development move it to android platform. Engine should be have input and network managers. Help me choose.
1
vote
0answers
318 views

Which game engine is more worthwhile for mobile game development [closed]

I have been thinking of starting to learn mobile game development. I recently learned that there are three popular game engines available for android: AndEngine cocos2d-android libGdx you guys ...
4
votes
1answer
1k views

In a component/entity system, what's the correct way to implement entity-specific components?

I'm trying to create a basic C/E game engine for Android, and I'm trying to re-create pong as a basic warm-up. I currently have a EntityManager class that contains a list of all the UUIDs for its ...
6
votes
1answer
1k views

SQLite in libGDX

Does anyone have an example of how I can use SQLite in libGDX? I have a class in my original Android code that allowed me to easily access a database but I can't seem to find anything equivalent to ...
2
votes
1answer
2k views

Are OpenGL Textures more memory efficient than Android Bitmaps?

I have a custom application that deals with many Bitmaps tiles that are 256x256 images (png,jpg). I'm currently using the View 2d canvas and bring in all images as RGB_565. Although I'm generally ...
0
votes
2answers
1k views

are there any alternatives to developing android apps other than with eclipse [closed]

Ever since I installed the android sdk and avd manager in eclipse for java developers, it's been pretty simple to create apps for the mobile device. The only issue I have is eclipse is way too slow ...
1
vote
1answer
693 views

Polygon Collision Detection Android

I am starting to try and figure out polygon collision detection in my Android game. I am currently doing pixel level collision detection and it just seems to be too slow (though it works). I was ...
1
vote
2answers
482 views

How to keep the questions in Math game application ?

I would like to create a simple Math game application in android phone but I don't know what kind of data storage which I should use to keep the sets of numeric for the questions. At this time, I am ...
3
votes
1answer
266 views

Can a 3g network work for this project and is my understanding correct?

I want to make a game for the android phone using unity. As you can tell by my last post i wanted to use networking to make this happen. I decided unity would be a good choice and in no time i was ...
3
votes
1answer
2k views

AndEngine Moving a Connected Texture and Physics Body

In AndEngine, many times we create a TextureRegion for our sprite. We can move this region around the scene but when I connect that region to a physics body I end up being able to use either one to ...
0
votes
1answer
1k views

android game using bullet and libgdx

i'm developing a android project for school and i'm currently using libgdx for rendering. It performs quite well, but it lacks a 3d physics library. So i searched and found that Bullet physics engine ...
2
votes
1answer
1k views

How to setup JBox2D

I resently downloaded the JBox2D but how do I set this up?.. Its jbox2d-2.1.2.2 All I can see is a bunch of code and folders. Any websites with step by step tutorial?? You know how??
5
votes
4answers
2k views

Which Side Was Hit?

I am working on an Android game and I have two objects A and B (both rectangles) and when they collide I simply want to know which side of B was hit. I have detected the collision fine, but I am ...
-3
votes
2answers
532 views

Is Android not good for game development? [closed]

As I know Android is running on Java VM on top of Linux kernel. These so many layers may lower down the performance (FPS,etc.). Is Android still good for game development then?
1
vote
1answer
808 views

Relating a point after an image is panned and zoomed

For Android, let's say you have a image of a map that you draw inside your view. On this map there are many, many "hot spot" locations where you want your user to be able to select. Given that there ...
2
votes
1answer
3k views

Pop up screen on libgdx

Hi I want to make a pause and credits screen for an android game with libgdx the idea I have is creating a new screen like a popup that pauses the background screen and then, I can render the screen I ...
0
votes
2answers
976 views

Havok SDK and Android, where to begin

The Havok games SDK is cross platform and supports android according to this link http://www.havok.com/solutions/mobile-game-developers I want to explore the sdk but don't know from where to begin, ...
0
votes
1answer
797 views

How do I perform a slice effect like Fruit Ninja?

I want to do slice effect like in Fruit Ninja. Is there any class in Cocos2D like CCBlade? How can I use the CCBlade in Cocos2D on Android?
-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
962 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
763 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
451 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
575 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
979 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 ...