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

learn more… | top users | synonyms

-2
votes
2answers
348 views

Absolute newb Java programmer seeks “dumbed-down” tutorials/resources [closed]

I understand the basics of Java and Object Oriented Programming so far, and am still working on refining my understanding of it. I have sought several different resources - two books and Oracle's own ...
1
vote
2answers
740 views

CCSpriteFrameCache: Frame '%s' not found

I have just started using the Cocos2D library for Android. I am trying to make a walking bear animation. For that I am using a CCSpriteFrameCache, but I'm getting a "frame not found" error in the ...
3
votes
2answers
2k views

Loading large bitmaps in Android

In a few games in the Android Market/Google Play Store, huge bitmaps are drawn onto the screen. For example, the game Unicorn Dash: and Robot Unicorn Attack: I'm assuming the entire island ...
-4
votes
1answer
1k views

What is the best framework to develop games for Android? [closed]

I have an Android 2.2 device and I want to try to develop games for it. I have three questions: What is the best frame work to develop games. Are there any good JavaScript ports or frameworks ...
1
vote
1answer
851 views

Keeping track of onscreen objects in opengl es on Android

In a small game Im working on I was able to implement ray picking with an opensource 3d engine called min3d but I cant figure how to keep track of what object is onscreen. I will some times have ...
3
votes
1answer
235 views

Why did an Android update disable the textures in my game?

I recently updated my tablet to Android 4.0.3 and now the textures for my game do not show up. I'm using OpenGL-ES 2.0 for my engine. It worked fine when I was running android 3.0. Is there any ...
1
vote
1answer
349 views

Navigation using Marmalade

How do I achieve navigation to different views in Marmalade? Like what using startActivity(intent) in Android does. I know that there's only a single view in Marmalade, but still couldn't figure out ...
3
votes
2answers
8k views

Create an infinite scroll using CCParallaxNode in Cocos2D-X

I'm trying to create an infinite scroll using two images in a CCParallaxNode, making one move to the end of the scroll when it gets off the screen. I have tried several implementations but none has ...
7
votes
2answers
6k views

How do I find the angle between two vectors?

I have 3 points on my screen: a = a point which is (c.x, 0) makes a line pointing straight up b = a user input touch, can be anywhere on the screen c = a moving object a _______.________ | ...
3
votes
4answers
3k views

OpenGL gradient banding on Samsung Galaxy S2 Android phone

I've got a live wallpaper out on the market which uses OpenGL to render some basic shapes and a flat plane. The simple lighting creates a gradient effect across the plane, which looks fine on most ...
1
vote
0answers
406 views

Mono and/or MonoGame for Android and iOS Experiences [closed]

I was wondering if anyone has any experience of using Mono and/or MonoGame for cross platform game development, particularly with regards to Android and iOS games development. Key things are; What ...
1
vote
0answers
4k views

Building for the Android errors Unity3D [closed]

EDIT: After doing some research on my own I found that by deleting the debug.keystore file everything fixed itself. So currently I'm exporting my game strictly for testing to the Android. However, ...
-2
votes
3answers
374 views

Client Server what do i need?

Simple question if the Client is Android Game App That send data to the server for Storing/Recalling Data as well as calculating data? I hear sql is good for simple database stuff.what is good for ...
1
vote
1answer
1k views

Android APK export duplicating libgdx assets folder

I'm developing a game using libgdx targetting Java desktop and Android. For the assets I have a "data" folder inside the "assets" folder in the Android project. Then, I link it from the desktop ...
1
vote
1answer
534 views

Random Sprite Speed

I followed the Rain Catcher tutorial from libGDX and I made some modifications to the code, allowing the rain drops to appear faster. But I cant figure out how to make the raindrops fall at random ...
0
votes
1answer
1k views

Virtual screen size with libgdx and GLES 2

I've been trying to use a virtual screen size for my libgdx desktop-android game. I'd like to always use a 16:9 aspect ratio but with a virtual screen size so everything would adapt automatically ...
4
votes
3answers
2k views

