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

learn more… | top users | synonyms

4
votes
1answer
663 views

My GLSL shader isn't compiling even though it should. What should I investigate?

I'm porting an iOS game to Android. One of the shaders I'm using wouldn't compile until I reduced the number of uniform variables. Here are the uniform definitions: uniform highp mat4 ...
11
votes
4answers
5k views

What are the app file size limitations for different smartphone OSes & carriers?

I know the iPhone App Store limits how large an app can be in general and there are also limitations with AT&T over the size it can be to transmit over a data plan vs WiFi. I have no idea what, if ...
4
votes
1answer
853 views

Integration of LibRocket and Android

I am using OpenGL ES 2.0 to create a 2D game for Android 2.2 and was planning on using LibRocket for the GUI. Does anyone have any links or knowledge they would share on how to integrate LibRocket ...
-1
votes
1answer
292 views

What kind of graphics would you like better? [ pictures ] [closed]

I am looking forward to make an android game, something angrybirds style. I've already made my own engine and now have to decide what kind of graphics should I make. It could be either realistic, ...
3
votes
3answers
727 views

Why does creating dynamic bodies in JBox2D freeze my app?

My game hangs/freezes when I create dynamic bullet objects with Box2D and I don't know why. I am making a game where the main character can shoot bullets by the user tapping on the screen. Each touch ...
0
votes
2answers
319 views

Android Game Development problem with Speed = Distance / Time

I have been coding speed for an object. I have made it so the object will move from one end of the screen to another at a speed depending on the screen size, at the monemt I have made it so it will ...
5
votes
3answers
18k views

glTranslate, how exactly does it work?

I have some trouble understanding how does glTranslate work. At first I thought it would just simply add values to axis to do the transformation. However then I have created two objects that would ...
0
votes
2answers
1k views

Problem with drawing textures in OpenGL ES

I'm developing a 2D game for Android and i'm using the framework which has been told in the book which named Beginning Android Games by Mario Zechner.So my framework is well designed and using OpenGL ...
9
votes
3answers
15k views

Fitting Android game to different screen sizes

I am making an Android game that is only in portrait screen orientation. It works great when I run it on my phone, but when I run it on a tablet, even though the screen size is bigger, all of the ...
1
vote
1answer
466 views

From simple physics with a ball, to a more complicated shape

Hello fellow game devs and stack overflowers... I recently made a transition from OpenGL ES 1.1 to 2.0 (on Android via NDK) and things are going well so far. I'm working on doing a dice rolling ...
1
vote
1answer
1k views

Handling different screen densities in Android Devices?

Well, i know there are plenty of different-sized screens in devices that run Android. The SDK I code with deploys to all major desktop platforms and android. I am aware i must have special cares to ...
3
votes
1answer
582 views

Is continuous loop best idea for Android OpenGL game?

I've done some small OpenGL games for computer. I've used continuous loop (with VSync) for game life cycle, input - update - render. Now i'm going to write simple game for Android, but i'm wondering ...
1
vote
3answers
5k views

Open GL ES 2.0 with Android

I was wondering if someone could recommended a book that covers both android game developement and OpenGL ES 2.0. I have found some books with OpenGL 1.0, but I have heard that the syntax for OpenGL ...
3
votes
2answers
2k views

How do I make a video preview of my Android game?

I noticed some apps have a link to a Youtube video instead of a screenshot in Google's Android Play store. How can I make a video of my Android game running on a physical device? The emulator won't ...
1
vote
4answers
192 views

Vectors and corners of squares

I am having some problems with some vector math. Imagine a square and coming from each corner of the square is an invisible vector, which starts at the square's centre and ends at the edge of the ...
1
vote
2answers
2k views

How can I use an object pool for optimization in AndEngine?

I have read up on a tutorial that allows you to reuse sprites that are re-added to the scene such as bullets from a gun or any other objects using an ObjectPool. In my game i have a variation of ...
1
vote
2answers
3k views

Sprite collisions in android andengine

