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
57 views

Implementing BaseGameUtils with LibGDX for Google Game Services

I'm developing a game for Android in Java using Android Studio and LibGDX. I'm trying to implement the Google Game Services inside my game but I'm having trouble using the BaseGameUtils. Every time I ...
1
vote
0answers
57 views

How can I reduce the size of bundled Unity DLLs on Android? [duplicate]

I have created a simple project (I am a Unity beginner) for Android but the apk size is around 18 MB! I checked the documentation. One way to decrease the apk size is to check the editor log. Then I ...
0
votes
1answer
44 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
0answers
33 views

OpenGL ES 2.0 how to access LUT

I've created a look up table for my fragment shader and I'm passing it in as a uniform float array. uniform float hueLut[360]; My program works fine on most devices but I ran across one device ...
0
votes
1answer
50 views

GLSL Shader not compiling (Android & LibGDX) and no log available

I'm trying to get a "ripple"-shader working for OpenGL ES 2.0+ (using LibGDX). However, I can't get it to compile, and for some reason ShaderProgram.getLog() returns an empty string even though the ...
0
votes
0answers
26 views

Move/Rotate 3d multiple objects w.r.t. to one another in libgdx

I have two blender objects in .g3dj format. Below is the code : private void createBaseArm1(){ // Now load the model by name from asset folder baseArm1 = ...
0
votes
0answers
50 views

Bloom does not work for Mobile [Unity]

I've added the Mobile Bloom shader to the camera and I have Emissive HDR objects in my scene and I've set the graphics quality to the highest. I do not have anti-aliasing enabled but the bloom effect ...
4
votes
0answers
51 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 ...
0
votes
0answers
36 views

get object location in 3d view libgdx

Below is the code of rendering the .g3dl model. I am trying to find the x, y, z co-ordinates of model's top view in 3d (Android) from origin (0, 0, 0) using calculateBoundingBox. I am stuck with no ...
0
votes
0answers
35 views

Stretch Textures to screen width and height with StretchViewport

I have an orthographic camera that have viewportWidth = 540 and viewporHeight = 960. My backgrund texture is 1080x1920 pixels. How can i resize the texture to fit the camera using a StrechViewport. ...
0
votes
3answers
75 views

Database works on unity editor,but not on android device

I am working on database connectivity in unity.When I run my project I am able to access my database(retrieving and inserting data into database).But the problem is that when I take the android out ...
0
votes
3answers
124 views

Move Camera When Player Move C#

i developing side Scrolling endless Game. i want to Change X Axis of camera as player moving to Right. and i almost Done That. but the problem is when move Camera to the Right then its look so stiff ...
-3
votes
1answer
24 views

OpenGL ES 2 inheriting issues [closed]

I am Having an issue where one of my classes will not inherit the other ones variable value. In the class which is inherited. It shows the value of the float just fine. But when I go to the Class ...
0
votes
0answers
35 views

Problem with google analytics referral tracking in Unity3D game on Android

In my recent game I used google analytics plugin for unity. Link here: https://github.com/googleanalytics/google-analytics-plugin-for-unity Everything works fine but I'm unable to track install ...
1
vote
1answer
34 views

Android Opengl: Alternate values for gl_FragColor

I'm writing an Android application that utilizes opengl to perform some changes to the camera output. I've written my code in such a way that I finally figured out what is causing the performance ...
0
votes
0answers
28 views

Simple OpenGL ES 2 program fails

I'm stuck on a very simple OpenGL ES application from 2 days now. I am a "beginner" OpenGL developer, and this is my first attempt at the ES version on android. This is a VERY simple app, the usual ...
0
votes
1answer
42 views

Hybrid App - Game Encyclopedia Image Asset

An in-game encyclopedia usually consists of entries and images for things related to the game. For example, pokemon's pokedex. Image of Pokemon, text description and so on. I've happen to encounter a ...
0
votes
2answers
42 views

Libgdx box2d bodies go through other bodies

I'm developing a game using libGDX and box2d. I am facing a problem that bodies go through each other... I'm moving the body using a TouchPad by setTransform. I think the problem is that I use ...
0
votes
1answer
50 views

Android: Synchronizing timers across multiple devices

Im writing a turn-based multiplayer game that implements a chess timer. When the current players turn starts, all devices start timing for the current player, however, as his turn proceeds, the timers ...
1
vote
1answer
87 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
0answers
23 views

Libgdx moving a body sequence

How can I move a body (box2d) to different points in an order. Like first it moves to 100,200 then to 200, 450 and so on? I've tried actions(and actor) but I can't get the point where the body is ...
0
votes
0answers
20 views

How to verify POST data is sent from Android app with correct SHA1 signature? [duplicate]

Recently my game has been hacked and one user submitted an impossible score to the server. The score was submitted with a verified checksum, and correct data. I'm convinced that the user must have ...
0
votes
1answer
25 views

transfer 3d model processing from Xna to Android?

I developed xna scenario in Desktop application and i need to make the same scenario in android app I we need to make processing in desktop and just display it in android app using socket programming. ...
1
vote
1answer
122 views

Change screen from main menu to game

I'd like to know how I can change the screen from the Main Menu to the Game itself but im having quite the trouble and I would appreciate the help. What I want to do is when I press btn.Play it ...
0
votes
1answer
90 views

Libgdx rotate sprite with collision

Im making a game where I have an object in the center of the screen and then balls come out from the sides of the screen. When you touch the screen the object rotates 90 degrees clockwise and it has ...
0
votes
1answer
22 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 ...
0
votes
0answers
148 views

Unity crash on development build

Every time I check the development build, my game crashes just after turning my screen black. To be more specific, I've tried to create a development build of my game using Unity 5.3 on Windows 8. I ...
1
vote
1answer
148 views

Too many if statements cause lag? [closed]

I am trying to make a vertical scroller game with collision tiles on both sides. I'm using Libgdx and android studio. The problem is that i have made every tile as an object with a rectangle for ...
0
votes
0answers
23 views

Admob Hiding and Showing ads beginning android games screens

I am writing a game using the 2D screens framework from the book Beginning Android Games. I have used the tutorials here to place ads in my app and modified my GLGame class accordingly.I want to ads ...
0
votes
0answers
30 views

Do I restart the service?

I have a long running service in my game, that consists of two threads. //MY SERVICE: if(userEnabledProcessOne) //Shared preference value that I'm getting from the settings of my app based on a ...
0
votes
1answer
106 views

Is Angry Birds Made Purely Using Bitmaps/Raster graphics? [closed]

Being a beginner game developer I would like to start creating my own engine and graphics so I am concerned about how successful games accomplish the graphics portion. My question is, are all the ...
0
votes
1answer
52 views

How can I communicate between libGDXand the Android Studio Java files?

The reason I'm asking is because I wanted to create a game and I know I could use Scene2D to create the UI but as far as menus go I wanted to use the tools in android studio to at least create a menu ...
0
votes
0answers
44 views

HashMap or LinkedList

I'm working on a 2D game for Android using LibGDX in Java. In my game I got lots of enemies, bullets and other stuff. I hold a hash map, which every cell holds a reference to an array list of that ...
0
votes
1answer
231 views

ARMv7 vs FAT in Unity Android Build Settings (release multiple valid APKs)

If I select ARMv7 instead of FAT (ARMv7+x86) in the Android Build Settings of Unity5-Free, the APK binary drops to half size. FAT => ~20MB ARM => ~10MB (Tested with an empty scene, no assets, ...
1
vote
1answer
34 views

Why do I get 3 lines of log at Monitor.exe when using Debug.Log in Unity?

I'm debugging a real device. In a GUILayer.Button I've put a single Debug.Log() message, like in this code Code: if( GUILayout.Button( "Click to Test." ) ) { Debug.Log( "XAVI Clicked!" ); } ...
0
votes
1answer
63 views

How could I access game data from a dev machine at runtime from a mobile platform?

When working on a game on a mobile platform, having read/write access to game data (assets, configuration files) stored on the dev machine at runtime would enable building of tools to quickly iterate, ...
1
vote
0answers
47 views

how to temporarily turn off/on multisampling for an OpenGL ES 2.0 render context in Android?

In my OpenGL ES 2.0 Android app, I render to an EGL surface with >= 2 samples; I obtain this surface by passing: EGL14.EGL_SAMPLES, 2 as part of the attribute_list argument for egl.eglChooseconfig() ...
0
votes
1answer
211 views

Unity-UI not scaling correctly on android

My UI appears extremely small when i build and launch my game on my android device. Im working with unity 4.6. I've tried changing the UI scale mode of my canvas to all 3 types. Scale with screen size ...
1
vote
2answers
59 views

Sign APK of several games with same or different key?

When you choose a key for signing your APK for publishing in GooglePlay, you need to care of this key for the next 25 years if you want to do updates. The key should not be shared with anyone. The ...
0
votes
1answer
40 views

Scene2d How to make it work for a Visual Novel

I kinda understand that you can use Scene2d for a Hud or stuff like that, I'm new to Java and so far I've done games that update in real time like let's say Flappy bird (simple games), so i wanted to ...
0
votes
0answers
44 views

Alternative Sound lib with LibGDX

i'm making a 2D game for Android in Java using LibGDX. I find LibGDX sound management not good enough for me. I wonder if it's possible to use an external lib for playing and managing the sound and ...
4
votes
2answers
154 views

How can I randomly spawn circles on a screen but make sure they don't overlap?

I just need a general idea for how to do this. I have a list of Circle objects. Circle { private int yCoord; private int xCoord; Circle(int a, int b) { xCoord = a; yCoord = b; } } I randomly ...
0
votes
1answer
58 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 ...
0
votes
0answers
79 views

How can I change the color of the default android drawable star?

I asked a question before and I got an answer to do this: Drawable drawable = getResources().getDrawable(android.R.drawable.btn_star); drawable.setColorFilter(Color.YELLOW, ...
0
votes
0answers
37 views

Create a new layout?

After the user gets to a certain score in my game, I wan't to display a medal next to the users name. Doing this pro grammatically will make the image disappear after the user leaves the app. How can ...
1
vote
1answer
36 views

How do I run an APK in a device from the Unity IDE without rebuilding the binary?

I know that the button Build creates the APK in my disk. And the button Build and Run creates it and sends it to a real device if connected via USB. Question: Is there any way to "Run" from the ...
0
votes
1answer
47 views

Make a sprite jump to a certain direction in libGDX

I was wondering how you can make a sprite jump to a certain direction in libGDX just like the brick does in the famous mobile game "Amazing Brick' I want to make my sprite jump up a bit to the right ...
0
votes
3answers
213 views

How to implement jump in a 2d game?

I am trying to implement jump in a game I have written for android using canvas. I have referred this tutorial for implementing jump. My code is like if(jumpKeyPressed){ jumpVel = ...
0
votes
2answers
109 views

Will scaling images at runtime impact my game's speed?

I have read the android developer guide to working on different screen sizes. My question is, if I only provide one image in the drawable file, and let android scale it for me, will it impact the ...
1
vote
0answers
42 views

Game layout is messed up?

After trying to add a banner ad to my game, the rest of my games content has moved up! I have the following XML code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout ...