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
0answers
5 views

LibGDX Sprites won't render on Linux

I've got a problem with my LibGDX game. So, on Linux(Mint) and Android, sprites won't render. They'll show black rectangles where the texture would be. Other textures, like the tileMapRenderer and ...
-1
votes
1answer
27 views

Why does the Texture from AssetManager displays black rectangles only (LibGDX)?

I loaded and get a texture from assetmanager but whenever I test the app it only shows black rectangles instead of the texture. I tried finding some probable cause for this in my code but I can't ...
0
votes
1answer
19 views

Can't understand why transformation doesn't work

To make a simple transformation like a rotation I want to use linear algebra -multiplying the vec4 vertex_position by a mat4 transformation If alpha is the angle of rotation, then the mat4 is ...
-2
votes
0answers
35 views

I have an idea for a game - mmo strategy game [on hold]

I am thinking about making a game that incorporates chess-like strategy in a mmo context. Something like advance wars that has one giant map where everyone is on. What do you think? I am thinking ...
0
votes
0answers
11 views

Perfect pixel collision witth libgdx on Android

I'm new to libgdx and I'm trying to make a little game in order to experiment the library. My game needs some sollision detection, at the begginning I was working with Rectangles and was using the "...
0
votes
0answers
39 views

How to get object current position?

I have objects moving on the screen, they're in 2 arrays of objects; obj and obj2 public void Test() { obj = new Array < Rectangle > (); for (int i = 0; i < numberOfobj; i++) { ...
-1
votes
0answers
13 views

Developing AR game using Vuforia for Android [on hold]

I am a beginner in game development so I have no idea from where to start, I need to build an AR game using Vuforia and Unity 3d. The game goes like this: The main character try to survive from ...
0
votes
1answer
32 views

Build displays black screen with static

Something really odd happens when I'm trying to load a scene. It is supposed to look like this (it also has to show the next scene after loading): What is going on?
1
vote
1answer
61 views

What does Unity engine use for 2D rendering in Android?

I was starting to develop a 2D game last month, the game was in Java and Android Studio, and using SurfaceView. My idea was to make my first engine to understand how does game engine work, and also ...
0
votes
2answers
45 views

Cubes are separating from each other

