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
-1 votes
0 answers
50 views

Do you know this game development company? [closed]

I'm currently looking for a reliable game development company to help me with my project, and I've received excellent recommendations about Devoted Studios. Has anyone here worked with them before? I ...
0 votes
1 answer
67 views

Google Play requires new apps to have API level 33 (starting on Aug, 21, 2023). Can these apps be installed and played on phones with lower API's?

Today (March 21, 2023), Google sends out an email to developers as follows: Starting August 31, 2023: New apps and app updates must target API level 33 to be submitted to Google Play (Wear OS must ...
0 votes
0 answers
20 views

"Build Disabled For Android" shown when using command line for build

I use my build server to build my game on GitHub merges. One of the errors I face is: ...
  • 2,524
1 vote
1 answer
31 views

Notification function doesn't work as intended in Godot

I have a situation where _notificaion doesn't work as intended. I have three scenes: game scene (named Puzzle), main menu scene (...
  • 147
0 votes
0 answers
87 views

Gradle build failed after adding ads

There is problem with Android building. After adding ads, when I click on build, it shows the following error: Issue with Android dependencies detected: The SDK has resolved to an incompatible ...
2 votes
1 answer
214 views

What is the "Built-in Texture2D"? How to reduce its size or remove it?

I am building an APK in Unity. The build log says this: ...
0 votes
0 answers
54 views

Use Universal-LPC-Spritesheet-Character-Generator in Android game

I am writing an Android game. I wonder if there is a possibility to use this sprite generator https://sanderfrenken.github.io/Universal-LPC-Spritesheet-Character-Generator/#?body=Body_color_light&...
0 votes
1 answer
343 views

Unity saving file on Android

I'm attempting to save player data into a Saves folder like so: ...
0 votes
1 answer
44 views

Android Specifications : What are the integer values for "small" screen size, "normal" screen size, ldpi, mdpi, hdpi?

Android has this document where they define thee terms for screen size, and pixel density such as screenSize="small", "ldpi". Here is the link to that document: https://developer....
0 votes
0 answers
24 views

How to modify AndroidManifest.xml or any other config files to build the APK for ONLY foldable phones?

I want to build an APK in Unity for ONLY foldable phones. There is a tutorial from Samsung website, but it only tells us how to dynamically resize the app in case of a foldable phone. Unfortunately, ...
1 vote
1 answer
849 views

Can't play my .apk on Pico VR due to Copyright Verification error

I’m learning to use Unity to create VR applications for my company to use internally. I created an app that worked great on the Quest 2, and decided to try to do this for Pico as well. I followed a ...
  • 131
0 votes
1 answer
260 views

Unity App working on one phone but crashes on another with the same API level

I built a Unity AR app which worked on my phone. However, on sharing the APK to another phone with the same Android version, it crashes on startup. I've tried increasing the target API level to max, ...
0 votes
0 answers
67 views

Random near zero FPS drops on Android

In our Unity game, we're seeing a problem that we cannot solve for weeks. At random points in the game, the FPS drops to zero and nothing moves for 3-4 seconds, then everything gets updated in 1 frame ...
0 votes
0 answers
85 views

What do I need to do in order to use RenderDoc to capture a frame in an android app(openglES or vulkan)

I used visualstudio 2022 to create a native activity template project. This project by default, when running on an Android phone, will keep changing the screen colour. After building it to an Android ...
0 votes
0 answers
36 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
33 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 ...
1 vote
1 answer
564 views

WebViewControl.java:122 cannot find symbol when packaging Unreal 4 game for Android

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: ...
  • 13
0 votes
1 answer
579 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 ...
  • 425
0 votes
0 answers
392 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
106 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
351 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
69 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
526 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 ...
  • 461
-1 votes
2 answers
76 views

Error when creating random buttons

...
0 votes
0 answers
34 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
67 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
93 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
24 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
38 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
86 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
40 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
131 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 "...
  • 65
0 votes
1 answer
200 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
428 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
104 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: ...
  • 461
0 votes
0 answers
62 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
36 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 ...
  • 709
0 votes
0 answers
2k 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
2 answers
1k 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
50 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
277 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
151 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
58 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
752 views

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

...
  • 111
1 vote
1 answer
321 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
894 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
136 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
4 votes
2 answers
2k 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 ...
  • 461
0 votes
0 answers
79 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.
2 votes
1 answer
2k 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

1
2 3 4 5
45