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
549 views

Opengl scrolling world guidance

I'm looking for a tutorial about how to implement a horizontally scrolling background with various objects that auto-scrolls as your character/player moves just like various car/motorbikes games. ...
2
votes
2answers
405 views

What causes “ETC1 cannot be resolved” errors when building AndEngine?

I just got the latest AndEngine code from Mercurial, added Android 1.6 to my Order/Export tab, and cleaned everything (including a "Fix" command as instructed by the console). Regardless of which ...
3
votes
1answer
878 views

Developing for Chrome App/Android?

I have been developing for win7 mobile (XNA/silverlight and will continue to do so, love everything about it) but I wanted to branch a few of my more polished games to google app store online, and ...
6
votes
3answers
284 views

How can I deploy an Android game without going through the marketplace?

How do I deploy an Android app without publishing it in the marketplace? Let me back up a minute. I have short release cycles (2-4 weeks or less), and I would like to release a partially complete, ...
0
votes
1answer
575 views

How can I create a game as a live wallpaper?

I have a space shooter game for Android and I want to implement it as a live wallpaper. Any ideas on how this can be done? Or better yet can anyone help me / provide a template that calls a "ship" ...
2
votes
2answers
454 views

How do I handle user input with good class structure/architecture for an Android game?

How do I handle user input having "good" class structure and following normal game architecture*?(see below). At first I didn't think this question was Android specific, although, after seeing a great ...
1
vote
2answers
3k views

What is an appropriate OpenGL(ES)-based game engine meeting these criteria?

I want to try my hands on a little shooter on the Android platform, and I'm looking for a full-featured 3D game engine. I can't afford to pay more than 400 € for a license, so expensive engines are ...
1
vote
5answers
2k views

Is there a SDK for 2D games that will deploy to PC, Flash and Android? [closed]

Is there such thing as an SDK or toolset that can produce Windows, Flash, and Android executables from the same source? Something like "write once, run in all three platforms?"
2
votes
0answers
505 views

How can I keep a SmartFox server connection alive while waiting for a client to connect? [closed]

I am making a game using SmartFox Server. During testing, if I take a few minutes before loading the game, SmartFox stops running and I can't connect. So I then have to restart SmartFox, which is very ...
0
votes
1answer
1k views

Equivalent of glDrawTexfOES in OpenGL ES 2.0?

I have been using the glDrawTexf extension to draw labels in my Android app using OpenGL ES 1.1. But I have now moved to OpenGL ES 2.0 and can't figure out what is the equivalent of this call? I ...
-1
votes
1answer
1k views

Tower Defense Game SurfaceView Structure

I am building a tower defense game for android where you have to defend the base from mobsters who have a bounty on your head. You start out with a certain amount of life, every time an enemy reaches ...
0
votes
1answer
1k views

How do I implement a subclass of CCSprite?

Can someone tell me how to subclass CCSprite on Android? I've added this snippet of code into my CharacterSprite: public static CharacterSprite sprite(String fileName) { return new ...
8
votes
3answers
1k views

Android threads trouble wrapping my head around design

I am having trouble wrapping my head around game design. On the android platform, I have an activity and set its content view with a custom surface view. The custom surface view acts as my panel and I ...
8
votes
3answers
749 views

How should I structure my classes to allow for multithreaded simulation?

In my game, there are plots of land with buildings (houses, resource centers). Buildings like houses have tenants, rooms, add-ons, et cetera, and there are several values that have to be simulated ...
2
votes
1answer
1k views

Getting errors while compiling Irrlicht for Android

I was trying to compile the Irrlicht port for Android but I continue getting errors while following these instructions. I created a jni folder inside my project folder and the contents looked like ...
-1
votes
1answer
669 views

Best Android gaming engine for Billiards game? [closed]

What is the best engine/way to go with when implementing a 2D billiards game? I am thinking about Emini Physics Engine, which is free for use and stuff, but maybe you can give me some pitfalls about ...
-4
votes
1answer
267 views

