Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
13 views

How to learn game development?(PC and Mobile) [on hold]

I am an electronic undergraduate and none of my friends even in CS have idea how to become an independent game Dev or even work as a product engg./game Dev in a mobile based gaming startup.Sure they ...
0
votes
0answers
6 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
6 views

How to scale ImageButton with viewport for different resolutions?

I am new to the libgdx framework. I don't know how to scale an ImageButton for different screen sizes. Currently it looks big on desktop, but small on the Android ...
0
votes
0answers
38 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 ...
0
votes
0answers
12 views

Updating same value firebase multiplayer

I've been developing a boss hitting system for my application with utilization of firebase (firestore). Simply put, there is a boss, visible to multiple users, he got max and current hp. The ...
0
votes
0answers
20 views

Remove READ_PHONE_STATE permission from Crashlytics in Untiy

Recently I have added Crashlytics to Unity and now the game is asking for permission to manage phone calls. How do I remove it from the game?
1
vote
1answer
18 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
34 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
31 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
20 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
63 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
20 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
91 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 ...
2
votes
0answers
33 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
58 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: ...
0
votes
0answers
10 views

Android SurfaceView - What is the correct approach for Game Object implementing OnTouchEvent?

I am developing a game just for learning. I have a GameView class extending SurfaceView, and a Scene which extends GameView (for evey scene in the game). Each Scene object has a ArrayList variable. I ...
0
votes
0answers
23 views

Unity Blender Android Parallax App

so my question is: from a 3D object made in a blender, let's say a tunnel that i would like to loop or stop it. i would like to get a parallax effect from it. when the gyroscope of the end of this ...
0
votes
0answers
34 views

Augmented reality outdoor tracking using ArCore and GPS

I have a unity android augmented reality application using googles arcore SDK. In the unity application i have a swarm of drones that fly arround the scene. As well as this, i have a 3d model of the ...
1
vote
1answer
84 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
83 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
58 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.
0
votes
0answers
25 views

Low fps when drawing semi-transparent color to Canvas (java)

I'm making an Android game and I want to make a darkened background I try to do this with: canvas.drawColor(0x99000000); This works but my framerate drops from a ...
1
vote
0answers
64 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. ...
0
votes
1answer
41 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) ...
0
votes
0answers
32 views

Cannot deploy MonoGame project to BlueStack (ADB0000: closed)

I'm using MonoGame 3.6 with Visual Studio 2017 Community and I'm trying to deploy to BlueStack as Android emulator. VS can see Bluestack and permit me to launch deploy but ends with this error: ...
1
vote
1answer
38 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
0answers
77 views

Crash on start-up when running on x86_64 Android emulator 5.0 & 6.0

My game crashes on start-up when using the following emulators installed from Android Studio: Android 5.0 x86_64 emulator Android 6.0 x86_64 emulator My app does not start, and instead it displays ...
0
votes
1answer
61 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
54 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 ...
1
vote
0answers
153 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
42 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
43 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
223 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
112 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
746 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 ...
2
votes
1answer
210 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 ...
2
votes
1answer
46 views

Creating a letterbox screen for Android devices

I want that the screen looks the same on every Android device without distorting the sprites. One player should not see more of the map than another player just because they have a bigger screen or ...
1
vote
1answer
56 views

Can I change previously unlocked game levels into locked locked by updating game?

I have 14 unlocked levels in my android game so that the player can play whichever he want. Can I make those 14 levels locked in next update? Players who previously reached 8th level would have to ...
1
vote
0answers
31 views

Why can't I use C routines to load files in Android NDK?

I have successfully rendered a triangle with a hard coded shader using NativeActivity of Android NDK. Now I have the requirement to load a shader file. I tried to ...
0
votes
2answers
159 views

Is it secure to use UDP socket for a game server?

I'm working on a multiplayer android game with Unity. For server side I use python. There is no login system or username. Basically, there is a matchmaking system and rooms. I send json object which ...
0
votes
1answer
72 views

How to create an even gamescore?

Currently I'm doing an android game. My problem is the score. The game speeds up in every round and currently I'm counting the score like this: ...
1
vote
1answer
154 views

How to make a horizontal scrolling menu in Game Maker Studio 1.4?

I know how to place the items you see in the picture, my problem is how do I move them? How do I know if the player is swiping right or left? I made the items with a ...
0
votes
1answer
289 views

How to add high score?

I wanted to add a high score to my game but I don't know how I already tried to find some videos for it but I just can't find the right one. I already have a scoreUI on my game I just wanted to add a ...
0
votes
1answer
37 views

How do I set something when 2 or more touches are pressed?

I currently have a working controller with left and right but I want to set the velocity of the character to 0/Stop when 2 or more touches are detected. This is my current working code but I want to ...
1
vote
0answers
23 views

Android Game Save and Load doesn't work

I tried a few different codes but none of them work on my android device...I retrieve the data with this command " GameManager.Instance.gemsToSave" The code: ...
0
votes
0answers
16 views

android native app is crashing

I am trying to setup android native framework so that I can receive events and touch inputs. I have created a cpp file which has android_main and configured CMake... ...
0
votes
0answers
22 views

Removing ads for user in admob integrated into Unity3d game [duplicate]

There are plenty of articles on integrating admob into Unity3d and it's pretty straightforward. I don't have a problem getting that done. My issue is since the logic for showing my Interstitial ad is ...
0
votes
0answers
86 views

Asset quality reduction on mobile debug

I've an image with a nice resolution (588 x 316), which is imported into the project using Drag & Drop into the assets box. The inspector says it's compressed using ETC2 8b. Problem Using this ...
0
votes
0answers
66 views

How can I use the NDK to make games?

I want to use NDK to use my existing C++ code for a game. I know there are two ways to use NDK: I can use Java to create GLSurface and opengl context; I can use NativeActivity class to entirely write ...
0
votes
1answer
57 views

Implementing online connectivity and multiplayer/PVP for a newbie

Background I'm a noob programmer looking to create a simple turn based mobile game as a side project. I've pretty much got the game logic down and am left with implementing the online multiplayer/PVP ...