Android is an operating system for mobile devices developed and maintained by Google, Inc. This tag should contain specific programming questions about Android.

learn more… | top users | synonyms

2
votes
1answer
187 views

Difference between rotation methods?

My question is in about rotate methods in android.graphics.Camera. In Docs, I saw these comments: public void rotateX (float deg) Since: API Level 1 Applies a rotation transform around the X ...
2
votes
1answer
3k views

Android ndk-build can't find glm headers

I am trying to port some boilerplate code of mine to work on android, using the android ndk & NativeActivity So far I have just one file that defines the glue between android and my code and it ...
8
votes
3answers
4k views

Android differences (Dalvik+Java vs Old School C++)

Developing in Android is going to be different for me, having spent the last 10 years coding games in C++. What's the main differences / pitfalls / bottlenecks to developing for the Android? My big ...
15
votes
2answers
991 views

Graphics not being displayed on OUYA

I hope its not too early to be asking OUYA dev questions, but I just got my dev kit and I want to get my game running ASAP! I am using LibGDX as my framework for my game and launching the Android ...
2
votes
1answer
1k views

Code structure in Android 2D game

Well I've finnaly decided to start Android game dev, and my first project will be simple 2d canvas based game. I have some experience in game developing with C# and XNA, and I'm a bit confused now. ...
5
votes
1answer
1k views

OpenGL ES 2.0 texture distortion on large geometry

OpenGL ES 2.0 has serious precision issues with texture sampling - I've seen topics with a similar problem, but I haven't seen a real solution to this "distorted OpenGL ES 2.0 texture" problem yet. ...
9
votes
1answer
10k views

What's the best way to create animations when doing Android development?

