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
30 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
126 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
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 ...
1 vote
1 answer
182 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
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 ...
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
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 ...
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
79 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
257 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
726 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: ...