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
5 votes
2 answers
715 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'...
8 votes
2 answers
764 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: ...
0 votes
1 answer
88 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. ...
-3 votes
1 answer
163 views

Getting the message get is playing is not allowed to play from a monobehaviour constructor

So I suddenly started getting this error when building apks http://imgur.com/a/Y5BWf most of the times unity ends up building a half sized apk that wont even run on mobile. Also at the end of the ...
1 vote
1 answer
1k 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
1 answer
651 views

LibGDX - blurred textures when resizing

Hi could anyone help me solving the problem of blurred texures? My viewport screen have 800px of height and 480-600px (for different aspect ratios) of width and when I test game on smartphone with ...
1 vote
1 answer
104 views

Can't play my .apk on Pico VR due to Copyright Verification error

I’m learning to use Unity to create VR applications for my company to use internally. I created an app that worked great on the Quest 2, and decided to try to do this for Pico as well. I followed a ...
0 votes
1 answer
470 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
1 answer
1k views

Using AdMob with Games that use Open GLES

Can anyone help me integrating Admob to my game. I've used the badlogic framework by MarioZencher ... and My game is like the SuperJumper. I am unable to use AdMob after a lot of my attempts. I am new ...
1 vote
1 answer
363 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.
2 votes
1 answer
488 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 ...
0 votes
1 answer
27 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, ...
5 votes
1 answer
1k views

How to delete Google Play Services?

I want to delete Google Play Services in the Google Play Developer Console, but I can't. Here is what I did: I published my game to Google Play without Google Play Services. I decided that I want ...
0 votes
0 answers
15 views

Random near zero FPS drops on Android

In our Unity game, we're seeing a problem that we cannot solve for weeks. At random points in the game, the FPS drops to zero and nothing moves for 3-4 seconds, then everything gets updated in 1 frame ...
6 votes
1 answer
2k views

LibGDX: Is it necessary to set a stage as an input processor when creating a touchpad?

I mean, I've been searching it, they always use set a stage as an input processor after they had added the Touchpadto the Stage ...
0 votes
0 answers
28 views

What do I need to do in order to use RenderDoc to capture a frame in an android app(openglES or vulkan)

I used visualstudio 2022 to create a native activity template project. This project by default, when running on an Android phone, will keep changing the screen colour. After building it to an Android ...
2 votes
1 answer
461 views

How can i get object from TMXTiledMap and store it in Dictionary variable ? [duplicate]

I've been following a tutorial to make tiled map in cocos2d x 3.0 , but i couldnt complete the rest of the tutorial because its for coco2d x 2.0 version, How can i get a value of property that is ...
1 vote
1 answer
468 views

Game-App deep linking is working in all android phone, but it is not working in tablets . Do i need to add any manifest code to work it in Android?

This is my manifest, which is used for App indexing auto complete and deep linking.
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 ...
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 ...
1 vote
1 answer
760 views

Unity Android IAP "Purchase failed because Purchasing was not initialized correctly"

What I have IAP button is working perfectly in unity editor. After purchasing, i'm getting debug message "ProcessPurchase: PASS. Product: 'full_version'" . But the button does nothing when I ...
0 votes
1 answer
200 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 ...
5 votes
2 answers
556 views

Weird shader behavior on different devices

I'm trying to combine an ordinary shader with a Single Distance Field shader (for fonts and scalable icons) into one shader program. The idea is simple - if uv.x is less than 1.0, it is drawn as ...
0 votes
0 answers
32 views

MobileVRInterface is slow / delay

I created an empty project, added a VR Origin + a VR Camera and added the following script to the spacial root: ...
4 votes
2 answers
2k views

Libgdx Scene2D Table background not showing up

I am using Libgdx's Scene2D API to build my UI and everything has been working as expected until now. I created a Skin and a ...
1 vote
2 answers
774 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 ...
0 votes
1 answer
575 views

How to implement a Trail using Cocos2dx

I'd like to implement a trail (like the white circles in Angry Birds) that chase my sprite. I already used CCMotionStreak, but the trail texture is "stretched" instead. Anyone has an idea how to make ...
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: ...
0 votes
0 answers
30 views

Monitor all outgoing requests from a mobile app

How to monitor all outgoing requests sent by the app and any of the installed packages, including trackers? For example, a Firebase Analytics SDK collects various data about the app users and their ...
0 votes
2 answers
4k views

Button to call Application.OpenURL not working

I have a public method public void patreononclick(){ Application.OpenURL("http://www.patreon.com/HubakaGs"); } This is supposed to open my Patreon ...
5 votes
1 answer
484 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/...
0 votes
1 answer
249 views

Separate parts of a game engine [closed]

I'm pretty new in developing videogames. By now I only used SDL with C/C++ to create games. I'm currently learning OpenGL and I realized that to be fluid and easy to maintain the code must be ...
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 ...
1 vote
1 answer
247 views

Unity Android build crashes randomly

I have an Android game, and everything works perfectly in the Editor, but when I run it on my Android device, it crashes sometimes. This is how it goes: I'll be playing my game, and randomly, or ...
0 votes
0 answers
257 views

ue4 android packaging problem (WebViewControl.java:122 cannot find symbol)

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: ...
0 votes
0 answers
151 views

UnityEngine.AddressableAssets.InvalidKeyException

Unity version 2020.3.20f1. I am getting this error in the console. The game is working fine in Unity but not in the apk. In apk the scene is loading finely but throwing this error and the characters ...
0 votes
1 answer
664 views

Accessing soft keyboard on Android via Monogame

I have a game built in Monogame targeting the Android and iOS platforms. I need to develop a login form for the game. I've begun to roll out my own UI components (text inputs, buttons, so forth), as I'...
1 vote
0 answers
47 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. ...
3 votes
1 answer
5k 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 ...
9 votes
2 answers
1k views

Libgdx black rectangles problem

I'm working on a game for Android using Android Studio with LibGDX in Java. I recently found a weird problem when closing and reopening the game. When I first open the game, it works fine. If I click ...
5 votes
2 answers
7k views

Is there a way to check android version running the game using Unity3D?

I want to separate code to run only on android 4.4 or higher. If it's lower, I do not want to run this code. What should I do?
7 votes
1 answer
533 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? ...
0 votes
2 answers
180 views

Determine line that threw an Exception using Android Logcat

I just installed Android logcat to debug my game from Unity's package manager. I don't fully understand how it works or in what order the logs are shown relative to my code. The problem I have is that ...
1 vote
1 answer
256 views

How to insert animation into table?

I'm having trouble inserting animation into my libGDX table cell. I have a class which holds 2 tables, one on the left and one on the right. First table is for labels/buttons/other stuff. Second table ...
4 votes
1 answer
211 views

android - How Do I Replace A Scene in Cocos2D

I am using Cocos2D for Android: I have two scenes MainScene and LogoScene. I want to show a Splash screen on ...
0 votes
1 answer
780 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
1 answer
300 views

Libgdx can't read .ttf file when running Android configuration

Firstly, I am aware that a similar question was asked some time ago that went unanswered. Currently, it has multiple upvotes but no answer. The error ...
0 votes
1 answer
124 views

Multiple Bitmaps in Rectangle area

I am trying to build a card based game in which a card is added to player after every round. To win the match player has to remove all cards from his deck. However I have also drawn some additional ...
4 votes
1 answer
500 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 ...
1 vote
2 answers
948 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: ...

1
2 3 4 5
45