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
0 answers
17 views

MobileVRInterface is slow / delay

I created an empty project, added a VR Origin + a VR Camera and added the following script to the spacial root: ...
0 votes
0 answers
29 views

Monitor all outgoing requests from a mobile app

How to monitor all outgoing requests sent by the app and any of the installed packages, including trackers? For example, a Firebase Analytics SDK collects various data about the app users and their ...
0 votes
0 answers
77 views

ue4 android packaging problem (WebViewControl.java:122 cannot find symbol)

Whenever I try to package my project for android I get this. Z:\app\src\main\java\com\epicgames\ue4\WebViewControl.java:122: error: cannot find symbol My setup: ...
  • 3
0 votes
1 answer
73 views

Duplicate class errors when building app larger than 150mb with Android App Bundles

I have been trying to get Asset Bundles to work since my app is larger than 150MB, but the Google -> Build Android App Bundle... step keeps failing on me. I am ...
  • 335
0 votes
0 answers
39 views

UnityEngine.AddressableAssets.InvalidKeyException

Unity version 2020.3.20f1. I am getting this error in the console. The game is working fine in Unity but not in the apk. In apk the scene is loading finely but throwing this error and the characters ...
1 vote
0 answers
36 views

Mobile device heat up. What time before it heats up is considered good? Android/IOS Unity [closed]

could not find anything that answers this in a detailed way ? I managed to optimise the game to the point that the device heat up(real heat up and frame drop) only after 90 min of continuous gameplay. ...
0 votes
0 answers
76 views

How to solve andriod build problem?

I downloaded Unity 2021.3.6f1 from Unity Hub for Windows and Android Build but Unity didn't download the gradle which is required for Android build so i download gradle 7.5 and linked it to unity but ...
1 vote
0 answers
27 views

Libgdx table contents are expanding beyond widget bounds

I have a libgdx table that initially looks like this... And I'd like the last cell to expand so that the logical bounds fill the widget bounds. As soon as I set the last cell to expandX it looks like ...
1 vote
0 answers
139 views

How to hide the TouchScreenKeyboard's input field in Unity on Android?

Unity for Android suggests that you can hide the TouchScreenKeyboard's input field with the command TouchScreenKeyboard.hideInput. Superficially this looks like it ...
  • 419
-1 votes
2 answers
76 views

Error when creating random buttons

...
0 votes
0 answers
26 views

How to increase performance of Android AR scene

I'm wondering how to improve speed on this scene for AR on Android, since it's still sluggish. From what I could see, Unity instanced the particle system meshes automatically (is that correct?). I'm a ...
1 vote
1 answer
47 views

Google Play Games achievements have 0xp

I'm currently working on adding achievements to an existing game. Achievements are not published yet. When unlocking an achievement, we have system popup that says it gained 0xp. Every achievement ...
0 votes
0 answers
34 views

How to shade the whole Google Map except for radii?

I am implementing line-of-sight into a strategy game I am developing, and I would like to shade the map darker outside of the LoS of the player and their structures (fog of war). The trick is, this is ...
0 votes
0 answers
18 views

How to see if an entity is on screen for rendering in android?

I am trying to make my app render only entities that are on screen/in view at the given moment. How can I identify objects that are in view? App is in java.
1 vote
0 answers
36 views

Can you please try my game? [closed]

I have a game on Google Play finally. I have zero budget. Can you please try it and tell me what you think? Thank you. [Link removed by moderator]
  • 11
-1 votes
1 answer
63 views

Can I use Libgdx to create a game that runs on multiple platforms?

I created my first game using Libgdx and Android Studio. The game runs smoothly on my Android phone. How can I run it on an Apple phone with IOS or a computer with Linux etc.?
0 votes
1 answer
16 views

Error using Asset Manager for loading files from Android temp directory (libgdx)

I'm creating a game for Android using libgdx and Google Firebase for storage. In my Loading screen I download a file from Google Firebase Storage and store it in a temp file. After the dowload ends ...
0 votes
0 answers
85 views

Unity Oculus Quest 2 freeze when building

