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
0answers
22 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 ...
0
votes
0answers
21 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 ...
0
votes
0answers
30 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 ...
0
votes
0answers
38 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 ...
2
votes
0answers
27 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... ...
0
votes
0answers
5 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....
1
vote
0answers
26 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 ...
0
votes
1answer
29 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 ...
0
votes
0answers
24 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 ...
2
votes
0answers
16 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 ...
2
votes
1answer
571 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 ...
0
votes
1answer
33 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 ...
0
votes
1answer
50 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 ...
2
votes
1answer
41 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, ...
0
votes
1answer
21 views

Overriding template variables for Gradle generation

I'm using Unity 2020 to build for Android. Unity provides a mainTemplate.gradle file, looks a bit like this. As per Unity docs, there are certain template variables ...
1
vote
1answer
33 views

Can I change an Android IAP's type from Consumable to Non-Consumable?

I was inspecting a bug with one of our old Android games, where a "level pack" in-app purchase was being lost after the player re-installed the game etc. The issue became obvious when I ...
2
votes
1answer
87 views

Unity DontDestroyOnLoad not always working after Android build

I've been using this small script as a component to any object I want to not be destroyed at scene loading. ...
2
votes
1answer
62 views

How to make a Google Play app with paid and free-with-in-app-purchasing versions?

I want to implement an IAP system as well as a fully paid one in my game. There are about 8 levels in my game. I want the paid version to cost around $4 and in case of IAP, each level can be unlocked ...
0
votes
1answer
228 views

RunUAT Error: Automation was unable to run successfully (unreal engine 4.26.2)

I have completed my setup in Mac OS and configured all android dependencies like SDK, NDK, and JDK. but whenever I tried to package my project it shows an error I tried with a completed fresh project ...
2
votes
2answers
69 views

The .apk file for my built game is much larger than expected

Assets of my game are 15 MB, Player Settings are default, but my .apk file is 45 MB. I tried to change Player Settings and convert PNG images to JPEG, but this didn'...
0
votes
1answer
28 views

Can't save Screenshot to Android

so I have a method for taking a screenshot, it works just fine on PC, but I've tried everything and cannot get it to work on Android. I've tried creating custom folders, saving to persistentDataPath, ...
0
votes
0answers
40 views

Can Unity generate two .obb files?

I am porting my Unity console game to android. It is roughly 2.5GB. Assuming that the size cannot be reduced further, is it possible to have Unity generate two .obb files since the limit for each is ...
0
votes
0answers
17 views

Unity Mobile: How can we safely store our API key? [duplicate]

We're making an app in Unity. We're building it for Android and iOS. We also have a server. In order to use our server you need to present our api key for the server. So, we need to store that key in ...
0
votes
0answers
5 views

ARCore: Differentiate between two planes detected in adjacent vertical walls in the room

I'm working on Vertical plane detection. When I'm pointing at wall 1 of my room, plane1 here is the vertical plane detected in wall 1... I'm recording the quaternion via this formula ...
0
votes
0answers
234 views

Unity: Build completed with a result of 'failed' - Native error= mono-io-layer-error (2)

I am getting the following errors in Unity 2020.3.5f1 on macOS 10.15.6, when trying to build for Android: Full errors below. Any help is appreciated. ...
0
votes
1answer
25 views

How to make the automatic movement of an actor and control that it does not go off the screen?

I have an actor in a class who then I put him in the main scene, but I want the actor to move randomly, that is, now he moves to the right, then down ... but controlling that he does not leave the ...
0
votes
0answers
18 views

Get an image from canvas on android?

At the moment I have not worked with android and am not familiar with its capabilities. In the browser, it is possible to get an image from the canvas using the methods ...
0
votes
0answers
19 views

UI Element only showing in sceneview and not game in Unity3D

I have a game and in one part, in the start of a scene its supposed to trigger an animation that shows a UI element that covers the whole screen to make a smooth transition from one scene to another. ...
0
votes
1answer
38 views

Google Play Game Services Detecting Top 3 Players

I used Google Play Services Leaderboard in my Libgdx game. This is what I want to do; I would like to give awards to the best 3 players in this table. How can I help you? It automatically connects to ...
0
votes
0answers
14 views

Unity Android : Game Crashes on Release mode

One of my app in playstore getting to much crash report after last update and that's affect my users and receive negative reviews. I don't know exactly what is the problem, we have test app before ...
0
votes
0answers
23 views

How to Show Daily Notification Using Libgdx Alarm Manager?

In a game written in Libgdx, I want to show users some daily notifications with the help of alarm manager. These notifications will be independent of Firebase. In other words, I will not send the ...
0
votes
1answer
30 views

