Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [android]

Android is an operating system for mobile devices developed and maintained by Google, Inc. This tag should contain specific programming questions about Android.

-1
votes
0answers
25 views

What game engine to choose for small Android/iOS game? [on hold]

I have the aim to make a game for training English words, where the animated hero will tell a little story every next level and show the word cards. The animation will be rather primitive, no physics ...
0
votes
0answers
27 views

Is it always necessary to synchronize rendering in a game loop?

When writing a game loop from scratch in java for an android game applications, it is very common in many tutorials I have read that the keyword synchronized is used to synchronize update and ...
1
vote
1answer
9 views

Textures in build duplicated, despite they're packed into atlases

I have a simple SpriteAtlas: "UIAtlas" which is located in the Resources folder. It points to a folder "UIAtlas" which contains ...
0
votes
1answer
35 views

Tile manipulation script doesn't work in build but works in editor

I have 100 cubes which makes a plane, and I have a script that moves those cubes in random patterns according to random chosen methods. For example, in the method ...
0
votes
0answers
11 views

MIRROR: Connect Android client to PC server?

Using the Mirror NetworkManager alongwith the NetworkManagerHUD, I made two scenes: one for server, one for client. The client one I built out to Android, and started up the server one on laptop, ...
1
vote
2answers
53 views

How to preserve EGL context when pausing Android ndk app

I am trying to improve openframeworks so that the GL context is preserved when pausing and resuming my game. So that I don't have to reload all textures after each pause. I don't expect you to know ...
0
votes
0answers
5 views

One of canvas disappears after build on Android

I have 3 canvas, and have two different layers for them. Two canvas using default UI layer and one using custom layer called "BackUI". And I have two cameras that render each UI and BackUI layer only....
0
votes
0answers
10 views

Unity 3D game application on mobile is more zoomed in [duplicate]

I have developed two apps recently and I noticed both have same issue. When I test and run game in unity game scene the image looks fine. But when I build apk and install it on mobile it is zoomed in ...
0
votes
0answers
18 views

How can I debug my game on mobile device?

I've been creating this game on my computer for months and everything works fine. But when I built the project and installed it into my android device, it doesn't run as smoothly. I don't wanna use ...
1
vote
0answers
8 views

Load a second app in background and launch behind a loading screen

there is a way to preload an application in android from Unity? I mean.. I'm developing a launcher and every click in icon, should be launch a different game.. so, the time between show a loading ...
0
votes
1answer
45 views

How can I create online leaderboards for iOS and Android?

I'm developing a racing game for iOS and Android phones/tablets and I want to implement online leaderboards. My game has a singleplayer mode(no multiplayer features) but I want to implement online ...
2
votes
0answers
18 views

How to Invite Facebook Users to a Unity Game for Android

I am currently using the following code to let the player invite other players to my multiplayer game: FB.AppRequest("Test Message", callback: this.HandleResult); ...
0
votes
0answers
8 views

How to handle back press in Unity?

By back press on Android, I want to close all the open windows first then exit the game, I see everywhere it's suggested to check input key in Update: ...
0
votes
1answer
17 views

OpenGL ES, object intersection artifacts

I was developing a C++ implementation of OpenGL for Android and I noticed those weird artifacts that formed between 2 intersecting objects (or triangles) : [Here are the artifacts on Android] The ...
0
votes
2answers
33 views

Unity 2019 build for Oculus Go not appearing on device

My project was building fine in 2018 and showing up on my Go under "unknown sources". My project builds fine in 2019 and it says it gets installed but it no longer shows up under "unknown sources" or ...
0
votes
1answer
25 views

How to check if a specific instance of a prefab is pressed?

This one is hard to explain, so I'll show the code first - ...
0
votes
0answers
14 views

How to fix Unity 2D Android app runs well in editor but not on devices or emulators? [duplicate]

I am developing an Android game with Unity 2D, build 2018.3 personal edition. I have set base Android version to 14 and target version to latest. There are two scenes and Admob plugin installed. The ...
0
votes
0answers
30 views

