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

Data visualisation tool based on games played by user

I am a complete beginner in android development and for self-learning purposes thinking of creating a visualisation tool where different progress graphs of user's high score vs time or latest scores ...
1
vote
0answers
21 views

Android problem with onTouchEvent

I'm making some sort of clone for FlappyBird, but with some adjustments. I want to change from the FlappyBird's mechaninc of jumping to make the bird raise as long as the player is long-pressing the ...
0
votes
0answers
14 views

Pinch in zoom in android

In My layout parent as Relative layout and then am having Scroll view inside Linear layout now am having child views as Image view Text View Web view and Recycle view and 2 buttons is there now i ...
0
votes
1answer
55 views

Unable to destroy collider Unity3d

So I was making an android game in unity3d. I wrote a script to draw straight lines with touch what I do is I first create a gameobject named temp and add line renderer to it and give the line ...
0
votes
1answer
1k views

How to make a proper release build - Unity Android - x86, ARM32, ARM64

I'm trying to create a release on Google Play. I currently have Build App Bundle checked in the build settings, and it helps decrease the build size. In player ...
0
votes
1answer
213 views

How to get collision area within a circle in libgdx

I have a ball inside of a multi-colored circle, the ball will hit the inner area of the circle like this bellow circle image And the Circle will be rotated clockwise or anti-clockwise based on user ...
1
vote
1answer
93 views

Is it always necessary to synchronize rendering in a game loop?

When writing a game loop from scratch in java for an android game applications, it is very common in many tutorials I have read that the keyword synchronized is used to synchronize update and ...
1
vote
1answer
459 views

Textures in build duplicated, despite they're packed into atlases

I have a simple SpriteAtlas: "UIAtlas" which is located in the Resources folder. It points to a folder "UIAtlas&...
0
votes
1answer
64 views

Tile manipulation script doesn't work in build but works in editor

I have 100 cubes which makes a plane, and I have a script that moves those cubes in random patterns according to random chosen methods. For example, in the method ...
1
vote
2answers
634 views

How to preserve EGL context when pausing Android ndk app

I am trying to improve openframeworks so that the GL context is preserved when pausing and resuming my game. So that I don't have to reload all textures after each pause. I don't expect you to know ...
0
votes
0answers
28 views

How can I debug my game on mobile device?

I've been creating this game on my computer for months and everything works fine. But when I built the project and installed it into my android device, it doesn't run as smoothly. I don't wanna use ...
1
vote
0answers
16 views

Load a second app in background and launch behind a loading screen

there is a way to preload an application in android from Unity? I mean.. I'm developing a launcher and every click in icon, should be launch a different game.. so, the time between show a loading ...
0
votes
1answer
84 views

How can I create online leaderboards for iOS and Android?

I'm developing a racing game for iOS and Android phones/tablets and I want to implement online leaderboards. My game has a singleplayer mode(no multiplayer features) but I want to implement online ...
2
votes
0answers
266 views

How to Invite Facebook Users to a Unity Game for Android

I am currently using the following code to let the player invite other players to my multiplayer game: FB.AppRequest("Test Message", callback: this.HandleResult); ...
0
votes
0answers
52 views

How to handle back press in Unity?

By back press on Android, I want to close all the open windows first then exit the game, I see everywhere it's suggested to check input key in Update: ...
0
votes
1answer
62 views

OpenGL ES, object intersection artifacts

I was developing a C++ implementation of OpenGL for Android and I noticed those weird artifacts that formed between 2 intersecting objects (or triangles) : [Here are the artifacts on Android] The ...
0
votes
2answers
386 views

Unity 2019 build for Oculus Go not appearing on device

My project was building fine in 2018 and showing up on my Go under "unknown sources". My project builds fine in 2019 and it says it gets installed but it no longer shows up under "unknown sources" or ...
0
votes
2answers
209 views

How to check if a specific instance of a prefab is pressed?