Why does this CCSprite subclass code throw an exception?

I have one problem in inheriting CCSprites in Java. Here is part of my code: public class Block extends CCSprite { static Block temp=null; static Block newBlock(tetrominoTypes blockType) { ...
2
votes
2answers
2k views

What is an efficient way to deal with large, scrolling background images?

In my mobile game you basically you just fly up (infinite height) and collect stars. I have many quite large background images, scaled down so that their width is the same as the device width. Then ...
6
votes
4answers
430 views

Adaptive Characters: AI Solution Needs a Problem

Have sophisticated adaptive programming, will travel - so to speak. I'm part of a group that developed sophisticated learning / adaptive software for robotics. The system "thinks" via its simulator, ...
2
votes
4answers
3k views

What 2D engine can I use to port my flash game to iOS and Android? [closed]

I would like to port my 2D flash game to Android and iOS. Is there any cross platform engine you could recommend? Corona is the only promising one I have found so far.
1
vote
2answers
616 views

Enemy class architecture

I'm developing a game for Android in Java. I would like to know how a good Enemy class architecture could be implemented. I've created an abstract class called Enemy. It stores common properties like ...
2
votes
1answer
1k views

2D physics performance on iPhone/Android using Unity 3D?

I've been looking into making 2D games with Unity. One thing which concerns me is the performance of the physics engine. Since Unity is a 3D game engine I'm going to have to assume it uses a 3D ...
0
votes
1answer
4k views

Loading Bitmap by name in Android

Currently, I'm loading images as follows: sampleimage= BitmapFactory.decodeResource(context.getResources(), R.drawable.sampleimage); This automatically chooses the correct image from the ...
0
votes
2answers
221 views

Which parts of my game should be Activity objects?

Currently my game has an Activity for the splash screen then it starts the main class activity then it starts a menu activity then from the menu there is an activity for each option (only two at the ...
2
votes
2answers
2k views

How are the graphical effects in the Android game Orbital created?

I would be very grateful if someone could tell me how the graphics (and in particular, the lighting effects) for this game, Orbital, are created. Would it be OpenGL? For some background: I'm new to ...
-1
votes
1answer
954 views

Collision detection problem

I am a novice in android. It's my first game, so I am trying to make a frogger clone. I am getting a problem in collision detection. In logcat, even though the frog is not moving and not colliding ...
11
votes
2answers
9k views

How different is Java for JRE vs Java for Android?

I'm new to all this game developing, and I'm starting to learn java because I was told it was a great way to start. I want to later on create games for the android market, and want to get a good view ...
1
vote
2answers
730 views

Game Loop: Should resources be initialized in the game loop or in the respective classes? (both?)

For example, lets say we have an enemy class in my Android game project. I am initializing the enemy bitmap to be used with certain sprites in my game loops init. I am then calling the respective ...
4
votes
2answers
1k views

2D game - Missile shooting problem on Android

I have to make a tank that sits still but moves his turret and shoots missiles. As this is my first Android application ever and I haven't done any game development either, I've come across a few ...
13
votes
6answers
871 views

Phone for Android game development [closed]

I've been developing casual iPhone/iPod Touch games touch for about two years. I'd like to port some games to the Android platform. Since I'm stuck w/ a two year iPhone contract I don't want to get ...
1
vote
2answers
593 views

Android BitmapFactory.decodeStream loading BGR format?

It is very odd.I want to load .png file via asset manager which is provided by android sdk. AssetManager manager; /........./ BitmapFactory.decodeStream(manager.open(path)); It returns ...
1
vote
1answer
288 views

Why does this code work for a stationary object, but not a moving one?

I use the following chunk of code to make bullets that fire towards the player's ship: @Override public void onTimePassed(final TimerHandler pTimerHandler) { pTimerHandler.reset(); ...
2
votes
2answers
3k views

What would be the simplest way to create a 2D board game for Android?

I'd like to create a very simple 2D board game for Android, it would be a concept/mockup so I can see how the game works out. Let's for the sake of this question that it's a clone of Othello - board ...
1
vote
1answer
921 views

Android : Some textures not loading after resuming twice

This is an odd one. When I press home and then restart my game I reload all my textures (checking glIsTexture on the id's first). If I do this once, all textures load as expected, but if I do it ...
0
votes
2answers
660 views

Graphical Android game: Bad performance in some situations

I am developing a simple graphical game for Android (Java and OpenGL ES). There is no high-end graphics involved, basically a few (less than 10) sprites and some (about 10) dynamically drawn ...
8
votes
1answer
1k views

How does an Input Pipeline work?

I found this article on implementing an input pipeline for Android, but I don't really understand how it works. I also don't completely understand the programming concept of a pipeline or a pool ...
2
votes
1answer
855 views

Creating an Android Game using Java and c++

What's the best way to go about this? I've never coded using two languages before, let alone for an android phone
-2
votes
1answer
2k views

Objective-C to Java conversion for porting iPhone apps to Android?

can anybody help me to convert this objective-c code to android java. - (void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { if (_mouseJoint != NULL) return; UITouch *myTouch = ...
2
votes
1answer
373 views

Why does my game freeze when I try and display a menu?

I make a MenuScene when my Game loads, which grabs some intro text from levelData and displays it and a button to start playing the level. When the MenuScene is created and displayed in ...
1
vote
1answer
925 views

Android Fling Gesture, Animation And Collision - Resources?

I'm starting work on a 2D Android game where the player will put their finger on a game piece and do a fling gesture to throw the piece across the gameboard. I've gone through some Android ...
2
votes
2answers
447 views

How do I add a text area to my 3D android world

i am learning 3d game development on android , i was wondering is it possible to add text areas or any thing that allows a user to enter a text in a 3d world ? and how ?
0
votes
2answers
2k views

How can I handle a touch event in cocos2d for Android?

How can I handle a touch event in cocos2d for Android? And how to move a sprite using ccTouchesMoved?
2
votes
2answers
1k views

Best method for 2 layer tile based map scrolling

What is the best general approach to implement scrolling for a 2D tile based game? I need to scroll the map with a constant speed, lets say 2 pixels every frame (like in a top down shooter). The ...
4
votes
1answer
797 views

Is there a simple 2D Android barebones starter project?

I'm looking at creating a tower-defence-style game on Android, developed in Java. I'm spending a lot of time trying to just get a background image (drawn onto a canvas) that pans/zooms within the ...
-1
votes
2answers
2k views

Android NDK - moving .so files from one project to another

I have a small project I've coded for Android that uses a small about of NDK/JNI code. I'd like to share this code between two projects but I'm having little luck so far. First off, I've tried to ...
1
vote
2answers
781 views

Cocos 2D putting things on the cocos thread or not?

We are using Cocos 2D for Android and are unsure if it's a good thing to execute our non-ui tasks on the Cocos thread as a way to get the animations in our game to pause. What is the recommended ...
4
votes
1answer
2k views

OpenGL or Canvas?

I'm writing a 2D snake-like game for android (Hungry Birds, already in the market), and now I'm wondering if I should port it to OpenGL so that the performance can stay stable while I continuously add ...
1
vote
1answer
811 views

Bitmap to a custom coordinate pair when touched

I am completely lost and needed some help. I have a ontouchListener for a bitmap and know how to check if the touch was within the boundaries of the bitmap. But say I want the center of the image to ...
4
votes
1answer
1k views

Android Game Dev: Screen Scaling

This question is very closely related to a previous question of mine: Scaling a game view with letterboxes? My game runs at 480x800 right now but when the screen is smaller or bigger than that I ...
4
votes
1answer
2k views

Client/Server networking for mobile games

I am currently considering the pros and cons of two different approaches for networking an Android game. First, I will specify some details about the game and its requirements, and then I will ...