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
1 vote
0 answers
32 views

Texture loading issue with open gl es on android

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
53 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 ...
4 votes
1 answer
516 views

Scene2d Stage Actor setup issues

I am creating a game using libgdx. In the same each level has a class. I have stage as a member variable of the class. To this stage, I add actors. Inside the levels class, I have attaced the input ...
0 votes
0 answers
33 views

Unity AAB build breaks with "split application binary" checked

I am currently encountering a challenge similar to the one described by a fellow Unity developer in this forum thread. I am using Unity version 2022.3.10f and configuring asset bundles while building ...
7 votes
1 answer
563 views

On Android, How can I avoid FPS drops during sensor listener setup/tear down?

When I open my Android app after 5 or 10 seconds it sets up the sensor listener, during which I see clear stuttering and the FPS drops for a second to 40 instead of 60. Is there a way to avoid this? ...
1 vote
1 answer
1k 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: ...
8 votes
2 answers
788 views

Android libGDX FreeTypeFontGenerator exception

I am working on a libGDX project for Android. Since I added the following code, running the game on my Android phone produces an exception: ...
1 vote
1 answer
2k views

Change game from portrait to landscape dynamically

I have multiple classes that implement Screen. I want to, say, have the Main Menu screen portrait, then the Play Screen ...
1 vote
2 answers
988 views

LibGDX with SoundPool

I'm developing a game for Android using LibGDX in Android Studio. I recently found out that some sounds in my game fail to play. I noticed that every time a sound fails to play, these are the logs: ...
0 votes
0 answers
38 views

com.android.build.gradle.internal.tasks.compressassetsworkaction

When I build with asset size of above 5gb, it shows "com.android.build.gradle.internal.tasks.compressassetsworkaction" in unity. How to resolve it?. It's a video file. When I use low ...
2 votes
1 answer
509 views

Creating trading card board layout in libgdx

I wanna make a trading card game using libgdx. I have a general idea about how to implement the server side of the game and the game rules, but I don't know how to design the visual interface of the ...
1 vote
1 answer
2k views

What is a good approach to dynamically change actor Position?