I wanted to export a project directly on a Oculus Quest 2, the project works well on PC with Oculus Rift and Quest 2 in air link but when I try to export it to the Quest device, It get stuck on "...
  • 53
0 votes
0 answers
38 views

SurfaceView shows black screen

My code does not work correctly. SurfaceView shows a black screen instead of Bitmaps. I make a game loop that doesn't depend on CPU, like Fix Your Timestep!, but I can't get it to work. ...
  • 1
0 votes
1 answer
246 views

Unity Firebase Analytics is not working

I have been working on a new project in Unity 2021.2.12, where we need to implement Google Analytics. I have done as follows: Imported Firebase Analytics package Added the services.json file to the ...
0 votes
0 answers
56 views

Unity/Android throttles resolution to 1080p on mobile and returns Android status bar height of 0 when system running at 1440p?

I understand we can usually get the height of the Android status bar with: ...
  • 419
0 votes
0 answers
34 views

Dynamic Code Loading on Android platform

I have read a few articles on Dynamic code Loading for the Android platform Dynamic Code Loading in Android Load DEX file dynamically on Android 5.0 Custom Class ...
0 votes
0 answers
19 views

How do I get "Gamer name" of current player from Google play games on android?

I'm using Google play games java sdk on android, logging through standard sign in Mechanism and requesting Games_Lite scope. After it succeeds I retrieve the Google account object but none of the ...
  • 699
0 votes
0 answers
1k views

UnityPlayerActivity.java uses or overrides a deprecated API

I am making a simple 2D game. When I imported the Google Play Ads Services, it is showing some error when I build it: \Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity....
1 vote
0 answers
38 views

Which maps service should i use in unity for a similar game like pokemon go/ Jurassic world alive [closed]

I want to create a game where i spawn some kind of catchable monsters on the map, and few other objects which trigger different mechanisms like looting treasures, watching landmarks, entering raids or ...
1 vote
1 answer
578 views

Unity Android IAP "Purchase failed because Purchasing was not initialized correctly"

What I have IAP button is working perfectly in unity editor. After purchasing, i'm getting debug message "ProcessPurchase: PASS. Product: 'full_version'" . But the button does nothing when I ...
0 votes
0 answers
36 views

Problem to show more than one texture in OpenGL

I'm trying to build a dodecahedron dice. The problem I face is that I'm not able to show more than one texture. I have 12 textures, one for each face. I guess the problem is on the fragment shader, ...
  • 1
0 votes
2 answers
134 views

Determine line that threw an Exception using Android Logcat

I just installed Android logcat to debug my game from Unity's package manager. I don't fully understand how it works or in what order the logs are shown relative to my code. The problem I have is that ...
0 votes
1 answer
98 views

One sqlite db per savegame or one big sqlite db for all the savegames?

when you develop a simple local game, with 4 slots for history mode, wich option is better to persist the savegame of the history slot openned by the user? The game has 4 entities with some simple ...
0 votes
0 answers
52 views

Texture quality depends on the number of stacks/sectors of the sphere in OpenGL

I'm trying to display bitmaps taken from the camera in 3d spheres in OpenGL. The problem I faced is that these images are displayed in a very low resolution. After try some things, I realize that the ...
  • 1
0 votes
0 answers
451 views

Unity Game App runs fine on editor but crashes at startup on Android

...
  • 111
0 votes
0 answers
94 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
0 answers
61 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
0 answers
398 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 ...
  • 419
0 votes
0 answers
14 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://...
  • 419
1 vote
1 answer
194 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
2 answers
443 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
0 answers
95 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-...
  • 183
0 votes
0 answers
103 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 ...
  • 419
0 votes
0 answers
63 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/...
  • 419
0 votes
0 answers
214 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
2 answers
1k 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 ...
  • 419
0 votes
0 answers
44 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
0 answers
78 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
1 answer
1k 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 ...
  • 145
0 votes
0 answers
33 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
1 answer
55 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
1 answer
54 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 ...
1 vote
2 answers
834 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
0 answers
172 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
2 3 4 5
45