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

0
votes
1answer
48 views

LibGDX: how to implement 2 cameras in a unique stage

I am quite new to LibGDX. I am trying to make a game, where the character is an Actor, and it's controlled by a Touchpad(included in the main Stage as an Actor too). My problem is that I am trying to ...
1
vote
1answer
197 views

Cant write/read to/from external storage with LibGDX

My create method looks like this: @Override public void create () { batch = new SpriteBatch(); FileHandle file = Gdx.files.external("file.txt"); file.writeString("My god, it's full of ...
0
votes
1answer
475 views

Why is my screen black?

I'm developing an android game, and my screen is not displaying what I want it to. I've read various tutorials but they are either outdated or hard to follow. I have followed this tutorial and most of ...
0
votes
2answers
38 views

Black lines on sprites

I am having the issue as seen below while using a textureAtlas with libgdx. I haven't found anyone else with the issue so I decided to ask here. Here is an image of the textures in the game screen: ...
1
vote
1answer
34 views

Function call to AndroidJabaObject to an instance of com.prime31.PlayGameServicesPlugin causes the application to stop responding

Using Prime31 PlayGameServices attempting to call 'authenticate' causes the game to stop responding very soon after. There isn't much I can show as there's literally no logs showing up in logcat. Is ...
2
votes
1answer
338 views

Unity Augmenter Reality on Android with Video playing

Hey sisters and brothers, So, I created an augmented reality marker, which works perfectly, I was able to display 3 shape on the screen with my Nexus 5. I would like to replace my shapes with a ...
0
votes
1answer
73 views

WiFi Game Controller Protocol

I'm wanting to use mobile devices to control a game. I'd like to use an industry standard protocol for wifi game controllers rather than roll my own, but have been unable to find any standard. Does ...
2
votes
2answers
166 views

Android libGDX FreeTypeFontGenerator exception

I am working on a libGDX project for Android. Since I added the following code, running the game on my Android phone produces an exception: final FreeTypeFontGenerator generator = new ...
4
votes
1answer
80 views

Google Play Services and COPPA Compliance

I hesitated to ask this question here, since i'm not sure there is a definitive answer (but there can be, maybe i missed it). I'm implementing Google Play Services for a game on Android target at all ...
1
vote
1answer
583 views

Handling Back Button in Android without implementing InputProcessor

Please advice/clarifyon below issue in libgdx while handling back button in Screens. I have already gone through these 2 threads, http://stackoverflow.com/questions/7223723/in-libgdx-how-do-i-get-...
1
vote
2answers
32 views

Should I use one GLSurfaceView.Renderer for each part of my game?

I am creating a small platformer-like game for Android using OpenGL. The game has 3 main screens/states: Main menu screen Level selection screen The game screen Currently I use a GLSurfaceView....
2
votes
1answer
455 views

Generate ETC2 compressed texture from Android Bitmap in OpenGL ES 2

My app currently uses a lot of textures most of which probably could be compressed quite a lot by using ETC2 (my app runs on 4.4 so i have a lot of devices supporting GLES30), i cannot use ETC1 since ...
0
votes
0answers
19 views

How to program light effects in Andengine

I'm trying to make some light effects to my game, but for now i failed to do it well, i try put 3 Sprites: bitmap1 = new BitmapTextureAtlas(getTextureManager(), 1400, 1400, TextureOptions.DEFAULT); ...
1
vote
0answers
41 views

Mobile game without game engine [closed]

I am planning on making a 2D mobile game for iOS and Android. It will have animations (including some simple flash/light and particle effects, like in Candy Crush), but the only physics the game will ...
0
votes
1answer
51 views

cannot implement GLSurfaceView.RENDERMODE_WHEN_DIRTY

I'm trying simply to display an openGL surface when I click the screen using GLSurfaceView.RENDERMODE_WHEN_DIRTY mode but the surface does not display when I click it , why ? my Activity : public ...
0
votes
1answer
120 views

GameMaker android support

Game-maker asks me to install android sdk api 13 for it to work. I opened the SDK Manager so that I install it, clicked at API 13 and I couldn't be able to click the "install packages" button. I ...
1
vote
1answer
40 views

Libgdx black rectangles problem

I'm working on a game for Android using Android Studio with LibGDX in Java. I recently found a weird problem when closing and reopening the game. When I first open the game, it works fine. If I click ...
3
votes
2answers
204 views

Libgdx Android app: Avoid fullscreen and show titlebar

I am developing an app using Libgdx and I don't want the app to go fullscreen and want to show the title bar but the app goes to fullscreen and hides title bar despite all efforts. Here is my style....
1
vote
1answer
866 views

Multiple enemy array in LibGDX

I am trying to make a multiple enemy array, where every 30 secods a new bullet comes from a random point. And if the bullet is clicked it should disapear and a pop like an explosion should appear. And ...
1
vote
1answer
384 views

How to make unitypackage from allseen alliance's android sdk?

Im making an offline multiplayer for Android device by Unity and I found only one way to do this is the allseenalliance sdk. After download its from here I found that to use it I need to create an ....
1
vote
1answer
31 views

LibGDx android : Show animation on button click

I am trying to create an application using libgdx where i need an animation to be played on pressing an image button, i've been able to achieve it using this code if(slapBossFlag==true) { ...
0
votes
1answer
31 views

Having trouble going from the menu I created w/ Android normally to my LibGDX game file

So I wanted to use Android Studio to create the menu for my game so I created a button with an onClick method that included the Intent i and startActivity(i) but when I clicked the button the app ...
1
vote
2answers
146 views

Sound isnt playing in Game Maker Studio when interacting with object

Im making a small game in Game Maker Studio. I have a piece of code that moves the player to the next room when he touches obj_star: this works. I have another line that tries to play sound_collect ...
0
votes
0answers
11 views

libgdx : starting animation disables imagebutton

I am playing an animation on clicking an imagebutton in android. Both the imagebutton and the Image for animation are actors on same stage. Animation plays perfectly, but the issue is after the ...
1
vote
2answers
74 views

How to use touch screen for movement instead of keyboard narrow keys

I wrote this code and run the game on my desktop, now I need to build this game for android and I need to change to touch to move the player, what it should be changed in the following code and what ...
1
vote
3answers
968 views

Counting multiple touches using Cocos2dx 3.2

I'm trying to count the number of active touches in screen in order to perform an an action in case that there are two touches: auto jumpListener = EventListenerTouchAllAtOnce::create(); ...
0
votes
1answer
314 views

Fixed background on a SurfaceView

I'm currently working on a top-down twin-stick shooter for Android. I've got my player moving around and shooting, but I'm looking to add a large Bitmap background which is larger than the device ...
0
votes
1answer
47 views

draw two models changing the MVP matrix (android opengl)

I'm newbie with opengl2 in android, and I'm making an app in which I'm testing some things. Now I was trying to duplicate a sphere object with a texture, so I thought it was enough to change my MVP ...
0
votes
1answer
60 views

How can I check on a large number of points to see if they're inside the camera's frustum?

I have a locally stored database on my Android project, it is a database of approx 100,000 Point3D(double,double,double). I need to check if each of these points are inside of the camera's frustum in ...
0
votes
1answer
93 views

Unity3D - Android build has no Internet Access

I'm having trouble connecting to the internet in an Android build. I created a simple program that checks if there is an connection. Also I set in 'Edit > Project Settings > Player' the Internet ...
0
votes
1answer
31 views

How do I know if the ad is open while the use pressed the back button?

I am trying to reward a user a point whenever they watch/look at an ad. I give the user the reward whenever they watch the ad. However, the user earns a point even if they go to the ad and click back: ...
1
vote
1answer
91 views

Draw wireframe models for Gear VR app: Unity or Eclipse?

I want to create a 3D Android app for Gear VR that does/lets me do the following: Read an input file with a bunch of coordinates of points (including information about how they should be connected) ...
1
vote
0answers
54 views

How should I structure a Shared Library for different platforms for my MonoGame project?

I am quite new to the MonoGame/XNA framework and i have some structuring questions right now. One of the reasons I use MonoGame is because there is still that feeling to create a game from scratch ...
3
votes
1answer
98 views

LibGDX: Is it necessary to set a stage as an input processor when creating a touchpad?

I mean, I've been searching it, they always use set a stage as an input processor after they had added the Touchpadto the Stage because it extends from Actor indireclty(it extends from Widget that ...
0
votes
0answers
22 views

How to use touch.deltaPosition properly?

I use following code for measure touch delata position: private Touch firstDetectedTouch; public Vector3 dragDistance; void Update() { if (Input.touchCount > 0) { ...
1
vote
1answer
146 views

Google Leaderboards, Reducing the Score of a Player

I am making a strategy game similar to chess for Android. I'll be using the Google Leaderboards for rankings. I want to implement a sort of ranking system, that the player can actually lose score, ...
0
votes
0answers
28 views

Libgdx game doesn't work correctly after game over screen

So, I am trying to create a platform game for Android. As part of the game, I have created ladders that the hero is climbing. When he hits the enemy he dies, there is a game over screen --> touch to ...
1
vote
1answer
225 views

Switch beetween Screen on LibGdx application

i have set main class like this: public class MyClass extends Game { MenuClass menuClass; ActionGame actionGame; @Override public void create() { menuClass = new MenuClass(this); ...
0
votes
0answers
31 views

Admob banner causes lag while playing Android Libgdx game

I hide banner ads while playing and show on game over screen but while playing game lags. If I disable ads then there is no lag. Or if I connect to wi-fi, again no lag, but with mobile data it lags. ...
0
votes
2answers
49 views

Handling accelerate in different devices

Hi I am adding tilt controls to my game.The sensor values I get are differ in different android devices which result in random behavior... Anyone knows how can I tackle this situation? I tried ...
3
votes
1answer
104 views

Fixing the size?

My app isn't compatible with all screen sizes. When testing on a small size, my textview overlaps with my button. So, as suggested on the Android Documentation, and many stack overflow pages, I ...
4
votes
1answer
309 views

LibGDX Box2D TileGame Efficiency

I am trying to implement Box2D into my top down tile game in LibGDX. Each world consists of a set of chunks, and each chunk is 16 tiles wide/long. The maximum/minimum chunks loaded at one time is 9 (a ...
12
votes
1answer
1k views

How to reduce image size without pixelation?

I see lots of games with smooth edges characters and high res images, however when I try to reduce images to say 64x64 for my character I just get a pixelated mess. even if I start with a 64x64 canvas ...
0
votes
1answer
46 views

Translation matrix applyed to the view matrix not working (android opengl2)

I have managed to do an small app using opengl2 in android. It consists on a sphere moving over a rectangle, both with a texture. It's just a test in which I'm testing my first steps in opengl. Now I'...
5
votes
1answer
282 views

What's the best practice for a progress bar in OpenGL ES 2.0 (Android)

As the title says, what is the best practice for a progress bar in OpenGL ES 2.0 on Android ? My attempt: I make a texture (could be a single colour or otherwise), and then stretch that texture from ...
1
vote
1answer
130 views

LibGDX: How to detect remote button press for Android TV?

On Android TV, I need to be able to detect the remote control centre button to start the game. I tried: if (Gdx.input.justTouched() || Gdx.input.isKeyJustPressed(Input.Keys.SPACE) || Gdx.input....
0
votes
1answer
381 views

How to use Java 8 with Lib GDX in IntelliJ?

I have set the jdk to Java 8 and I have modified all the build.gradle files in my project to have sourceCompatibility = 1.8 instead of 1.6. My problem is that while it does work on Desktop it doesn't ...
1
vote
1answer
39 views

Binding tiles with Rect

I'm having trouble binding tiles with Rect. I've successfully bound other objects (such as the player, trees etc) in my game with rectangles but I'm unable to do the same with the tiles and I don't ...
0
votes
1answer
37 views

Is there any difference between the reading of sensors in Unity5 and Android/Java?

I'm an Android/Java developer, and I'm new to unity5. I have a program written in Android/Java that uses the readings of three sensors( Accelerometer, Magnetometer and LinearAccelertion ). I'm now ...