Operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com

learn more… | top users | synonyms

1
vote
2answers
132 views

Android Activity access Unity Classes

I have made my own C# classes in Unity, is there any way I can access these classes from the Android Activity that starts the UnityPlayer? Example: I have a C# class called testClass in Unity: class ...
0
votes
2answers
56 views

When to scale bitmaps in android game

I've just started developing my first game with android using SurfaceView. I scale my bitmaps to support different screen sizes. But I don't know it's better to do the scaling when loading the bitmaps ...
0
votes
2answers
367 views

Why is mesh baking causing huge performance spikes?

A couple of seconds into the gameplay on my Android device, I see huge performance spikes caused by "Mesh.Bake Scaled Mesh PhysX CollisionData" In my game, a whole level is a parent object containing ...
0
votes
2answers
133 views

Box2d world width and height ratio with screen width and height

I have view, for example GameView which extends SurfaceView . I have integrated Box2D physics in GameView. I have two widths , GameView width, height and Box2D physics world width ,height. I need to ...
-1
votes
2answers
116 views

How to translate along Z axis in OpenTK

I am playing around with an OpenGL sample application I downloaded for Xamarin-Android. The sample application produces a rotating colored cube I would simply like to edit it so that the rotating cube ...
-1
votes
2answers
359 views

Publish android game only for 800 x 480 resolution in portrait mode

I have developed a game in libgdx. I worked for long and after finishing, I found that the game runs perfectly only on devices with resolution 800 × 480. I found this solution: ...
0
votes
1answer
1k views

Android Bitmap: Collision Detecting

I am writing an Android game right now and I would need some help in the collision of the Pawns on screen. I figured I could run a for loop on the Player class with all Pawn objects on the screen ...
0
votes
1answer
466 views

Saving an interface instance into a Bundle

All I've have an interface that allows me to switch between different scenes in my Android game. When the home key is pressed, I am saving all of my states (score, sprite positions etc) into a ...
0
votes
1answer
289 views

Should I render all of my HUD views to a single SurfaceView?

I'm using a SurfaceView and canvas to implement a game HUD, title screens etc., by overlaying standard Android view widgets over my SurfaceView. This works reasonably well and maintains an acceptable ...
0
votes
1answer
371 views

To stop Spite animation scrolling along the background in openGL ES

After using the endless road algorithm as described here, I also implemented the scrolling of walls along with it. I have the walk animation of the person which is stationed at the center of the ...
-1
votes
1answer
161 views

in-app purchase in cocosSd-x 3.0

I am working within a team, and we're at the point of finishing our first cocos2d-x c++ application. We want to add in-app purchases. for what, we made a search for this. We found 2 solutions: 1- ...
-1
votes
1answer
172 views

Recommended aspect ratio for android / smartphones?

I'm making a game for android and would do it in 720p, but the phones got all different aspect ratios. Also thinking about a ios and windows phone port later. When the aspect ratio does not match, ...
-1
votes
1answer
407 views

Android OpenGLES 2 ray picking, resulting coordinate jumpy in certain spots?

I am trying to implement object picking based on touch coordinates via an intersecting ray test. I am having trouble finding information on converting the touch coordinates to the coordinate system ...
-1
votes
1answer
629 views

2d triangle with OpenGL-Es on Android

hey I am trying to draw a triangle on opengl es . I just followed a tutorial to do it. eventhough everything seems to be fine it does not work. everytime I run my code it sends me back to main menu. ...
-1
votes
1answer
1k views

Create Box2D and engine polygon Box2D body without sprite

Hey I have created my body using following code: (please read full description) Body polyBody; final BodyDef mBodyDef = new BodyDef(); mBodyDef.type = BodyDef.BodyType.DynamicBody; ...
-1
votes
1answer
160 views

Circle collision with a specific tile on a grid

Does anyone know of a good tutorial that will show collision detection on a 2d game platform without using any engines?
-1
votes
1answer
921 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 ...
-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 ...
-4
votes
1answer
262 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) { ...