Box2d: High screen resolution / frequency causes high friction?

I'm using Cocos Creator with (built-in) box2d for physics. Recently our game behaves weirdly on our new device Galaxy S20 Ultra 5G - which has screen size = 1440 x 3200 - frequency = 120Hz. After stop ...
0
votes
1answer
97 views

Black screen after unity updated to 2019.4.17and later on Android

I upgraded my app from Unity 2019.4.9 to 2019.4.21. it seems to work fine in the editor, but on my Android build I just get a blank screen. No splash screen, no app main window. I've been able to ...
1
vote
1answer
18 views

Maintaining facing direction at the end of a movement

I want to make my 2D top-down walking animation stop and revert to the idle animation while continuing to face in the same direction as the previous movement. For example, when I go up then stop, my ...
0
votes
0answers
10 views

Application stops working when I add two fonts

I created a game that has two fonts. Being precise, the two fonts are PRESS_START_2P with the difference only in size. One of the fonts serves to write the title and the other for all other things. ...
0
votes
0answers
84 views

Framerate drop from 160 to 56-59 when upgrading Unity to 2020

I just updated to Unity 2020.2 from Unity 2019.4. I use Ubuntu 2020.10. Everything is super fast but the framerate is less than 60 FPS, precisely between 56 and 59 FPS, for all my Android project. ...
0
votes
1answer
128 views

How to integrate Firebase to Libgdx?

I have an android game built with libgdx and what I'd like to do is to add some kind of authentication so I can connect the game with user data to firebase database. I have some experience with ...
0
votes
1answer
42 views

Why does Ads (Rewarded Video or Intersititals) in games skips when you press home and tap on games icon in Android?

I have stumbled upon an issue wherein Android when I play rewarded video or any interstitial and do following steps: In the middle of a video Ad I press the home button Resume back from background ...
1
vote
1answer
98 views

How can I obtain the file size of a Unity build at runtime?

I'm wondering if it is possible to obtain the filesize of a game's build at runtime. Searching this topic only yields results for reducing the build size, which is not at all what I'm looking for.
0
votes
0answers
53 views

ADMOB: Why my match rate never increase?

I have a game deployed in the store, here are some app and admob metrics: It makes ~120k requests per day It have ~800 active devices in the last 30 days It have less than 1% match rate(~0.3%) Some ...
0
votes
0answers
164 views

Internet Access is always set to required in unity android player settings

I am using unity 2019.4.2f1, I want to remove the internet access permission from the final android manifest file created by unity but, because this option is locked I am not able to remove the ...
0
votes
0answers
172 views

Input.GetKeyDown not working while Unity Remote is running?

I have this simple code: void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { Debug.Log("Escape"); } } When I test it... In the ...
1
vote
0answers
21 views

Parallax camera is not independent from the stage camera

I have a weird camera problem that I can't solve! I add my actors to the main stage and use its camera too. Actors are constrained within the screen viewport. I also have a second camera that I use ...
0
votes
0answers
26 views

Should I preload interstitial ads when my game starts?

I just recently added interstitial ads to my game. I loaded my interstitial ads when the main game actually starts so it wouldn't take long to load after the user exits to the menu, but on profiling ...
2
votes
1answer
54 views

How can I let the user choose his own background image?

Dear Stackoferflow Fourm I would like to have a function in my Android Game Programming that allows the user to choose his own background image (I would like to let the user change the plane image) ...
0
votes
0answers
74 views

How do I solve this physics slowdown?

within 10-20 min without touching the android game it would lag. Here is the Unity Profiler Debug. This if the fish clicker script where I started noticing lag. ...
1
vote
1answer
2k views

Unity FPS Drop on Android Low end devices

I have stumbled upon an issue that is now taking a lot more time than I assumed. I have a game that has a lagging issue and I have tried almost all techniques that I could remember to fix that but now ...
0
votes
1answer
61 views

My own game disappears after installation on Google play store

I have a problem where I just installed my own game I made into my phone, but however my game just appears to be not be openable it just shows one button "Uninstall", instead of open. I do ...
0
votes
0answers
84 views

Configure VR support that enables to "look" around and receive user input (Google Cardboard button)

When the user moves the head this means that the phone in the HMD also moves and there are sensors that can detect the direction of the phone so that the image can update correctly. Also to note that ...
-3
votes
2answers
186 views

how to find the game engine of an app in play store [closed]

I would like to know if there is a way to find which game engine a game uses, especially games that are on play store Also I want to know if decompiling the app will help? if there is another way to ...

1
2 3 4 5
45