Stack Exchange Network

Stack Exchange network consists of 174 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.

-2
votes
0answers
35 views

Which are the best free 3D Game Frameworks? [on hold]

I am looking to design a game for android, However, I am not sure on what 3D game frameworks are available to use. I am not looking to use a game engine. I just want to use a game framework for ...
0
votes
1answer
17 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
35 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
17 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 ...
0
votes
0answers
11 views

How to have zoom and translate in .tmx map in android

I load a .tmx file in libgdx project but I can not zoom in and zoom out and control map like a google maps in android device. how to implement this features in .tmx file with Screen touch. this is my ...
1
vote
1answer
26 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
0answers
22 views

Black screen show when Run game in Android device, Works fine in unity editor

I got below logs in android studio logcat: ================================================================= ...
0
votes
0answers
10 views

UE4 Google Play leaderboard writes but when it shows it says “no scores yet”

To all UE4 developers. I'm using Blueprints to do the Google Play Services. I am desperate because what's happening is so contradictory: I've set up everything in Google Play console. my leaderboard ...
0
votes
1answer
47 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 ...
0
votes
0answers
14 views

How to virtually test which Android API is supported by my Unity game?

I have Unity 5.6 and I set the Minimum API Level to 4.1 Jelly Bean. The game works fine on my Android 7.0, however, on my Android 4.4 there's a problem with the Directional Light, creating really ...
-6
votes
0answers
64 views

i have a very fantastic Game idea for mobile and window… [duplicate]

I have a great idea to create play. Is there a place to hear and support my idea?     The financial returns of this idea is Excellent
0
votes
0answers
22 views

How to get Context at Canvas, Runnable or onTouchEvent?

I'm beginner programming (30 day newbie only), but cannot find the answer so try to ask here. Cause the program too many image, if one time load image will OOM, try to split separate part to load ...
0
votes
0answers
50 views

Player movement in forward as well as in Left-Right direction

I am trying to make a game in unity in which the player continuously jumps in the forward direction and moves left & right on swipe in android just like in one of the Ketchup game stairs. When I ...
0
votes
0answers
23 views

I want to overlay two bitmaps on a canvas and produce a single bitmap. But the second image is much smaller than its original size

I want to overlay two bitmaps on a canvas and produce a single bitmap in android. but second image is much small as its original size. But second image or small image is looking more small on canvas ...
1
vote
0answers
30 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
vote
1answer
26 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
54 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 ...
0
votes
0answers
10 views

Is gridview enough instead of recyclerview if data is not dynamic but fixed?

Trying to mimic the game like https://play.google.com/store/apps/details?id=com.sgg.connect2 but with a different logic Before start developing gone through that app and tried to find what are the ...
1
vote
0answers
26 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
98 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
0answers
39 views

Solve SlowRendering issue with OpenGL

We have been seeing reports of slow rendering of frames in google play vitals. When trying to debug better, it was recommended to use adb shell dumpsys gfxinfo to get more information. Our game uses ...
0
votes
1answer
63 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: ...
0
votes
1answer
56 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
268 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
35 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
18 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
12 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
17 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
26 views

ue4 android crash

The strange things happen, on android 7.0 (samsung s8+) and 7.1 (samsung Note 8) works everything just fine. But i got a big amount of crashes on google play. Most of them was on android which is less ...
0
votes
0answers
84 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
53 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
37 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 ...
0
votes
1answer
36 views

How can I speed up the shapes drawing on high-density devices?

I have a game that should draw many shapes on the canvas and in every frame these shapes position will change, the game is running smooth but after adding more shapes some jerk arise and it drops some ...
0
votes
1answer
53 views

What is the easiest way to make an online high scores table?

I made an 2d Android game with using Libgdx library. This game like Flappy Bird. And every user have a highscore. I want to store this highscores respectively to an online database and return the rank ...
0
votes
1answer
25 views

libGDX game crashes on Android without any mention of crash in logs

No mention of any issue in process logs, an application just turns off during loading assets (~3% of all assets loaded). It works fine on desktop. Only thing that seems related in global logs is this:...
0
votes
0answers
35 views

Bright lights produce strange artifacts on Android

I'm testing lighting on Android and I'm getting strange artifacts when the light is increased. I'm not sure if this is normal with Unity or a setting somewhere is unchecked. The only light in my ...
0
votes
0answers
12 views

FeedShare from Unity-Android and back

I want to perform a FeedShare from my Android app in Unity. I have my own app and have the FB Unity SDK. When I issue the command as given in the example: ...
0
votes
1answer
24 views

simple data source on hard disk for android game

i have a big library on my game. its word library. there is no need of it to be on ram.any moment some part of it can be searched so there is no need to make a list or dictionary for it. is there any ...
1
vote
0answers
28 views

Does my companion app infringe copyrights? [closed]

I'm making an android app that is supposed to be just a companion app for a board game. Twilight Imperium 4 is the game, and it has a boatload of techs/actions cards/strategy cards with tons of text ...
-1
votes
1answer
53 views

Java 2d array to generate grid - java.lang.ArrayIndexOutOfBoundsException: length=4; index=-1

I am creating a Hashi Puzzle game (Islands and Bridges) I am generating a 2d grid with Islands that can be connected using bridges, I am also running a DFS algorithm to check if the map is solvable I ...
1
vote
2answers
126 views

How can I store in-game money so that nobody can manipulate the amount?

People get coins for completed tasks(for example completing a level) in my game. In addition, they can purchase coins(they need to pay for that with real money) in the app store. With these coins, ...
0
votes
0answers
12 views

Issue challenge using Google Play Game on Unity

I am trying to figure out how to use Google Play Game multi-player in order to allow players to challenge friends. This is no a turn-based game like chess etc. Each one plays their own game and the ...
1
vote
1answer
192 views

Problem with Unity APK Build : Default Activity (Android)

There was a project developed in Unity 4.5. I successfully updated it to Unity 2018.2.3f1 version without any error. Runs perfectly in Editor. When I create an APK (internal). I just get this screen ...
2
votes
1answer
139 views

Huge level size after build APK in Unity

I made maps used bunch of small objects which are mostly scenary, like part of road, buildings, obstacles. They are all lightmap static, batching static, occludee static. However after build APK, "...
0
votes
1answer
67 views

How to debug fatal signal 11 code 2 in UnityMain?

i have searched for the fatal signal caused by Render or GxDriver, FlashMuller in unity forum says it's google play the error: ...
0
votes
0answers
28 views

How to force LibGDX to screen resolution on Android?

No matter what type of viewport I use, the Android version of my code renders to exact resolution on the bottom left of the screen. How do I make it occupy the whole screen realestate? I've tried ...
2
votes
1answer
65 views

Unity + Admob - EEA checking

The Admob plugin for Unity - Android does not supply an EEA permission request form like the standard Android plugin does. So, I have created my own and it works great. My only problem is how do I ...
0
votes
1answer
62 views

I've completed my mobile game - now what?

After months of development, I've finally finished my mobile app, but I have no idea what to do next. I want to publish my app to the Google Play Store and the App Store, yet I don't know how. I've ...
1
vote
1answer
10 views

Normal doesn't appeared on shadow/dark area in Mobile Shader

Let's look at this picture: You can see the red rectangles, those are shaded by normalmap. Here, is the same model with different light angle, there's no normal shading in dark area. It only ...
0
votes
0answers
26 views

Class initialization disrupts my OpenGL context and I am unable to render anything after

I have OpenGL context setup successfully, and I can draw textures on screen, but once I initialize CGEFrameRenderer (from gpu-image-library - just instantiation and calling init) I am unable to render ...