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
1answer
15 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
29 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
36 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
10 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 ...
0
votes
1answer
21 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 ...
1
vote
1answer
52 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
61 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
37 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
67 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
25 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
20 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
4 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
73 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
18 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
16 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
16 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
35 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
22 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
21 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
0answers
73 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
17 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
72 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
0answers
91 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
31 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
70 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
42 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
119 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
140 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
21 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 ...
1
vote
1answer
52 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
73 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
961 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
66 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
144 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 ...
0
votes
0answers
208 views

Android - Canvas.drawBitmap gives an awful performance

I am using SurfaceView for my game and I am loading all of the bitmaps that are the right size for the screen (pre-scaled in mipmap folder) into a class when the game starts. And I am drawing the ...
0
votes
2answers
222 views

Can I mod Among Us mobile so people don't get kicked because of network problems, and how? [closed]

I want to make a mod for Among Us which will allow people to stay in game despite short-lived connection problems (as opposed to being kicked after 1 second of network issues).
2
votes
0answers
19 views

Building multiple android apps via script does not trigger Resolving Android Dependencies

I have a Unity Project which builds a number of smartphone android apps Anytime I need to build an app I have a script (SetupApp) that move a bunch of assets in the Resources folder and changes the ...
0
votes
0answers
31 views

Persisting save data on uninstall without sign in

I am looking for ways to keep a unique link between a user's device and their account without requiring users to sign into an account. The kind of system I am looking for is one like the game AFK ...
0
votes
1answer
37 views

How Do I Separate Dragging My Finger On Joystick And Swiping?

I am currently making a 2D top-down view shooter game for Android, where the game is played horizontally. On the left side of the screen, you can touch anywhere to spawn in a joystick and aim by ...
0
votes
1answer
193 views

Unity facebook sdk 'Didn't find class “com.facebook.FacebookContentProvider”' any more fixes / workarounds for this?

How to replicate this error... Create a new Unity project. Import the facebook sdk unitypackage Set your App Id for facebook via Facebook\Edit Settings Using Assets\External dependency manager\...
0
votes
0answers
10 views

concerns about android apk compatibility

Hi everyone =) i'm planning on making a game on Unity, the idea is that my friends could play the game, as mostly of them do not own a computer, it should be developed for android. Two of my biggest ...
0
votes
0answers
24 views

NDK opengl-es unknown error

Projection matrix? Renderer? Where is the error? I recently started studying NDK to create better performing android games ... but ... An error I didn't expect to deal with appeared a few weeks ago ...
0
votes
1answer
25 views

Android Game - Screen Flickers When an Entity Removed From The List

I am using Canvas in my android game. When I remove a no longer displayed entity in my entity list, all other entities are flickering for a brief time. When it's not removed, there is no such problem. ...
0
votes
0answers
31 views

Libgdx game lags on better phones

I'm developing a candy crush game and it works just fine on desktop, my mobile (Honor9) and the one I'm using as emulator. But, for my surprise, it lags on my girlfriend's mobile, which is way better ...
0
votes
0answers
35 views

How to add sprite batch on tile in isometric map in Libgdx

I'm using Libgdx to create an isometric game , but now I have problem. I want to add sprite on tile (3,4) , but I can't do this, so I searched on stackoverflow , and I found this code :- ...

1
2 3 4 5
44