I finished “Beginning Android Games”, should I use its framework?

I've worked through Mario Zechner's "Beginning Android Games" and have made my own pong and asteroids game using the framework used in the book. I have also downloaded the source code for Replica ...
4
votes
1answer
2k views

Android how to get opengl 3D coordinates in ontouch event

I created a cube in opengl and it rotates in ontouch event. To to this I created a CustomSurfaceView as follows public class CustomSurfaceView extends GLSurfaceView { @Override public boolean ...
2
votes
1answer
254 views

How should I determine direction from a phone's orientation & accelerometer?

I have an Android application which moves a ball based on the orientation of the phone. I've been using the following code to extract the data - but how do I use it to determine what direction the ...
0
votes
2answers
4k views

Android Java rectangle collision detection not working

I had been hard coding a collision detection system which was buggy. Then I came across using rectangles for collsion detection. So I put it all in and it does not work, I put a log in and it never ...
-1
votes
1answer
4k views

Receive UDP packet in android [closed]

I'm sending UDP packet to android over a wireless network from some other software . how can I receive that in android ? should I write a client in android to get the data?
3
votes
1answer
2k views

Open GL Android frame-by-frame animation tutorial/example code

My first question was asked wrong, so I need to ask again :) I found out, that I will have to do an OpenGL animation for my Android game. The closest (known) example is Talking Tom (but I don't know ...
1
vote
1answer
120 views

Initializing OpenFeint for Android outside the main Application

I am trying to create a generic C++ bridge to use OpenFeint with Cocos2d-x, which is supposed to be just "add and run" but I am finding problems. OpenFeint is very exquisite when initializing, it ...
-1
votes
1answer
330 views

How to integrate ad mob ads in cocos2d android portal?

Could anybody tell me how to integrate ad mob ads in my cocos2d android app.
1
vote
1answer
739 views

How can I place a ProgressBar in Android using Cocos 2d?

I want to place a horizontal progress bar in my Android application and I want to change its progress color. I used the following code, but the progress bar is not being displayed. CCProgressTimer ...
1
vote
1answer
375 views

How do I generate a level randomly?

I am currently hard coding 10 different instances like the code below, but but I'd like to create many more. Instead of having the same layout for the new level, I was wondering if there is anyway to ...
5
votes
1answer
9k views

OpenGL ES 2 on Android: native window

According to OGLES specification, we have the following definition: EGLSurface eglCreateWindowSurface(EGLDisplay display, EGLConfig config, ...
1
vote
1answer
1k views

Android frame by frame PNG animation

I am new at Android game development. I have done some apps before, but none of them are games :) So, I wanted to do a frame-by-frame animation of PNGs. I tried with AnimationDrawable, but ...
1
vote
1answer
4k views

How does the rectangle bounds (x,y,width,height) in libgdx work?

I cant work out how to use the rectangle bounds in libgdx I am currently using the superJumper example and have 2 or 3 examples with that are: <!--this is the pause button in the top right ...
0
votes
1answer
2k views

Android device - C++ OpenGL 2: eglCreateWindowSurface invalid

I am trying to debug and run OGLES on Native C++ in my Android device in order to implement a native 3D game for mobile smart phones. The point is that I got an error and see no reason for that. Here ...
3
votes
2answers
404 views

Creating new games on Android and/or iPhone

I have a succesfull Facebook poker game that is running very nicely. I was asked if I can port my game to other platforms - mainly mobile devices (phones as well as tablets, would tablets need a ...
3
votes
1answer
518 views

Photon alongside LibGDX

Can anyone point me to a possible implementation of the Photon network engine along with LibGDX for Android? Or any multiplayer networking SDK for all that matters. From reading source code it ...
0
votes
1answer
4k views

How to know if an actor is touched in libgdx?

I am using "Gdx.input.isTouched()" in the render method of my Screen method, to know where is touched, but when the touch is dragged in the screen, it also activates the events i want only when an ...
1
vote
1answer
363 views

New way of integrating Openfeint in Cocos2d-x 0.12.0

I am trying to implement OpenFeint for Android in my cocos2d-x project. My approach so far has been creating a button that calls a static java method in class Bridge using jnihelper functions ...
2
votes
2answers
762 views

Importing a windows project into android using cocos2d-x

What I am trying to do today is to import a full project to Android, but no tutorials are available for that that I have seen. My approach was to create a new android project, copy all the classes and ...
0
votes
1answer
575 views

Android Loading Screen: How do I use a stack to load elements?

I have some problems with figuring out what value I should put in the function: int value_needed_to_figure_out = X; ProgressBar.incrementProgressBy(value_needed_to_figure_out); I've been ...
4
votes
1answer
3k views

Can you embed a Unity3d mobile project into an existing native mobile app?

I am creating an application for both Android and iPhone that will have a few mini games in it. I would like to create the non game section in native Android and iPhone. My question is, is it possible ...
2
votes
2answers
659 views

In OpenGl ES 2, should I allocate multiple transformation matrices?

In OpenGl ES 2, should I declare just one transformation matrix, and share it across all objects or should I declare a transformation matrix in each object that needs it? for clarification... ...
4
votes
1answer
211 views

Clicking on clues and other objects in a 2D cluedo like game

I'm a java/android programmer, but I don't have any experience in game programming, I'm already reading proper books, like "Pro Android Games", but my concerns are more about the ideas behind game ...
-1
votes
2answers
342 views

How to spawn a character at certain point and walk to a set point

I am making a game where I have a background image of a neighborhood. Each location has a different number of customers that are generated to walk on sidewalks. They all walk to a specific location ...
1
vote
0answers
438 views

Adding Libxml2 to an Android project under Cocos2D-X

I am having problems porting Libxml2. I like it because it works under windows like a charm with <libxml/parser.h>. When I reference the libraries I just cannot find the right path to them, ...
7
votes
1answer
4k views

Box2D Difference Between WorldCenter and Position

So this problem has been brothering for a couple of days now. First off, what is the difference between say Body.getWorldCenter() and Body.getPosition(). I heard that WorldCenter might have to do ...
3
votes
3answers
243 views

When is it best to load screens in mobile games?

In the develpment of a mobile game, is it a good to load all the screens at the start of the game, or destroy and create new ones during the game? I am doing the second thing, because I suppose that ...
-1
votes
2answers
148 views

How do I fix these compiler errors in Apple Crunch?

I've been looking around and I finally got the full source code for a game called Apple-Crunch from Google Code. But when I put it into my project, the source code included so many errors in the ...
2
votes
2answers
759 views

Horizontal wrapping with AndEngine

How would one implement the effect of a sprite disappearing on one side of the screen and appearing on the other using AndEngine? Like in Kid Icarus, seen here at around 1:22.
2
votes
2answers
437 views

Implementing unlockable items on Android

I know this would be a beginners question (some of you might think) but I would like to know different approaches for this. I have a game with lets say 20 unlockable items, at the main menu I have a ...
3
votes
1answer
671 views

Any good smartphone simulators available?

I'm trying to find a good smartphone simulator to test HTML5 games on. Doesn't matter if it is only 1 phone or a library of phones, iOS or android. As long as it's as close as it can get to the ...
2
votes
2answers
415 views

What frameworks are the best for automated game testing (self running) for Android games?

Could you please recommend any test automation frameworks that would allow the creation of self running demos/tests for Android games? I would like to create a "fly-trough" for my levels, create ...
1
vote
1answer
513 views

Distributing an Android game with plugins via the market

I'm new to Android development, and was wondering how the following could be achieved within the confines of the Android market as a distribution channel: One main application, which handles the ...
1
vote
2answers
2k views

How do I get the source code from a Google Code game project?

I'm trying to get the Hedgewars source code. When I went to the downloads tab, it doesn't specify which is the actual game. I tried downloading it using the SVN Checkout on Tortoise, but it seems ...