This one is hard to explain, so I'll show the code first - ...
0
votes
0answers
75 views

How do i update opengl lightning equation in my fragment shader to make my texture less glossy and more like a fabric

I built a model in blender, and am currently trying to import it into my android app using assimp together with opengl, i dont have any issues with the importing but my goal is to make the object look ...
0
votes
1answer
93 views

Amazon FreeTime Unlimited Monetization [closed]

So I've recently noticed how great FreeTime Unlimited is for my daughter. There's no ads, no in-app purchases, etc. She can just play the games/apps and I don't have to worry about it. As a develop I ...
0
votes
2answers
63 views

How to change 100 GameObjects' color without pushing RAM to hard?

I'm developing a mobile game and one of the gamemodes has 100 gameobjects(basic cubes). And they all have same material. I need to know how to change their color one by one with script. I'm not very ...
1
vote
2answers
2k views

Unity build error “Value cannot be null. Parameter name: path1”

I'm getting this error when trying to build my game for Android, I've googled it but there's only 1 result about it and it didn't work for me as I use 64-bit windows. How can I fix this and what's ...
0
votes
1answer
135 views

Play games services leaderboard does not work all the time

I am trying to login into play services. I got it working. But there were duplicate game objects created. So I added do not destroy on load and now the play services work the first time I access it. ...
0
votes
1answer
105 views

How can I debug a black screen when testing on a device?

I have made an Android game with Unity. But, when I opened my game, I see a black screen and a closed game. It works on a tablet but does not work on mobile phones. I tested it on 2 mobile phones. ...
0
votes
1answer
29 views

How to change the KEYSTORE securely?

I'm wanting to release a free version of an app to which I've already made a paid version. I simply copied the project to another folder: The project is initially the same as the paid application ...
0
votes
0answers
66 views

Overdrawn pixels vs many polygons, which affects performance the most?

I know that having overdrawn pixels is not desirable as well as having many polygons since they can decrease performance. Often when I model I have an option to decrease the number of polygons by ...
1
vote
1answer
2k views

Black screen when building apk Unity

Alright, I have a bit of a confession to make: I accidentally posted this question in the wrong place: Stack Overflow. Whoops. Anyway, here's my problem. Sorry if you've seen this before. Here's the ...
0
votes
0answers
334 views

Unity Android Immersive mode leaving a black bar in the soft key area?

The black bar is not hiding anything. Everything is drawn above it. But the black bar is there in place of the soft keys even when they are hidden. I don't know how to hide it and render using whole ...
0
votes
2answers
2k views

How best to detect device performance capabilities and set quality setting accordingly when using Unity

I am developing a Mobile game for Android and iOS on Unity. Currently Im in the optimisation stage of development and trying to work out what is the best way to detect device capabilities, with the ...
0
votes
1answer
55 views

Trying to understand why libgdx wipes existing models when creating new ones

I'm coding a simulated brain and I'd like to make an arrow appear when one cell connects to another cell. My output without generating an arrow looks like this: Where each block rendered represents ...
0
votes
1answer
112 views

LibGDX: How to make an object falls with random speed

I'm trying to make an object (ball) fall into position Y and when the ball collides with the base. The sprite changes and along with the change I want the speed of the fall to change according to the ...
0
votes
1answer
31 views

Unable to select MonoDevelop to open XML file from Unity project

I am developing games in Unity but I have encountered a problem. After updating Unity I can no longer find MonoDevelop for editing XML files like my Android Manifest:
1
vote
0answers
342 views

The most popular Resolutions and Aspect Ratios in Android OS 2019

I develop the game with Libgdx framework. When I tried to deal with support multiple screen resolutions it turns out that Libgdx is not following Android approach how to deal with Screen sizes and ...
3
votes
0answers
322 views

What is causing a SIGSEGV in mono_class_vtable_full in Unity for Android?

I'm a developer of a mobile game, and we have Crashlytics in our game. For the latest release for Android, we are having crash reports with the following stack trace, for a number of players: ...
1
vote
2answers
638 views

