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.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

How to show light status bar in Android full screen Unity app?

I have a full screen Unity app for Android in which I would like to display the status bar only as an overlay (while NOT also showing the nav bar at the bottom). I have the following code which works ...
0
votes
0answers
14 views

Unreal engine Packaging error for android ETC2

I get the following error while packaging my Unreal Engine project for Android: UATHelper: Packaging (Android (ETC2)): BUILD FAILED in 35s UATHelper: Packaging (Android (ETC2)): ERROR: /bin/sh failed ...
0
votes
0answers
16 views

How to fix image bleeding in front of canvas element [closed]

Unity 2020.3.25f1 URP So, for some odd reason (Only on one of my activities) I'm getting this weird tearing/bleeding issue of a game background image appearing in front of some canvas element buttons. ...
0
votes
0answers
27 views

OpenGL ES black textures

I am trying to create 2D android game using OpenGL ES 2. On most phones this works fine, but one older phone (Huawei P20 lite) shows black rectangles instead of textures. The problem seems to be with ...
0
votes
0answers
25 views

Why can't I achieve the full native mobile Android screen resolution in Unity? Screen resolution in app is throttled to 1080p

I have been building an app in Unity using the UI Toolkit (UI Elements) but I am encountering a strange phenomenon. I am testing on a Samsung S21+ which allows resolutions of 1600x720, 2400x1080, and ...
0
votes
0answers
11 views

How to disable the show/hide animations of the Android navigation & status bars in Unity? (So they instead show/hide instantly)

I need to switch from full screen (no nav/status bars) and windowed (with nav/status bars) in my Unity Android mobile app from one scene to another. I have found the best method is this one: https://...
1
vote
1answer
30 views

Unity Android build crashes randomly

I have an Android game, and everything works perfectly in the Editor, but when I run it on my Android device, it crashes sometimes. This is how it goes: I'll be playing my game, and randomly, or ...
1
vote
2answers
71 views

Disable input and score count in pause menu?

I need some sort of an if statement, which allows me to disable any input and increment score while I'm in the pause menu. The problem is that I don't really understand this kind of pausing code, I'm &...
0
votes
0answers
19 views

How to architect push notifications in a Unity app that is using a PHP back-end for in-app notifications?

I'm working on a mobile game for a client. The tech stack is following: Unity for iOS / Android app Unity Cloud for building the apps Firebase for event analytics PHP/Symfony + PostgreSQL for back-...
0
votes
0answers
21 views

Why can't I open my Unity made APK in Android Studio for debugging?

I have encountered an Android specific issue here with an APK I have made from Unity: Why does the order of these two functions matter? If one goes first they both run. If they're reversed the ...
0
votes
0answers
39 views

Why does the order of these two functions matter? If one goes first they both run. If they're reversed the second fails. Can't see why

I have developed a "Global" GameObject in Unity which loads on the first scene and then persists using the method described here: How to make a singleton "game manager" object/...
0
votes
0answers
75 views

Your Android App Bundle is signed with the wrong key

I get this error when I try upload my Android app bundle (made with Unity) for release on Google Play Console: Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is ...
4
votes
2answers
150 views

How to not cover up the Android/iOS top status bar (eg. with time, network/wifi icons) in mobile Unity app?

I am making an Android/iOS mobile app in Unity. Currently, when I build it and install it (for example from APK to Android) it loads completely full screen covering up the top phone status bar which ...
0
votes
0answers
24 views

How do I debug multi-touch for a Unity on Android platform?

I'm trying to implement multi-touch in my game but there are many bugs so far and I need a way to get info on all of the touches as the game is running. So far I haven't found any way to do this.
0
votes
0answers
14 views

How to implement spelling autocorrect in a TextMeshPro InputField?

How can I implement spelling autocorrect for Unity's TMP InputFields on Android?
2
votes
1answer
137 views

How to play audio in Unity when a mobile game runs in the background or the screen is locked?

I am trying to make a 3D audio player with a retro cassette-like interface. The first thing is to make audio playable smartphone-wise, even when the game is in the background or when the screen is ...
0
votes
0answers
23 views

