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
32
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:
...
0
votes
2
answers
111
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 ...
0
votes
0
answers
83
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 ...
1
vote
0
answers
79
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 ...
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
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: ...
0
votes
0
answers
728
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 ...
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:
...
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.
0
votes
0
answers
104
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 ...
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
1
answer
352
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 ...
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
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
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.
...
1
vote
1
answer
142
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,...
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 ...
1
vote
1
answer
317
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
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 ...
1
vote
1
answer
299
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 (...
0
votes
0
answers
341
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
251
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
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, ...
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 ...
1
vote
0
answers
393
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. ...