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

Is there a specific file in the NDK that I need to link Unity3d to?

This is Android Development. I'm having issues with Unity saying that Android NDK isnt installed. I gave it the file path to the NDK directory. Its the exact NDK it told me to install (Unity). Do i ...
0
votes
0answers
54 views

How to update projectile trajectory point?

I am a new game developer, I am making a game, but I have a problem, I don't know how I can update my trajectory point in OnDraw method. Could anyone please help me? Thank you! Here is my code: ...
0
votes
0answers
17 views

AdMob Banner appears 960x150 instead of 320x50 in libGdx - what's wrong here?

I am a bit helpless with this strange effect from AdMob. AdView is instanciated in code and so is the relative layout and libGdx view. View view = ...
0
votes
0answers
33 views

Standard file path for pictures in Android

I created a png file from an RenderTexture and I can save it to the standard directory in Windows. Now I want to do the same in Android. How can I get the standard picture path?
0
votes
0answers
26 views

LibGDX - black bars, FitViewport and drawing background

actually I'm creating game in LibGDX and i have few problems. I'm trying to solve resolution and aspect ratio problem by using FitViewport but i want to dispose black bars which occur when resolution ...
0
votes
0answers
35 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
0answers
14 views

Physics2D lag on increased timescale Unity

I have been working on an infinite runner kind of game in which i am trying to implement a speedup powerup kind of thing . Something that will allow me to boost through the levels at a high speed I ...
0
votes
0answers
17 views

Is this how I use activities in android studio?

I'm a student who is just stepping into android game development. I'd like to create a text-based RPG game for android and started to learn about Android Studio (I think Android Studio is enough ...
0
votes
0answers
29 views

Share Image on Android Application from Unity Game

I've captured screenshot in my game when player dies. I've following code to capture screen shot. RenderTexture rt = new RenderTexture (800, 600, 24); MainCamera.targetTexture = rt; ...
0
votes
0answers
20 views

Ads are loading, but not showing?

TL;DR: My interstitial ads in my game are successfully loading, but when I call .show() on them, they don't show up! I have followed these directions, and the ads load succesfully, but don't show ...
0
votes
0answers
31 views

Unity bloom effect doesn't work on some mobile devices

I tried to implement bloom effect (standart Unity asset) to my game but after make android build bloom stops work on some devices e.g on Samsung galaxy s3 it's fine but on Samsung galaxy s5 it's not. ...
0
votes
0answers
12 views

Overlaying interactive Content over the stream from a camera in a native iOS/Android app

I'm making a game for iOS/Android that requires the user to point their phone at a scene and interact with a 3D object that is overlaid over the stream from their camera. The object is a fairly simple ...
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 ...
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
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 ...
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
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 ...
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
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
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 ...
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
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
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 ...
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 ...
0
votes
0answers
165 views

Surface View show black screen

i need necessary help! please anyone?! My GamePanel's Surface View show black screen (or don't show at all) on testing even though in the code every-thing looks fine!! Am i missing something?! Note: ...
0
votes
0answers
25 views

how to pin down a sprite partly in unity?

I am working on a simple do not let the bombs hit the floor game for android. You control a stick which can rotate to left or right depending on where on the screen you touch (left or right). But I ...
0
votes
0answers
23 views

Adding a score element to your android game

I said I'd show the following 3 classes so that you know exactly what I'm doing. The three class I posted are used in a game I'm working on and they are concerned with the login and register part of ...
0
votes
0answers
23 views

Different layouts?

I have had trouble in the past with optimizing my game for different layouts, so that the players don't see the game in different ways on different screens. Someone told me that the normal directory ...
0
votes
0answers
72 views

“Choppy” visual of game

I'm using interpolation to move objects on scene smoothly and in same speed. But in reality it looks like they are not moving smoothly - it looks like as game is running at 15 FPS or something like ...
0
votes
0answers
43 views

How to pass a java string variable from android activity to unity3d C# script variable?

Require some help to pass custom autogenerated text from android activity to unity3d activity being started.
0
votes
0answers
68 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 ...
0
votes
0answers
122 views

Update the Android Gallery after take a screenshot from android device using unity3d

Currently we are working on "Update the Android Gallery after take a screenshot Here follows our issues: The problem is that we are having a button,when we click on the button the photo gets saved in ...
0
votes
0answers
79 views

Landscape mode for game?

TL;DR: I have made 8 new layouts for each activity layout, but they are not showing up. For example, I have a layout-land directory with a layout, but that layout doesn't show up when I turn my phone ...
0
votes
0answers
63 views

SDL touch input on Android (3D camera rotations)

I have a question regarding rotating a 3D camera on an Android device using SDL for touch inputs. The desired effect should be when the user touches and moves their finger on the screen the camera ...
0
votes
0answers
28 views

Andengine: Put a Sprite between 2 Parallax-Layers

It it possible in AndEngine to put a Sprite between two layers of Parallax-Background, without the Sprite moving together with the Parallax-Background? Like: First Parallax Sprite (will be above ...
0
votes
0answers
29 views

Touch and Collisions not working together in AndEngine when i set a custom Physics Handler

I have a set of custom sprites which implement a custom physics handler. The aim is to allow the user to move them by touch, then upon release they should act like a spring is connecting them to the ...
0
votes
0answers
45 views

Is it possible to use a Unity 3d Model with libGDX?

Can I use a 3d model like https://www.assetstore.unity3d.com/en/#!/content/36951 in a libGDX 3d game?
0
votes
0answers
68 views

How can integrate a decibel meter into my Push To Talk (PTT) game?

I have am building a Push To Talk (PTT) game and I need to integrate a decibel meter into it so that I can measure and save the decibel level and identify the peaks (spikes) and add them together. I ...
0
votes
0answers
20 views

AndEngine Font garbled on engine.setScene

I load a font as a member of my main activity with the intent of using the font in two different scenes on the same activity. The two scenes are also members of the mainActivity. public class ...
0
votes
0answers
25 views

Layout is different?

I know that layouts can look different on different screen sizes, but I didn't take that into account when I made this layout. So, it is designed for normal screen size, by default, and my phone ...
0
votes
0answers
62 views

Android onResume called after screen turned off, starting the app running even while screen is off

I'm building a simple 2D game and I am getting strange results and calls the the onResume method when I turn off the phone screen while in the game. So I have two questions: 1. How is the pause ...
0
votes
0answers
14 views

Android App Update not automatically installed on devices

I published my app update yesterday and users can manually update it on Google Play, but it should be installed automatically. Does this have anything to do with my certificate? I receive a warning ...
0
votes
0answers
207 views

Setting Up A Visual Studio 2015 Android C++ Project To Utilise The SFML Library And compile On An Android Device

So in Visual Studio I have installed the cross platform tools to set up a C++ project for Android and iOS such as the Android SDK, NDK and the corresponding USB drivers required to debug the program ...
0
votes
0answers
79 views

LibGDX: open android camera

I need help, I can't find a solution to open camera device in my libgdx app. I'm developing it only in Android for now but I have this issue. I need only to open the preview view, no snap picture o ...
0
votes
0answers
69 views

Does the sound need to be fixed?

Are there special requirements for audio for different devices? I have been stuck on this for around two days now, and would really appreciate all the help I can get. I have some audio in my code. ...
0
votes
0answers
22 views

OpenGL ES 2.0 save data for next render cycle

I'm currently writing a simple game, that should be able to cope with moving and rendering a large number of ships (particles). I started benchmarking with a sprite system, but obviously it was to ...