I'm developing a simple game by andengine. I have 10 balls which are moving randomly on screen.i'm importing the balls as picture in sprites.if they move at the same coordinate , they pass though ...
1
vote
1answer
5k views

OpenGL ES 2.0 gluUnProject

I've spent more time than I should trying to get my ray picking program working. I'm pretty convinced my math is solid with respect to line plane intersection, but I believe the problem lies with the ...
0
votes
3answers
1k views

Creating online game for android

What protocol is used to develop real time update games over the internet? From my research here is what I understood: You cant make one device (phone) as server to host room, you need real server ...
22
votes
3answers
12k views

Any open source game engines for Android? [closed]

Is there any open source android gaming engine ?
1
vote
0answers
1k views

Touchscreen panning in OpenGL ES 2.0

I'm trying to allow the user to pan a 2D scene by using the touch screen. I have tried several methods including translating the projection matrix, translating the view matrix and haven't found ...
1
vote
1answer
658 views

AndeEngine Parallax / Sprite Depth?

What I'm attempting to do is create a game in which a space ship explores a large area of space. I'm randomly generating placement of planets, space stations etc. I want to use the ...
2
votes
1answer
174 views

Monetizing an Android library?

I'm developing a library ( i.e. a JAR file that you put into the libs folder in eclipse ) which would extend surfaceView, which other people would hopefully use to make games. I guess the best way to ...
1
vote
1answer
284 views

Why can't I see how many installs my Android game has on the Google Play page?

I made this android game and I uploaded and publish it. And I installed it my phone. But I can't see how many installs on its Google Play page?
0
votes
1answer
487 views

Specific Physics Lessons and Reference for Game Development

What "Physics stuffs" should I learn in game developments? I'm reading about Verlet Integration, and I'm wondering what other lesson should I learn and if there are available resources can you please ...
1
vote
1answer
3k views

Android app: adding background, styles, custom buttons

I am still fairly new to programming in general and android specifically. I am working on an app that currently runs fine and does everything its supposed to do, but its only a skeleton of the app I ...
3
votes
1answer
14k views

Loading PNG textures for use in Android OpenGL ES1

I'm very new to Android and OpenGL coding (I have previously used ogre3d). I am trying to find an efficient way to load PNG textures. It is currently taking around 8 secs to load 3 512x512 textures ...
1
vote
1answer
268 views

Is there a way to setup an Android game project with a large assets during development to allow for fast testing/iteration?

I'm working on an Android port of an iOS game at the moment. I am using the Android NDK only (android_native_app_glue) in Eclipse (CDT + ADT). I am using the Android emulator, API 15 (but we are ...
6
votes
2answers
20k views

Resolution problems when porting a Unity game to Android

So, I'm porting a game to the Android for the first time in Unity3D. And I've run in to a few problems along the way. My current problem is the resolution doesn't seem to be right, it cuts off the ...
1
vote
1answer
1k views

Simple way to post score from my game to Facebook and Twitter?

What's the best and simple way to post score from my game to Facebook and Twitter with store link in cocos2d-x?
3
votes
3answers
13k views

Import a 3D animation into an android game

I want to import a skinned and animated character model built with bender into an android game. The animations can be: idle, walk, run ...etc I've seen a related question but it's only about ...
3
votes
1answer
374 views

Which app markets should I deploy my Android game to?

I just launched my Android game today. I'm curious to know where I can deploy it. Of course, Google Play is the veritable king of markets, and my own game site will be next. After that, which ...
-1
votes
1answer
794 views

Scrolling and Parallax scrolling in 2D game

I'm developing a 2D side-scrolling game.I have a scrollable bitmap for background with size 2400x480.How can i scroll this bitmap?I have searched for algorithms but i can't find any solution. I know ...
-4
votes
1answer
442 views

“Null Pointer Exception” Animating sprite in cocos2d android [closed]

I am converting this monkey jump game tutorial in android. I have done til monkey sliding right to left and left to right but I am stuck in the part of monkey walking animation. I have tried but ...
-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
745 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 ...
-3
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
855 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
236 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
350 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
407 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
380 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
538 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 ...