Null Reference Exception error occurs when trying to override AndroidManifest file in unity?

So I Created A manifest file in Assets/Plugin/Android/. The File contains: ...
1
vote
1answer
94 views

GPU (render time) increase if screen size increase

i create a simple 2d scene in unity 2017.3.1f1 I changed the size (height and width) in the Game View and proflie to see how it affects the rendering.. (below photo) I saw that the rendering time ...
0
votes
1answer
493 views

low FPS when battery is low ( unity android )

i make a simple 2d scene in unity 2017.3.1f1 (only 5 sprite renderer). I realized that when my Android device's battery is under 20 %, the frame rate will be 60 to 30. I did all the optimizations I ...
0
votes
1answer
206 views

How do I implement 3D A* Pathfinding in libgdx?

I am using BDX (Blender with libgdx engine) to create my game. I am not sure on how to implement 3D path finding using A* search. I looked into gdx-ai, but that is for 2D.
1
vote
0answers
1k views

Unity IAP Subscription

I have a Unity3D Game for Android, in this game I'm using the Unity IAP System, all works fine, but I'm not able to get if the player doesn't have any of the three subscriptions that I have available. ...
1
vote
1answer
272 views

Google Play exclude devices

I have a game that I'm developing in Unity. The game will be released for Android, so I'm working with the Google Play Console. The thing here is that I don't know how to block (Made not available) ...
1
vote
1answer
186 views

Unreal Android game crashes after google play integration

I'm fairly new to android game dev but after some months of work I finished making my game in ue4. However, when uploading it to google play on an alpha track and then trying to launch the app, it ...
0
votes
1answer
130 views

How do i prevent IAP abuse using restoring purchases in an online game?

Lets say i have a mobile mmorpg (ios/android) where you can purchase premium currency using IAP's... how do i actually prevent the following case : Player purchases premium currency Server side ...
0
votes
1answer
422 views

AndroidManifest file was deleted by accident

I deleted the AndroidManifest file of my project which was located in Assets\Plugins\Android , so I tried creating new project and copying the Assets and everything but it seems that something is ...
0
votes
0answers
597 views

Setting adaptive icon for Android from script(C#)

Want to set adaptive icon for Android from script. I am using Unity example: https://docs.unity3d.com/ScriptReference/PlayerSettings.SetPlatformIcons.html so, what am I doing: ...
0
votes
1answer
91 views

Make Unity GUI for mobile phones only?

I'm using Unity and I want to make a responsive GUI for portrait resolution only. Now I'd like to know if this is a good or bad idea when I force the user to play my game in portrait mode only. Shall ...
0
votes
1answer
63 views

Which part of the frustum sits at the eye position?

In Java I create a frustum projection matrix via Matrix.frustumM(projMatrix, 0, left, right, bottom top, near, far); and a view matrix via ...
0
votes
1answer
789 views

Not getting proper height in unity when android device has notch or navigation bar on screen

Screen.height is not giving the proper resolution of an Android device when that device has a notch or navigation bar. Due to this there is offset at bottom of ...
1
vote
1answer
485 views

Draw line between tiles of tiled map in libgdx

I want to draw line between two tile of my .tmx map in libgdx . I want to get a tile position but not in pixels , in maps grid numbers like : (0 , 6 ). or is there any way to change a tile color in ...
0
votes
1answer
4k views

18.5:9 Android ratio force to 16:9 problem in Unity

I want to my game build in devices with 18.5:9 ratio like Samsung S8 forced to be displayed as 16:9 ratio. I already set Aspect ratio mode to Custom and set it to 1.86 in Player Settings. I also ...
3
votes
1answer
4k views

How to get asset folder path in android native activity?

I am trying to create a small game with android native activity. I wish to load textures using stb image. I don't know how to get the path to assets folder. Is there any API to get path to apk ...

1 2 3
4
5
45