In my card game there are 2 players with each player having a hand(a ListArray of of Cards.In this case its ...
7 votes
1 answer
1k 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
30 views

How to keep music playing continuously when switching scenes? [duplicate]

I added music to my game, but it restarts when transitioning between scenes. I want it to play continuously without interruption. What should I do?
1 vote
1 answer
859 views

Get selected string from TextMeshPro input field/text on Android

i am trying to create a tag system for a journal i'm making and that requires being able to select specific parts from either an input field or a text element with the finger (drag and select) and ...
0 votes
1 answer
497 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
0 answers
99 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
44 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 ...
5 votes
1 answer
501 views

How to clip or mask entity in android/andengine?

I want to implement masking with sprite in Andengine. I want same functionality as in ios class called SKCropNode which works like an masking node! Is there any workaround like this in andengine/...
5 votes
1 answer
408 views

LibGdx animation sequence

In my game the character movement animations work fine but now I'm trying to do a sequence of programmatic animations, for an enemy character, and it's proving to be a pain. I'm just doing it on ...
5 votes
2 answers
1k views

Interpolating between positions unfeasible at 30 frames per second?

I am working on a 3D platformer in Unity and I am targeting Android devices. The game consists of a lot of objects smoothly interpolating from the bottom of the screen to the top. This whole time I'...
6 votes
1 answer
699 views

Spawning enemies in four different positions with a fixed trajectory in android game

This is my first android game, I appreciate all the help. I want to define 4 spawning zones starting from out of the screen (left, right, up and down). Enemies coming from this areas have a fixed ...
0 votes
0 answers
128 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
866 views

How to know if mouse coordinates is delta or absolute on Window and Android in Unity?

I wrote sample application, that allows to "rotate" object by mouse. Rotation occured by rotating of camera object around central object and the code is following: ...
0 votes
0 answers
70 views

How to send camera feed to Python script in Unity?

I have an image recognition code in Python and I need the input image to come from the Webcam in Unity. I've seen the Python Scripting package and the method of using a websocket and take the app as ...
1 vote
2 answers
799 views

Problem with animating in Android, using batcher.draw in LibGDX

I am having a problem with the last part of the GameRenderer class. I call batcher.draw() and receive this error: The method ...
1 vote
2 answers
441 views

SurfaceView shows black screen

My code does not work correctly. SurfaceView shows a black screen instead of Bitmaps. I make a game loop that doesn't depend on CPU, like Fix Your Timestep!, but I can't get it to work. ...
2 votes
1 answer
2k views

Multiple enemy array in LibGDX

I am trying to make a multiple enemy array, where every 30 secods a new bullet comes from a random point. And if the bullet is clicked it should disapear and a pop like an explosion should appear. And ...
0 votes
1 answer
490 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. ...
5 votes
1 answer
2k views

libGDX using Stage and Actor produces different camera angles on desktop and Android Phone

libGDX using Stage and Actor produces different camera angles on desktop and Android Phone. Here are pictures demonstrating the problem: http://brandonyuh.minus.com/mFpdTSgN17VUq On the desktop ...
0 votes
0 answers
472 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 ...
1 vote
2 answers
942 views

Pressing two buttons on Android with same thumb touch. UI Event Triggers not working

NOTE: See bottom of the question as I have managed to use a workaround which works to press the two buttons at once on Android (thanks to Douglas Potestas help) I've struggled with this in the past ...
1 vote
0 answers
119 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 ...
5 votes
1 answer
2k views

Unity Capture And Display Live Camera Feed

I want to display the video using the device camera on specific part of the screen on iOS, android and Editor. I was able to find the WebCamTexture which display the camera video on the Quad (3D ...
0 votes
0 answers
49 views

Jagged peak artifacts on terrain

My terrain rendering shows these jagged peaks along the edges of some hills: Why do these occur, and how can I fix this? Here is the code I use to initialize my surface and draw a frame: ...
0 votes
0 answers
63 views

GooglePAD and Chunking to Reduce .aab Size

I would like to upload a large Android game to the Play Store. My .aab file is about 1.3 GB in size. When I try to upload it to the Play Store I get the following error message: ...
0 votes
1 answer
582 views

Script Component not Being detected by Vuforia's Default Trackable Event Handler Script

I have a Script Component named Start inside a GameObject named StartSpawn and I am trying ...
0 votes
0 answers
125 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 ...
0 votes
1 answer
2k views

Unity app crashes when using unmodified custom Android manifest (didn't find class "UnityPlayerActivity")

Note: I find/replaced my actual company name with 'companyname' below for anonymity, it's not the actual package name I am using. I have Unity 2018.4.11f1 LTS and the platform I'm having issues with ...
0 votes
0 answers
41 views

list of il2cpp breaking features

as you may know, il2cpp build does not work like mono build or playing just in the editor. there are some c# features or libraries/plugins that make il2cpp doesn't work properly. most of the time ...
2 votes
1 answer
506 views

Cannot draw around the screen after zooming out with LibGDX projection coordinate

I've just started developing game in android using LibGDX. I've follow some samples and now my simple game can draw path when user move their finger around the screen. now problems appear when i add ...
6 votes
3 answers
2k views

Counting multiple touches using Cocos2dx 3.2

I'm trying to count the number of active touches in screen in order to perform an an action in case that there are two touches: ...
1 vote
1 answer
69 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,...
0 votes
1 answer
124 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
0 answers
607 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 ...
4 votes
2 answers
3k views

How can I get the pressure of a touch in Unity?

Does anyone know how to get the getPressure function from the Android API into Unity? Or is there another way I can access the pressure of a touch?
0 votes
0 answers
30 views

Using Maps SDK for Android in Unity

I just started a project on Unity, where I'm a total beginner. I want to use Google Maps road data from Unity for my mobile game, and I've first looked at using the Maps SDK for Unity. Unfortunately ...
0 votes
1 answer
132 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 ...
3 votes
1 answer
3k views

In Unity on Android, how can I rotate an object with the accelerometer?

I'm making a game where you control a platform with balls falling on it, and you have to balance the balls and prevent them from falling off. I'm currently using a mouse to control it with this code: ...
0 votes
0 answers
50 views

Sprite Asset Optimisation

I am writing a game for Android which combines open world questing and an RPG party development playstyle, and as such, I am finding it a very tight balancing act to get more content into that game ...

1
2 3 4 5
46