What happens if i create google play console if i am under 18? [duplicate]

I want to publish my game on google play, but i am under 18. However i asked my parents if they would pay for google play console with their credit card and they agreed. My question is will google ...
2
votes
1answer
41 views

How to dim the device backlight using libGDX?

I have an idea for a very minimalistic game. To fit in with this theme. I want no explicit messages or tutorials etc. I want to experiment with ways to very gently, implicitly prompt the player to ...
0
votes
0answers
55 views

How to lock an image once dragged & dropped in the correct position?

This drag and drop function in the code below works absolutely fine. Here when the correct image is dropped on to its correct place it stays, but how can I lock the image once it's dropped in its ...
0
votes
1answer
28 views

Unity3D: My Admob Setting window isn't showing properly

so i wanted to experiment with google ads using admob. i am following the official guide from google. i downloaded the Unity Package from official github and imported all the stuff. but i am unable to ...
0
votes
1answer
374 views

Unity addressables errors with Android split binary

We're using Unity 2020.3.18f1 and Addressables 1.19.4 (we've also tried 1.18.15) Google requires us to split the game up before uploading it to the google play store. We built the game into an .apk ...
0
votes
0answers
24 views

Why does my game crash when memory usage gets high on iOS, but not on Android?

I'm working on optimizing an existing open-world car game for mobile devices (my question is not about optimization). I found that on Android, if RAM usage exceeds some permitted value, the game ...
0
votes
0answers
198 views

Unity RenderTexture Black when Saving PNG on Oculus Quest/Android

I've scoured the web for a possible solution to my problem with no avail. I'm currently trying to add a screenshot function on the Oculus Quest where a player can take a picture from a secondary ...
0
votes
0answers
65 views

Get C# code from Unity apk

This is the app I built using Unity. The current version of the app is 8. I was stupid enough to lose the code for version 8. Now, I only have code till version 7. This is the code which doesn't have ...
1
vote
0answers
32 views

What may be causing AssetBundle.LoadAsset to freeze the game and device?