I'm trying to create my first Android game and I'm currently trying to figure out (with someone that will do the drawings and another programmer) what the best way to create animation is. (Animations ...
-2
votes
1answer
297 views

Testing multiplayer android

In what way can an android game be tested considering the following constrains: minimal to no budget, so I cannot hire an external company to do the testing for me Testing should occur on multiple ...
9
votes
4answers
910 views

Do Apple and Google ask for a share if custom payment is done in a free app?

I have a multiplatform game (web/iOS/Android) in the making. In the free version the core game is still fully playable but people who choose to pay will get more social features (and no ads, of ...
1
vote
2answers
1k views

Android Game, Blurring effect while moving camera

I have posted this issue on stackoverflow, but unfortunately nobody couldn't find solution, maybe someone here know this. I'm developing Side Scroll 2D Game, using AND ENGINE ...
1
vote
0answers
2k views

Move a 2D square on y-axis on Android GLES2

I am trying to create a simple game for Android. To start, I am trying to make the square move down the y-axis, but the way I am doing it, it doesn't move the square at all and I can't find any ...
14
votes
4answers
2k views

How can I implement a global high score ladder?

Are there any existing frameworks I can build on? Should I build my own? How can I prevent fake scores from being posted to it?
5
votes
3answers
8k views

A game engine like unity but for 2d [closed]

I really like the convenience of unity3d. The ability to edit the level and see my results in real time are great. My problem is the idea I want to implement is 2d and uses 2d sprites. Scaling ...
1
vote
2answers
691 views

Game Development at iOS+Android Platform : Template Engine for UI

We have broken down our game development process to UI Programming Core Game Programming Particle Effect Programming UI will be created by a group of programmers and those UI will be used at Core ...
6
votes
1answer
609 views

Are there any comprehensive resources for learning Google's PlayN framework?

How do I learn to use the PlayN framework? The Getting Started page is not enough. I have been searching for some resources to learn PlayN but am unable to find any. (P.S.: Does PlayN require GWT?)
0
votes
1answer
2k views

Unity - Code is fine in the editor, has error on android

Right. Im running into some weird issue with android unity. I have this bit of code function OnTriggerStay (other : Collider) { if(die.GetComponent(DieScript).sideUp ==6 ...
1
vote
1answer
579 views

Keeping Track of Position OpenGL

I have a sphere in my 3D world located at the origin. I have models orbiting it and I need to keep track of each models' position (x, y, x coordinates) as well as update their bounding boxes for ...
1
vote
1answer
2k views

Creating Transparent Game Menu Items using AndEngine

I'm trying to create a Game Menu which contains some Menu Items like New Game Multiplayer Options Exit I want to make this Menu Items Transparent. Only Text in White color should be visible. So i ...
1
vote
2answers
585 views

Quaternion Camera

Can someone help me figure out how to use a Quaternion with the PerspectiveCamera in libGDX or in general? I am trying to rotate my camera around a sphere that is being drawn at (0,0,0). I am not sure ...
1
vote
1answer
2k views

How do I draw a scrolling background?

How can I draw background tile in my 2D side-scrolling game? Is that loop logical for OpenGL es? My tile 2400x480. Also I want to use parallax scrolling for my game. ...
2
votes
1answer
195 views

Is this an appropriate use of abstraction in my game engine?

I have been stuck in the design phase on my new game for a few weeks now because I keep finding new parts of the game engine that I could make more modular and neat. I did, however, run into a ...
1
vote
1answer
950 views

Using Quaternion in libGDX

Can someone give me an explanation about how to use the Quaternion class in libGDX to move my camera around a sphere or just set it up, manipulate it, and apply it general? I am trying to acheive ...
5
votes
3answers
2k views

Libgdx optimization of big arrays

I am working on a game using libgdx and I have the following code that I want to optimize. Array<Bullet> enemyBullets = Enemy2.getEnemyBullets(); for (Bullet bullet : enemyBullets) { ...
-1
votes
3answers
2k views

2D engine for both Android & iOS engine? [closed]

I want to make a simple 2d game that would run on both Android and iPhone. Since coding it separately for each platform would take some time, I thought of using an engine, that would be able to port ...
0
votes
1answer
354 views

How do I add leaderboard feature of OpenFeint in android?

I am developing a game in android, by extending a class with view. I have integrated OpenFeint in it by studying the tutorial provided on the OpenFeint site, but I am not able to add the leaderboard ...
4
votes
2answers
3k views

Regarding sprite design and resolution for tablets and phones

I am about to start working on a game for android devices, in my spare time, to get familiar with android development. I'm more interested in using the best practices possible than getting a quick ...
1
vote
1answer
940 views

Who makes the art assets for mobile games?

I know how to develop apps for Android but never tried developing games, and I want to start soon. For developing games we need sounds and high quality images (say a background, characters, logos, ...
2
votes
1answer
2k views

setPosition of Sprite onUpdate in AndEngine

I am trying to get a "highlighter" circle to follow around a sprite, but I am having trouble, I thought I could use the onUpdate method that's available to me in SequenceEntityModifier but it's not ...
2
votes
2answers
4k views

Move Camera Freely Around Object While Looking at It

I've got a 3D model loaded (a planet) and I have a camera that I want to allow the user to move freely around it. I have no problem getting the camera to orbit the planet around either the x or y ...
5
votes
2answers
3k views

How do I create a game that runs on Windows, iOS and Android? [closed]

I use C++ to create windows games and now I want to step into another other OS like Android or iOS. I'm totally familiar with C++ so I tried to create app for iOS using objective C it was working ...
3
votes
3answers
514 views

Android / IPhone / Desktop C++ Game Template

I was wondering if anyone has come across any articles detailing how to set up a basic game in C++ for use in Android / IPhone / Desktop applications. My thoughts just now are that I would like to ...
0
votes
1answer
487 views

Make a callback to android methods from libgdx

How can I make a callback from libgdx to an Android method? I want to use the method to overwrite a file in the internal memory.
0
votes
1answer
639 views

Android, apply a pixelshader on a canvas

Can an opengl pixelshader be applied on a Canvas? I want to render a bitmap on a canvas, then apply a pixelshader to get, for example, a blur effect. Is this possible? I don't want to simulate the ...
-1
votes
2answers
555 views

Is opengl ES a necessity for developping mobile games [closed]

I learned some OpenGL ES and some shader coding. But is it really a necessity for developing Android, iOS and windows phone games? Windows phone I'm 99% sure that it is not even supported but have not ...
-3
votes
2answers
1k views

Can I develop 2D tower defense game with unit3D in C# for Android? [closed]

I tried to find the answer in unity3d site but without success. If the answer to my question is yes, does anyone know where I can find an example?
1
vote
1answer
582 views

GestureListener's fling method doesn't get called

I'm using SimpleGestureDetector from the libgdx-users Wiki as my InputProcessor. I set it in the created() method: Gdx.input.setInputProcess(new SimpleDirectionGestureDetector(charController)); ...
5
votes
3answers
13k views

LibGDX tutorial help Scene2D

I'm having trouble understanding this tutorial. It defines the importance of classes, but it doesn't show an outline of the project file so far. From what I got from that tutorial was that there is ...
2
votes
1answer
959 views

Texturing a Sphere in libGDX

I created a sphere (planet) with a texture (earth texture) in Blender, and exported it using the G3DT exporter. Then when I go to use it in my application I convert to the G3D binary format, and load ...
3
votes
1answer
1k views

Getting the height of Keyboard on Android

Hi I need to know the height of my keyboard so I can move up some textfield I have in my app. I'm using cocos2D-X but the app don't recognize the keyboardWillShow method. Thanks
3
votes
1answer
967 views

How to rotate a sprite using multi-touch with AndEngine?

I am new to Android game development. I am using AndEngine GLES-2. I have created a box with a sprite. This box is now draggable by using the code below. It works fine. But I want multi-touch on ...
93
votes
8answers
168k views

How do I get started making Android games? [closed]

I am new to game development. I am interested in developing 2D games for the Android platform. What is the best place to start with (i.e) What are the basics and how to proceed? I already have ...
2
votes
1answer
976 views

How to make the game wait for an animation to finish?

I'm teaching myself andengine while trying to make a match-3 puzzle, so far I have a grid of gems that I populate and can move then around. Matching gems and new gems falling is working already. My ...
1
vote
0answers
402 views

Drawing two orthogonal strings in 3d space in Android Canvas?

I want to draw two strings in canvas. The first string must be rotated around the Y axis, for example 45 degrees. The second string must start at the end of the first string and also it must be ...
3
votes
2answers
10k views

Unity Android: Truecolor texture performance hit and alternatives for truecolor

After integrating the graphics assets to my application, I noticed that when the textures are compressed they look very bad compared to truecolor. This happens to all the textures and it did not seem ...
1
vote
2answers
1k views

which is better performance, using a disposable local variable or reusing a global one?

This is for an android game. Suppose I have a function that is called several times for second and do some calculations involving an arraylist (or any other complex objects for what matter). Which ...
1
vote
2answers
892 views

How to implement a birds eye view of 2D Grid Map using Android

I'm a true beginner with using the android platform and I'm having difficulties on implementing a 2D grid system for a tower defense type game. Where I can place towers on a specific tile and enemies ...
3
votes
1answer
642 views

Amazon GameCircle Integration

I'm trying to integrate Amazon GameCircle and I have been able to successfully initialize GameCircle in my app, but the problem is when I click on the button that displays achievements, the GameCircle ...
4
votes
1answer
4k views

Starting a Java activity in Unity3d Android

I wrote a small Java activity extension of UnityPlayerActivity similar to what is described in the Unity docs. It has a method for displaying a song picking interface using an ACTION_GET_CONTENT ...
4
votes
4answers
3k views

Need a good quality bitmap rotation algorithm for Android

I am creating a kaleidoscopic effect on an android tablet. I am using the code below to rotate a slice of an image, but as you can see in the image when rotating a bitmap 60 degrees it distorts it ...
0
votes
2answers
3k views

I have created character human in blender. How to use it in Java/Android

Title says it all pretty much. I can't find anything online which explains it in details. I have created a character model in Blender and I want to use it in Android app. I want to make it move. ...