How do i update opengl lightning equation in my fragment shader to make my texture less glossy and more like a fabric

I built a model in blender, and am currently trying to import it into my android app using assimp together with opengl, i dont have any issues with the importing but my goal is to make the object look ...
0
votes
1answer
33 views

Amazon FreeTime Unlimited Monetization [closed]

So I've recently noticed how great FreeTime Unlimited is for my daughter. There's no ads, no in-app purchases, etc. She can just play the games/apps and I don't have to worry about it. As a develop I ...
0
votes
2answers
56 views

How to change 100 GameObjects' color without pushing RAM to hard?

I'm developing a mobile game and one of the gamemodes has 100 gameobjects(basic cubes). And they all have same material. I need to know how to change their color one by one with script. I'm not very ...
0
votes
1answer
200 views

Unity build error “Value cannot be null. Parameter name: path1”

I'm getting this error when trying to build my game for Android, I've googled it but there's only 1 result about it and it didn't work for me as I use 64-bit windows. How can I fix this and what's ...
0
votes
0answers
27 views

Unity Waypoint system

I am trying to code a way to choose between multiple paths using the waypoint system. I tried it with if statements but it was just very inefficient. Can anyone suggest me some ways to get this done? ...
0
votes
0answers
22 views

Unity Touch Pan Orthographic camera

I have written some code to pan in perspective view. I used that code and modified it to make it work in orthographic view. However, the display does not pan as expected. It just goes all over the ...
0
votes
1answer
30 views

Play games services leaderboard does not work all the time

I am trying to login into play services. I got it working. But there were duplicate game objects created. So I added do not destroy on load and now the play services work the first time I access it. ...
0
votes
1answer
63 views

How can I debug a black screen when testing on a device?

I have made an Android game with Unity. But, when I opened my game, I see a black screen and a closed game. It works on a tablet but does not work on mobile phones. I tested it on 2 mobile phones. ...
0
votes
1answer
27 views

How to change the KEYSTORE securely?

I'm wanting to release a free version of an app to which I've already made a paid version. I simply copied the project to another folder: The project is initially the same as the paid application ...
0
votes
0answers
16 views

How to scale ImageButton with viewport for different resolutions?

I am new to the libgdx framework. I don't know how to scale an ImageButton for different screen sizes. Currently it looks big on desktop, but small on the Android ...
0
votes
0answers
41 views

Overdrawn pixels vs many polygons, which affects performance the most?

I know that having overdrawn pixels is not desirable as well as having many polygons since they can decrease performance. Often when I model I have an option to decrease the number of polygons by ...
0
votes
0answers
16 views

Updating same value firebase multiplayer

I've been developing a boss hitting system for my application with utilization of firebase (firestore). Simply put, there is a boss, visible to multiple users, he got max and current hp. The ...
0
votes
0answers
28 views

Remove READ_PHONE_STATE permission from Crashlytics in Untiy

Recently I have added Crashlytics to Unity and now the game is asking for permission to manage phone calls. How do I remove it from the game?
1
vote
1answer
69 views

Black screen when building apk Unity

Alright, I have a bit of a confession to make: I accidentally posted this question in the wrong place: Stack Overflow. Whoops. Anyway, here's my problem. Sorry if you've seen this before. Here's the ...
0
votes
0answers
101 views

Unity Android Immersive mode leaving a black bar in the soft key area?

The black bar is not hiding anything. Everything is drawn above it. But the black bar is there in place of the soft keys even when they are hidden. I don't know how to hide it and render using whole ...
0
votes
2answers
63 views

How best to detect device performance capabilities and set quality setting accordingly when using Unity

I am developing a Mobile game for Android and iOS on Unity. Currently Im in the optimisation stage of development and trying to work out what is the best way to detect device capabilities, with the ...
0
votes
1answer
39 views

Trying to understand why libgdx wipes existing models when creating new ones