My game uses AssetBundles, all located locally in StreamingAssets (although on Android they're automatically put in the .obb file). We use them for almost everything - monsters, areas, music, and... ...
0
votes
0answers
6 views

Stationary touches detected in inspector but not in the build

I want my game to detect when I touch and hold. The touch works both in the editor on my phone (with unity remote) and in the apk build. The touch hold only works in the editor when I play on my phone....
0
votes
0answers
27 views

Issue in launching game in Amazon store

I developed a 2D game in Unity3D for Android. I tried to Release the game in the Play store and Amazon app store. In the Play Store, it's working fine. When comes to the Amazon store the game is not ...
1
vote
1answer
53 views

Unity Light Bugs in Android

I was testing my game, so I made a build to test it on my phone. I noticed that when I play in an android build, it is so darker than when I play in the editor or in a PC build. It looks like this in ...
0
votes
0answers
25 views

Time.timeScale=1 when you close the rewarded ad!

I will add ads and update it in my game, and almost everything is ok, but when I turn off the rewarded ad, the game continues in the background by itself. I control stopping and starting the game with ...
0
votes
0answers
17 views

How do i set up a virtual resolution for a videogame project using android studio?

Please bear in mind that as per xml the only time I've used the canvas element to render graphics was using an html to mess around with on the browser. Andoird of course, uses completely different ...
0
votes
1answer
734 views

Unity stuck on "Installing APK" when "OVR build APK and run" is run

I was trying to make a game for the Oculus Quest 1 with Unity and Oculus plugin. Until yesterday, everything was working fine but now, when I click on "OVR build APK and run" (as I always ...
0
votes
1answer
110 views

How to upload a certificate in Unity for an SSL connection

I am developing a videogame in Unity for mobile devices (Android / IOs) that connects to a server through a TCP connection by socket under TLS1.2. For this reason, my client needs to have the server's ...
0
votes
1answer
65 views

`System.Xml.XmlDocument.Load(Path)` doesn't work on Android

I'm making a little game on Android with Unity. And I use XML file to store different languages using System.Xml. The language selection is done when I first start ...
2
votes
1answer
48 views

Unity intersection of mesh renderers on Android

I’m currently developing a game with Unity and ran into a problem while building for Android. The player and obstacles are mesh renderers (for example cubes & boxes). On iOS and the Unity editor, ...
0
votes
1answer
42 views

Overriding template variables for Gradle generation

I'm using Unity 2020 to build for Android. Unity provides a mainTemplate.gradle file, looks a bit like this. As per Unity docs, there are certain template variables ...
0
votes
1answer
52 views

Can I change an Android IAP's type from Consumable to Non-Consumable?

I was inspecting a bug with one of our old Android games, where a "level pack" in-app purchase was being lost after the player re-installed the game etc. The issue became obvious when I ...
0
votes
1answer
174 views

Unity DontDestroyOnLoad not always working after Android build

I've been using this small script as a component to any object I want to not be destroyed at scene loading. ...
1
vote
1answer
70 views

How to make a Google Play app with paid and free-with-in-app-purchasing versions?

I want to implement an IAP system as well as a fully paid one in my game. There are about 8 levels in my game. I want the paid version to cost around $4 and in case of IAP, each level can be unlocked ...
0
votes
1answer
659 views

RunUAT Error: Automation was unable to run successfully (unreal engine 4.26.2)

I have completed my setup in Mac OS and configured all android dependencies like SDK, NDK, and JDK. but whenever I tried to package my project it shows an error I tried with a completed fresh project ...
1
vote
2answers
73 views

The .apk file for my built game is much larger than expected

Assets of my game are 15 MB, Player Settings are default, but my .apk file is 45 MB. I tried to change Player Settings and convert PNG images to JPEG, but this didn'...
0
votes
1answer
46 views

Can't save Screenshot to Android

so I have a method for taking a screenshot, it works just fine on PC, but I've tried everything and cannot get it to work on Android. I've tried creating custom folders, saving to persistentDataPath, ...
0
votes
0answers
87 views

Can Unity generate two .obb files?

I am porting my Unity console game to android. It is roughly 2.5GB. Assuming that the size cannot be reduced further, is it possible to have Unity generate two .obb files since the limit for each is ...
0
votes
0answers
17 views

Unity Mobile: How can we safely store our API key? [duplicate]

We're making an app in Unity. We're building it for Android and iOS. We also have a server. In order to use our server you need to present our api key for the server. So, we need to store that key in ...
0
votes
0answers
5 views

ARCore: Differentiate between two planes detected in adjacent vertical walls in the room

I'm working on Vertical plane detection. When I'm pointing at wall 1 of my room, plane1 here is the vertical plane detected in wall 1... I'm recording the quaternion via this formula ...
1
vote
0answers
531 views

Unity: Build completed with a result of 'failed' - Native error= mono-io-layer-error (2)

I am getting the following errors in Unity 2020.3.5f1 on macOS 10.15.6, when trying to build for Android: Full errors below. Any help is appreciated. ...
0
votes
1answer
37 views

How to make the automatic movement of an actor and control that it does not go off the screen?

I have an actor in a class who then I put him in the main scene, but I want the actor to move randomly, that is, now he moves to the right, then down ... but controlling that he does not leave the ...
0
votes
0answers
19 views

Get an image from canvas on android?

At the moment I have not worked with android and am not familiar with its capabilities. In the browser, it is possible to get an image from the canvas using the methods ...
0
votes
0answers
24 views

UI Element only showing in sceneview and not game in Unity3D

I have a game and in one part, in the start of a scene its supposed to trigger an animation that shows a UI element that covers the whole screen to make a smooth transition from one scene to another. ...
0
votes
1answer
45 views

Google Play Game Services Detecting Top 3 Players

I used Google Play Services Leaderboard in my Libgdx game. This is what I want to do; I would like to give awards to the best 3 players in this table. How can I help you? It automatically connects to ...
0
votes
0answers
72 views

Unity Android : Game Crashes on Release mode

One of my app in playstore getting to much crash report after last update and that's affect my users and receive negative reviews. I don't know exactly what is the problem, we have test app before ...

1
2 3 4 5
45