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
14 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.
user avatar
1 vote
0 answers
32 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]
user avatar
  • 11
0 votes
0 answers
33 views

Can I use libgdx to create a game that runs on multiple devices?

I created my first game using Libgdx and Android Studio. The game runs smoothly on my Android phone. If you want to run it on an Apple phone with IOS or a computer with Linux etc. how could I do? I ...
user avatar
0 votes
1 answer
9 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 ...
user avatar
0 votes
0 answers
23 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 "...
user avatar
  • 53
0 votes
0 answers
13 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. ...
user avatar
  • 1
0 votes
1 answer
48 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 ...
user avatar
0 votes
0 answers
15 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: ...
user avatar
  • 197
0 votes
0 answers
21 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 ...
user avatar
0 votes
0 answers
14 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 ...
user avatar
  • 679
0 votes
0 answers
411 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....
user avatar
1 vote
0 answers
22 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 ...
user avatar
1 vote
0 answers
169 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 ...
user avatar
0 votes
0 answers
22 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, ...
user avatar
  • 1
0 votes
1 answer
51 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 ...
user avatar
0 votes
1 answer
49 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 ...
user avatar
0 votes
0 answers
47 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 ...
user avatar
  • 1
0 votes
0 answers
171 views

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

...
user avatar
  • 101
0 votes
0 answers
65 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 ...
user avatar
0 votes
0 answers
41 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 ...
user avatar
0 votes
0 answers
126 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 ...
user avatar
  • 197
0 votes
0 answers
13 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://...
user avatar
  • 197
1 vote
1 answer
107 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 ...
user avatar
1 vote
2 answers
139 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 &...
user avatar
0 votes
0 answers
44 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-...
user avatar
  • 183
0 votes
0 answers
45 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 ...
user avatar
  • 197
0 votes
0 answers
47 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/...
user avatar
  • 197
0 votes
0 answers
141 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 ...
user avatar
4 votes
2 answers
705 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 ...
user avatar
  • 197
0 votes
0 answers
39 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.
user avatar
0 votes
0 answers
39 views

How to implement spelling autocorrect in a TextMeshPro InputField?

How can I implement spelling autocorrect for Unity's TMP InputFields on Android?
user avatar
2 votes
1 answer
527 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 ...
user avatar
  • 145
0 votes
0 answers
28 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 ...
user avatar
2 votes
1 answer
49 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 ...
user avatar
0 votes
0 answers
58 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 ...
user avatar
0 votes
1 answer
42 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 ...
user avatar
1 vote
2 answers
647 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 ...
user avatar
0 votes
0 answers
38 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 ...
user avatar
  • 2,428
0 votes
0 answers
261 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 ...
user avatar
  • 1
0 votes
0 answers
99 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 ...
user avatar
1 vote
0 answers
70 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... ...
user avatar
  • 1,599
0 votes
0 answers
11 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....
user avatar
0 votes
0 answers
31 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 ...
user avatar
1 vote
1 answer
110 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 ...
user avatar
0 votes
0 answers
33 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 ...
user avatar
0 votes
0 answers
20 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 ...
user avatar
0 votes
1 answer
883 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 ...
user avatar
0 votes
1 answer
235 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 ...
user avatar
0 votes
1 answer
88 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 ...
user avatar
2 votes
1 answer
64 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, ...
user avatar

1
2 3 4 5
45