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
36 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 = modelLoader.loadModel(Gdx....
0
votes
0answers
88 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 ...
0
votes
0answers
43 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
3answers
121 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
0answers
39 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. ...
-3
votes
1answer
25 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 ...
1
vote
2answers
136 views

Swap buttons in layout

Say I have 4 buttons. I want to have button 2 always swap out with another button, randomly. So, when the user taps button 2, it should swap with another button (randomly). Now, button 2 is at the ...
0
votes
0answers
67 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
37 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 ...
1
vote
1answer
3k views

Unity Remote 4 on Galaxy S5 won't connect to Unity 5

I'm having some trouble connecting Unity Remote 4 to Unity 5. I'm using a Samsung Galaxy S5. I've searched a bit and the other solutions with other phones aren't working for me. What I've tried so ...
2
votes
1answer
1k views

Profiling the GPU of a tablet

We are working on a tablet game in Unity Pro (for the first time). Unity's profiler works great for probing the CPU, but the tablet's GPU isn't supported in the profiler, so we have no idea where the ...
7
votes
6answers
4k views

How can I refer to Android assets in other directories?

My project was initially not meant for Android, and its assets are organised along the following directory structure (I hope the ASCII art renders reasonably well): / +- engine/ | +- src/ | |...
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
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 ...
4
votes
1answer
4k views

Android emulator with acceleration and gyroscope simulation [closed]

Is there an Android emulator that is compatible with eclipse that can simulate acceleration and tilting of a mobile device?
2
votes
1answer
643 views

Android OpenGL EGL context lost

I'm developing simple Android game in OpenGL ES 2.0 and the development stage is getting closer to publishing game on play store, but I'm still unsure about EGL context behaviour on different devices. ...
0
votes
0answers
262 views

Limiting Rendering in my game loop (Not Game Updates)

My Gameloop (code below), limits the game updates to 60 ticks per second. However, it renders as fast as the device on which it is being run can handle. I'm using a fixed time step in my game and I ...
2
votes
4answers
714 views

Android Game-Loop (rendering & logic removed, but still 'skipping frames')

Overview Guys really hoping for some help here. My game loop is based on code from Fix Your Timestep!. I've read the article more than a few times, but I can't quite work out what exactly is ...
0
votes
1answer
90 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 ...
0
votes
0answers
27 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 ...
1
vote
2answers
123 views

Change Camera Contrast in VR Game

Hello there Firends , I'm developing a Virtual Reality game in Unity. As in every VR game , i have 2 cameras for stereo rendering. I want to show the same object in each camera having different ...
0
votes
0answers
69 views

Google Play Games, Inbox Freezing

I am developing a game that uses Google Play Games and turn-based multiplayer. I have the latest Google Play Games 3.5.17 on my Android 5.0 phone. The problem I have is that, after a while of using ...
1
vote
1answer
152 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 ...
1
vote
0answers
45 views

Android Multitouch Implementation

I'm trying to implement multitouch in my game but I'm running into problems. Basically all I want is for the player to run and shoot or jump at the same time. I've followed a multitouch tutorial and ...
0
votes
0answers
27 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
167 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
63 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
1answer
392 views

UNET start game with friend by finding their name, Android

There is a game at the google play store called Fun Run 2- Multiplayer Race. I loved its feature to find friends by writing their names, and then to play with them. Is it possible to achieve that with ...
0
votes
1answer
68 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, ...
0
votes
1answer
437 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, ...
0
votes
0answers
56 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 ...
1
vote
0answers
74 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() ...
1
vote
2answers
80 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 ...
1
vote
1answer
326 views

What would cause my script generated buttons and text to show in Unity and not on my phone?

I am using Unity 5 and the built in GUI tools. My static GUI shows up just fine which makes me think it's not a text/font issue or some such. Again, it all looks good in the Unity editor when I hit ...
2
votes
2answers
4k views

Android multitouch: How to detect movement on non-primary pointer / finger?

How does one go about detecting a secondary/non-primary finger moving? There is: ACTION_DOWN and ACTION_UP to detect a primary finger pressing the screen / leaving the screen ACTION_POINTER_DOWN ...
4
votes
2answers
194 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
61 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
1answer
55 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 ...
3
votes
2answers
280 views

Profiling LibGDX game with GLProfiler

I am trying to profile my LibGDX game, It runs on 60FPS on PC and 42-45 FPS on MY mobile phone. Either I improve performance and raise it to 60, or lock it at 30 (I don´t want to do this). I have ...
4
votes
2answers
669 views

How can I change width of sprite Dynamically?

I want to change width of sprite dynamically but i can't perform it.!! Here i want to change only my white sprite i want to use these type of facility in my game in using AndEngine I want to display ...
0
votes
1answer
3k views

Alpha Value at 0 Shows Black for Android Canvas Bitmap

There have been a few questions similar to this but none seem to give a straight answer. If I am creating a Bitmap from a .png image and want to set a color (i.e. true pink) to transparent, the color ...
0
votes
0answers
141 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, PorterDuff.Mode....
0
votes
0answers
38 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
53 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 ...
1
vote
1answer
61 views

Admob - gradle configuration error

I've followed this tutorial https://developers.google.com/admob/android/quick-start, but I'm stucked at gradle configuration. I've added line compile 'com.google.android.gms:play-services-ads:8.3.0' ...
1
vote
0answers
44 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 xmlns:android="...
1
vote
1answer
40 views

How to add images?

I was adding images after reading in the documentation: This means that if you generate a 200x200 image for xhdpi devices, you should generate the same resource in 150x150 for hdpi, 100x100 for ...
2
votes
1answer
19k views

'Resetting' Google Play Games Services so app forgets it previously connected (so it shows confirmation screen again)

When I first integrated Google Play Games Services into my app, it came up with a 'confirmation screen', something like: App Name wants to connect to Google Play Game Services I don't recall the ...