I recently asked this question public void spawnCube() { cubes = new Array < Rectangle > (); for (int i = 0; i < 3; i++) { Rectangle cube = new Rectangle(); ...
0
votes
0answers
33 views

Creating a controller for unity cardboard game

I am making a unity google-cardboard game. I want to create 2 apps - 1. The main game unity app 2. The controller android app I will load both the apps on the different phones. Put the main game app ...
0
votes
1answer
29 views

If there is possibility to use two or more activities in gdx?

I wanted to open another activity or show native android dialog from AndroidLauncher in gdx. But when I add MyActivity and MyDialog classes, there is an error "Error: The number of method references ...
0
votes
0answers
14 views

How can I port flash games (.swf files ) to .apk file

Do I have to make an old pc flash game (.swf) again for android mobiles (.apk) ? How can I assign controls for this?
0
votes
0answers
20 views

mobile game publishing advice? [closed]

I have developed a game for android called Dark Dash: https://play.google.com/store/apps/details?id=com.magma.darkdash&hl=en_GB I am finding a lot of difficulty raising publicity and awareness of ...
0
votes
0answers
20 views

RealTimeMultiplayer vs. TurnBasedMultiplayer

I'm trying to develop a game like Catan on Android. The game is mostly turn-based but does involve some interaction when it is not currently a player's turn (like trading with the current player, ...
0
votes
0answers
17 views

Is default Android 2D (Canvas and Drawables) API enough to make simple game? [closed]

So, I have some experience with C++'s SDL and SFML libraries, so I'm not afraid of this low-level stuff, but I want to make simple mobile game, and I don't really have a lot of experience with Android ...
1
vote
2answers
48 views

Unity 5.5 android scaling

The questions I've seen are outdated, explained, not to my liking, or just don't work. PROBLEM: -I want to be able to create a game that can scale on all mobile devices with ease and with no ...
0
votes
0answers
18 views

Resize Label automatically with the text content in LibGDX?

In LibGDX, I want to add some long text content to several Labels. I'm creating those labels in a loop, and the text content is different in each iteration. I want the Label to have a size that fits ...
1
vote
0answers
41 views

SAT collision detection and stacking objects

I'm working on a small game for Android which deals with some simple physics, including the need to stack objects on top of one another without jitter. This infamous "stacking collisions" issue with ...
0
votes
1answer
43 views

How to detect the border of the screen and bounce back?

if (bucket.x > 0) { rect.x += 200 * Gdx.graphics.getDeltaTime(); } if (rect.x < 0) { rect.x = 0; rect.x += 200 * Gdx....
0
votes
1answer
27 views

How to control a 2d charter in an top-down android game with the standard joystick?

So I'm building a 2d top-down game and I need to control my character using unity cross-platform standard asset single joystick. The problem is with the rotation, I don't want to use the dual-stick ...
0
votes
0answers
64 views

World vs Screen coordinates?

I'm using LibGdx 2D without any Scene2D or Box2D. My tiles are 32 X 32 and 16 X 8. And I'm currently using 480 X 320 for the camera. I'm currently doing all my tile and character drawing and ...
0
votes
2answers
34 views

Should I use Unity for a “non-game” mobile app? [closed]

I have some experience with Unity but I always made games only. Right now I have an idea for an app but I don't think Unity is the most efficient way to do it. Probably Android SDK and OpenGL ES would ...
2
votes
1answer
87 views

How can I diagnose a Unity crash when running the game on a phone?

I have a 2D android game that is in beta on Google Play. It has about 100 installations, but no testers. I'm the only developer. Some of the users have reported app crashes, and because they are not ...
0
votes
0answers
22 views

OpenGL ES framebuffers as screen cache

I develop android opengl MapView. It's drawn with square parts if map called tiles. I draw one tile per frame and use two framebuffers as cache. So the renderflow is following: Bind current fbo -> ...
0
votes
3answers
52 views

On button click wait

I have a button I got from google material design asset pack which has a ripple animation when pressed. I'm using the button's click option in the inspector that calls a method that switches scenes. ...
0
votes
3answers
68 views

How can I clean this if Statement up?

I am busy working on a full solo project with no assistance from tutorials or guides. But I have created a monstrosity of an If statement. How could I clean this up and save on memory since I'm ...
0
votes
1answer
45 views

Problem with animating in android, using batcher.draw in libgdx

I am having a problem with the last part of the GameRenderer class. I call batcher.draw(), and receive this error: The method draw(Texture, float, float, float, float) in the type SpriteBatch is ...
0
votes
0answers
21 views

android batcher.draw animation libgdx is not working for some reason [duplicate]

my GameRenderer class is: public class GameRenderer { private GameWorld myWorld; private OrthographicCamera cam; private ShapeRenderer shapeRenderer; private SpriteBatch batcher; ...
0
votes
0answers
27 views

Android Aide with Gamesparks

I'm trying to get Gamesparks to work with the aide on Android. It's working fine on Android Studio, but when I try it with the aide on Android I'm getting a lot of errors. I tried setting up manually ...
0
votes
1answer
36 views

How could an offline app store images so that they aren't trivially discoverable?

There is an app I play which has lots of images. I have reverse engineered the app but couldn't find the images in the APK. The app is an offline app so it doesnt retrieve images from a server. My ...
1
vote
1answer
122 views

LibGDX: Google Play Game Service (Dec 2016) - Cannot call Games class

I'm trying to include Google Play Game Services in my Android game and I tried adding BaseGameUtils library. But it is not really working. I can call the GameHelper class from AndroidLauncher but not ...
0
votes
1answer
65 views

AABB Collision Detection: Why does the simple broadphase algorithm work better?

Hi I am working on barrier detection. I used this swept aabb algorithm http://www.gamedev.net/page/resources/_/technical/game-programming/swept-aabb-collision-detection-and-response-r3084. It ...
1
vote
0answers
13 views

Accessing libgdx classes within Android classes

Currently what I'm able to do is to access android APIs within libgdx with an interface in core and defining all the methods and then implementing it in every project (desktop, android, etc). What I ...
-3
votes
1answer
55 views

Make Buttons to Move Character Right and Left

Can someone help me add mobile input controls for my game? I've got this right now: using UnityEngine; using System.Collections; public class PlayerControl : MonoBehaviour { [HideInInspector] ...
1
vote
0answers
23 views

LibGDX - ImageButton and textures for touchDown and touchUp

I have problem with setting my ImageButton. I want to have two different textures in my button, first when button is touchDown, and second when my button is touchUp. But I all time have touchUp ...
0
votes
1answer
46 views

OpenGLES texture coordinates in shader

Currently I'm doing an android 2D game using OpenGLES 2.0 and I noticed that my UVs never change in all of textures when rendering, like this in Java code: public static FloatBuffer vertexUv; ...
0
votes
0answers
37 views

texture images saved as black - Android

I'm using this code to save a texture to bmp file. I ran this code on both windows and android platforms. On windows it's work good as should be, but on android I get all the images black, which is ...
0
votes
0answers
31 views

How to read a .keystore files “key”/ID?

So I created a keystore around a year ago, and published a game using it on the Google Play Store. Now I want to read the ID in that .keystore file to see if it really is the same keystore that I used ...
1
vote
0answers
21 views

Android black screen with Unity app in subview

I've exported an Unity app/game I have made to Android Studio. In Android Studio I made a layout and within it I have a framelayout. However, when I run the app the framelayout is completely black, ...
-3
votes
1answer
24 views

Changing an objects on through C# script in Unity

I am trying to export my Unity project to Android Studio so that I can create some Android buttons that "controls" the Unity app's behavior. I know what I have to do in order to let it access through ...
0
votes
1answer
48 views

Unreal Engine 4 Android Building Error

Android Launch error My sdk settings: LogPlayLevel: UnrealBuildTool: Preparing native code for debugging... !LogPlayLevel: UnrealBuildTool: UnrealBuildTool Exception: ERROR: D:/Program Files/NDK/...
1
vote
2answers
34 views

Memory leak while loading libgdx game screen

So, I have a lot of texture atlases in my code for a talking tom type libgdx, and I use around 6 of them per screen. The app crashes abruptly without any errors on devices with 1gb ram or less. I ...
0
votes
1answer
35 views

OpenGl problem with indicies

hi guys i'm new of these topics(opengl and others) To begin i want only to create a simple circle that can be route on touchevent. So i decided to learn opengl and to try. These is my class called ...
0
votes
1answer
56 views

AdMob - my own impressions

I wanted to test my in-game ads and I forgot to add my device as a Test Device. My game is not yet in Google Play and App Store but I have 12 impressions on AdMob. What I have to do in this situation? ...
0
votes
1answer
42 views

LibGDX - does not show ads

Can someone tell me, what I am doing wrong? Here's my AndroidLauncher public class AndroidLauncher extends AndroidApplication { public static final String BANNER_AD_USER_ID = "ca-app-pub-...
-1
votes
1answer
69 views

Is MSAA broken in Unreal 4.14?

I'm trying to use the new forward rendering with MSAA in GearVR, on a Galaxy S6. But there's definitely no antialiasing going on. At all. After a lot of time searching online and in the editor I ...
0
votes
0answers
28 views

LibGDX - problem with LoadingScreen

I have problem with my LoadingScreen. When I run the game I have a black screen for about 5 seconds, and after that I have my LoadingScreen but for a split second. It's almost unnoticeable.
0
votes
1answer
37 views

Is there a way to get native resolution of device window/display on android?

When change the framebuffer resolution by calling Screen.setResolution(1920,1080) Screen.currentResolution, Screen.width, Screen.height reports back the new resolution 1920x1080. Screen.resolutions ...
1
vote
1answer
38 views

LibGDX - Box2D, world, bodies and deltaTime

Can somebody tell me how to correctly handle Box2D "deltaTime"? When I have non-Box2D objects it's sufficient to multiply velocity by deltaTime but what should I do when I use Box2D world and bodies? ...