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.
2,266 questions
1
vote
0
answers
37
views
Sign out of Google Play Services through code
In the Unity engine, I am using GPGS as a token to log in via Google sign-in. It works, but now I have another issue:
As of the last update of the SDK 2.1., this method in PGS for Unity is deprecated:
...
-1
votes
1
answer
128
views
How to promote an indie game on Android?
I have developed my first indie game (space survival genre) for Android phones, and I want to ask: which promotion channels are best to start with?
0
votes
2
answers
112
views
Why does the skinning equation from a Collada file return a weird animation?
I'm trying to make an animation from a Collada file, but I'm not having any success in animating it correctly. I assume it's an error in the Quartenions class, either during creation from matrices or ...
1
vote
1
answer
187
views
How to properly set up an AR/XR Unity project for Meta Quest 3 to get past the 3 dots loading screen?
I am developing a Meta Quest 3 (v74 for my OS with SDKs version being the lates the time of writing - v72) application in Unity 6 41f1 (and 29f1), where I currently struggle to get the application ...
0
votes
0
answers
89
views
Android ValueAnimator onAnimationUpdate jumps animated values!
ValueAnimator sounds like an awesome way to animate values which can be used on views. But, somehow the animated values are not showing up as they should!
I used this set up before to animate a ...
0
votes
0
answers
31
views
Object::retain crash in Sprite::setFrameFrame(std::string_view) in Axmol
There are multiple crashes where the spriteFrameCache is unable to find a spriteFrame.
This only happens when an Android app ...
1
vote
0
answers
81
views
'You already own this item' Error for consumable items, Immediately after reconnecting Internet for Unity IAP (v4.12.2) and Google Billing (v6.2.1):
Question:
I’m facing an issue with in-app purchases (IAP) in Unity, specifically when using Unity version 2022.3.55f1, Unity In-App Purchasing v4.12.2, and Google Billing v6.2.1 for a consumable ...
0
votes
1
answer
82
views
Consistency of accelerometer controls between devices
I'm thinking of making a game where using the phone accelerometer, the player would apply an appropriate force (adding velocity) to a Box2D body. Now, I know technically how to implement that, but I ...
1
vote
0
answers
118
views
Why are my Addressables working for PC Standalone build but not Android?
I have a CCD pipeline set up using Addressables and they seem to load perfectly fine from Unity's CCD buckets but when I build for Android and test on my mobile device, it leads to a 400 error.
Here ...
0
votes
1
answer
81
views
How to display Moon Phases on Android (simulate rotation)
I've been scratching my head at how to best display a particular mechanic for my RPG which is on Android.
I have a game mechanic where a moon has two opposing faces on it - Life and Death as an ...
0
votes
0
answers
61
views
Android canvas clipping rectangle showing on canvas draw call with paint object that has blurmaskfilter and shadowlayer
I created a game using xml and views on Android. Yes, I know it was not the best choice of development for a 2d game. But, my game is turn based, so mostly static. You can test the game out here: ...
1
vote
1
answer
258
views
How can game developers earn money if they use their own cryptocurrency token in their game?
I have read that players get in-game cryptocurrency tokens when they play a play-to-earn game and then they can use it to purchase in-game items or they can exchange the cryptocurrency tokens to real ...
0
votes
0
answers
735
views
How to protect script files from being revealed by AssetRipper?
I’ve recently been learning how to prevent or secure my Unity game from being extracted. I used AssetRipper to extract someone else’s game, but it was not able to extract the code. Instead, it gave me ...
-1
votes
1
answer
72
views
While testing the game I made in Unity on an Android phone, the game restarted when I tried to open it again while it was in the background [closed]
I made a game in Unity and while testing it on my android phone someone called me and when I opened the game again it didn't continue where it left off. So what I noticed is that when the game goes ...
2
votes
2
answers
83
views
Automate Godot Android Export Version Code Updating
I'm building a Godot mobile game and I'm trying to automate the export process.
I can export the game simply enough:
...
0
votes
0
answers
44
views
MongoDB does not support Unity IL2CPP setup on Android build
The MongoDB system (MongoDB Atlas) does not support Unity's IL2CPP setup on Android.
My build.mongoDB and IL2CPP project is working perfectly in the Unity editor, ...
1
vote
0
answers
58
views
Is there a better format than PNG to store R16uint depth data on Android?
Is there a better format than PNG to store R16uint depth data on Android
I find I get precision artifacts when using ASTC.
3
votes
1
answer
117
views
My Monogame Android game fails to launch on Release build, failing to find ContentTypeReader
Today I struggled with the problem that appears on building my Monogame Android game with Release option. On Debug, everything is OK, but for some reason my game crashes on launch with Release build.
...
0
votes
0
answers
105
views
Unity Audio plays with 5-10 second delay
I have wanted to make something like a rhythm game for Android in Unity, and for that I needed to write an audio manager to play my songs and sound effects in-game. I have followed Brackeys' tutorial ...
0
votes
1
answer
86
views
Broken graphics in a compiled Android application
Why is it that when I compile this application in Unity for Android, the graphics completely break (camera image output). Maybe I need to set something special in the Player settings? I'm using the ...
2
votes
0
answers
110
views
Verifying user app license from server side using Google Play Licensing for paid app
In https://developer.android.com/google/play/licensing/server-side-verification it was said that it is possible to perform license verification check on a server.
The step for server-side license ...
1
vote
0
answers
70
views
Flipped normals and texture flickering on Motorola and Samsung Android phones
What is happening to the textures when playing on the Motorola Android phone?
Deleting and creating new materials doesn't work, the problem persists even with new materials, material overlay or ...
1
vote
1
answer
354
views
Texture loading issue with open gl es on android with multiple SurfaceViews
I'm programming an app with OpenGL ES on Android in Java. The app uses 9 textures during a render loop pass. A depth, position, normal, albedo, noise, SSAO, SSAO blur and two image textures for the ...
0
votes
1
answer
135
views
Building Android .aab from Unity
I have a VR game developed in Unity for Oculus and I want to create an Android App Bundle to upload it to the play store as a mobile game too. When I go into build I select this options:
And here is ...
7
votes
1
answer
2k
views
For Google Play, what kinds documentation can I provide to prove I have permission to use a third party's music in my game?
I'm working on an indie rhythm game for Android that uses pre-existing music. We got the OK from the original artist to use said music on the condition that we release the game for free. However, ...
0
votes
0
answers
235
views
"Unable to create keystore" message from Unity for Android
I want to build a project with a release aab version.
Unity asks me to create a keystore, and when I create one, it show this message:
Android/2023.1.911/Editor/2023.3.0a6/Editor/Data/PlaybackEngines/...
0
votes
0
answers
119
views
How to adjust resolution to display only in portrait mode for both phones and tablet devices?
I am facing an issue where I'm able to adjust the resolution for different phones like Android and iOS but not for tablet devices.
Is there any way to set it, for all kinds of devices, to display only ...
0
votes
0
answers
501
views
Unity Compute Shader InterlockedMin Max not work on Android
I have a Compute Shader which uses InterlockedMin() and InterlockedMax().
The Compute Shader works very well on my PC (AMD ...
0
votes
1
answer
2k
views
Unity Burst Compiler failed — could not load System.Diagnostics.Tracing
I am using Unity 2023.3.f1
When building an Android app I get the following. I have zero idea what this means.
I've tried searching elsewhere but found nothing to fix it.
...
0
votes
0
answers
239
views
Unity fails to build Android player, gives ambigous error
I'm trying to build an android player, (worked like a charm yesterday), and I'm getting a single error when it fails
...
1
vote
1
answer
144
views
Cannot find game library when trying to port game to android
I've been working on a project of mine(a game with SDL3 + OpenGL ES 3.2), and as of right now I want to port it to android with android NDK, I compile my game as a library(compiles and links correctly,...
2
votes
0
answers
1k
views
Unity 2021/2022 laggy/stuttering Android performance compared to Unity 2020
I have been working for quite a lot of time with the Unity 2020.3 LTS releases and everything seems to be running smoothly when building for the Android platform. I recently decided to upgrade the ...
1
vote
0
answers
234
views
How to make custom godot export template for android on linux?
I want to make custom godot export templates for android to use them instead of official export templates on linux. These templates are intended to not include 3d editor, 3d nodes or advanced ...
0
votes
1
answer
286
views
How to improve performance of LiBGDX Android app?
After creating a few bodies and a map with collisions, the app performance clearly goes down. However, RAM and CPU don't seem fully stuck, but the game experience is horrible nonetheless.
GameScreen ...
1
vote
1
answer
331
views
Custom TextMeshPro Shader doesn't render on Android
I wanted to make build of a project using custom shader for TextMeshPro text assets. It renders nicely on PC but It gives me block instead when build for the meta Quest 2. For me it looks like it ...
1
vote
0
answers
47
views
Android TMX library no tile animation
Did anyone use this library? I am wondering if this library has a possibility to display tile animation? When I try to show my "abc_main.tmx" map (created in Tiled application) the tile with ...
1
vote
0
answers
138
views
Animate buttons sliding in
I am developing my first libGDX game.
I want to animate the buttons on the stage, so they transition into view instead of just popping into appearance. For example, each button should slide in from ...
0
votes
1
answer
1k
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 ...
1
vote
1
answer
300
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 (...
2
votes
1
answer
2k
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
343
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
5k
views
Unity saving file on Android
I'm attempting to save player data into a Saves folder like so:
...
0
votes
1
answer
252
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....
1
vote
1
answer
4k
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 ...
0
votes
1
answer
1k
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, ...
1
vote
1
answer
2k
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:
...
0
votes
1
answer
2k
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 ...
0
votes
0
answers
1k
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
396
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
504
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 ...