I'm coding a simulated brain and I'd like to make an arrow appear when one cell connects to another cell. My output without generating an arrow looks like this: Where each block rendered represents ...
0
votes
1answer
79 views

LibGDX: How to make an object falls with random speed

I'm trying to make an object (ball) fall into position Y and when the ball collides with the base. The sprite changes and along with the change I want the speed of the fall to change according to the ...
0
votes
1answer
21 views

Unable to select MonoDevelop to open XML file from Unity project

I am developing games in Unity but I have encountered a problem. After updating Unity I can no longer find MonoDevelop for editing XML files like my Android Manifest:
1
vote
0answers
146 views

The most popular Resolutions and Aspect Ratios in Android OS 2019

I develop the game with Libgdx framework. When I tried to deal with support multiple screen resolutions it turns out that Libgdx is not following Android approach how to deal with Screen sizes and ...
2
votes
0answers
59 views

What is causing a SIGSEGV in mono_class_vtable_full in Unity for Android?

I'm a developer of a mobile game, and we have Crashlytics in our game. For the latest release for Android, we are having crash reports with the following stack trace, for a number of players: ...
1
vote
2answers
94 views

Null Reference Exception error occurs when trying to override AndroidManifest file in unity?

So I Created A manifest file in Assets/Plugin/Android/. The File contains: ...
0
votes
0answers
10 views

Android SurfaceView - What is the correct approach for Game Object implementing OnTouchEvent?

I am developing a game just for learning. I have a GameView class extending SurfaceView, and a Scene which extends GameView (for evey scene in the game). Each Scene object has a ArrayList variable. I ...
0
votes
0answers
32 views

Unity Blender Android Parallax App

so my question is: from a 3D object made in a blender, let's say a tunnel that i would like to loop or stop it. i would like to get a parallax effect from it. when the gyroscope of the end of this ...
0
votes
0answers
82 views

Augmented reality outdoor tracking using ArCore and GPS

I have a unity android augmented reality application using googles arcore SDK. In the unity application i have a swarm of drones that fly arround the scene. As well as this, i have a 3d model of the ...
1
vote
1answer
86 views

GPU (render time) increase if screen size increase

i create a simple 2d scene in unity 2017.3.1f1 I changed the size (height and width) in the Game View and proflie to see how it affects the rendering.. (below photo) I saw that the rendering time ...
0
votes
1answer
110 views

low FPS when battery is low ( unity android )

i make a simple 2d scene in unity 2017.3.1f1 (only 5 sprite renderer). I realized that when my Android device's battery is under 20 %, the frame rate will be 60 to 30. I did all the optimizations I ...
0
votes
1answer
74 views

How do I implement 3D A* Pathfinding in libgdx?

I am using BDX (Blender with libgdx engine) to create my game. I am not sure on how to implement 3D path finding using A* search. I looked into gdx-ai, but that is for 2D.
0
votes
0answers
27 views

Low fps when drawing semi-transparent color to Canvas (java)

I'm making an Android game and I want to make a darkened background I try to do this with: canvas.drawColor(0x99000000); This works but my framerate drops from a ...
1
vote
0answers
153 views

Unity IAP Subscription

I have a Unity3D Game for Android, in this game I'm using the Unity IAP System, all works fine, but I'm not able to get if the player doesn't have any of the three subscriptions that I have available. ...
0
votes
1answer
45 views

Google Play exclude devices

I have a game that I'm developing in Unity. The game will be released for Android, so I'm working with the Google Play Console. The thing here is that I don't know how to block (Made not available) ...
0
votes
0answers
38 views

Cannot deploy MonoGame project to BlueStack (ADB0000: closed)

I'm using MonoGame 3.6 with Visual Studio 2017 Community and I'm trying to deploy to BlueStack as Android emulator. VS can see Bluestack and permit me to launch deploy but ends with this error: ...
1
vote
1answer
44 views

Unreal Android game crashes after google play integration

I'm fairly new to android game dev but after some months of work I finished making my game in ue4. However, when uploading it to google play on an alpha track and then trying to launch the app, it ...