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
2answers
132 views

Update android game with new levels without replacing database

So I've published a game for android users containing 400 levels and 2k users have completed or are playing it since. Now I'm going to update the game with 600 levels, but I don't want current users ...
0
votes
1answer
25 views

How do I scale room transition surfaces to fit mobile display?

I followed a tutorial on how to add a left swipe room transition, which works very well. My problem is that it won't scale to my Android display. I know that it's being drawn to the GUI layer and I've ...
0
votes
1answer
621 views

How to get error line when debugging APK from Logcat

I made android game by Unity and built APK. When I got error from this game, I can see the error message: ...
1
vote
0answers
40 views

How can I check if someone bought a non-consumable product on iOS/Android? [duplicate]

In my application are 10 free levels, everyone can play them without doing in-app purchases. But if you want more levels, then you need to buy once a non-consumable product in the application. After ...
0
votes
0answers
780 views

Use ARCore to detect marker and show information

I'm new to AR, and am trying to use Google's ARCore to build a simple AR prototype. Basically if a logo is detected, I like to place some real-time charts or text information on the screen. Similar to ...
0
votes
1answer
271 views

How do I access device camera in GameMaker Studio 1.4?

I've looked everywhere in the documentation for GameMaker and I didn't find anything about how to access the camera.
0
votes
1answer
29 views

How to implement a Play As Guest feature on a mobile device using PhoneGap?

I have a Facebook Web Game that I converted to Android and iOS using PhoneGap. I can use Facebook for authentication on my mobile apps, but I would also like to allow the user to play as a guest. I've ...
1
vote
1answer
125 views

Is there a way to run an Android Unity game in Windows? [closed]

I was wondering, given a generic Unity game built for Android (with no desktop version), if I could somehow run it on windows (not in an android emulator) by using the windows version of mono. The ...
0
votes
1answer
94 views

Can't scale properly to android device in Game Maker Studio 1.4

My phone is using a resolution of 360 x 640 with a 9:16 aspect ratio. I set my room in game maker to ...
0
votes
0answers
398 views

Unity IAP crash on Android

I have just launched a game on the Playstore with Unity IAP 1.19.0 . Everything worked fine during the internal tests though last week I got a crash report from Crashlytics that I have difficulty ...
0
votes
1answer
436 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: ...
4
votes
1answer
305 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 ...
1
vote
3answers
175 views

C# class works in Unity, but not in Android build

I am using Unity to program a simple Android game in C#. Right now, all the game does is to randomly load one of 196 flags upon startup (view: https://hastebin.com/suxonayoce.cs or code below). This ...
5
votes
1answer
731 views

Removing the contains ads label from the google play store

So previously in my Unity android game we had ads. Now I'm creating a demo version of the game from that project. I have succesfully removed all other permisions but the 'contains ads' still shows up ...
-1
votes
1answer
53 views

Create a method and call it from another class

Hi guys I'm having a problem of creating a custom method here's my code ...
0
votes
1answer
484 views

Loop through multidimensional array in C#(Unity)

I have this data As you can see there's a 2nd board there. Now what i want is something like this PSEUDO CODE ...
1
vote
1answer
273 views

Native crashes on UE4 android game only in distribution build

As I build my game for development mode and install it directly from apk file to my device, it runs without errors and doesn't crash, there are in-game ads and it is able to get variables from game-...
1
vote
0answers
44 views

Properly handle negative indices in Unity C# [closed]

I've been stuck. I am doing currently a scoreboard . I have a problem on my code that's a little bit irritating ...
0
votes
2answers
646 views

How to hide Game Progress Files saved in Application.persistentDataPath in Unity Android

I am developing a game that saves its state in a text file. I am writing that file in Application.persistentDataPath but my issue is that the game progress file is ...
0
votes
0answers
43 views

Rendering artifacts on edges in Cardboard VR OpenGL ES 2

Unity beginner here. I've encountered this weird rendering artifacts in my Cardboard VR app on Android OpenGL ES 2: https://youtu.be/uJm4d3MwbRo It doesn't occur in WebGL build: http://senovsky.wz.cz/...
13
votes
2answers
955 views

File operation(s) failure on game crash/kill by OS/User in Android

My game saves its state after fixed interval on a file in game/app internal storage. When my game is killed or crashed by user or OS respectively, We write current game state on that file. File ...
1
vote
1answer
59 views

How to get the previous value from string array c#(Unity)

I have this example data Data: P ,B ,B ,T ,P This must be something like this But what is happening to me is this here's my code ...
0
votes
2answers
50 views

Provide an SDK for Unity

I downloaded the SDK from over here. Namely, I downloaded and unpacked sdk-tools-windows-3859397.zip. What should I do next with the files, to which one of them ...
0
votes
1answer
137 views

adding virtual-joystick relative layout to a surfaceview in Android

The problem: I have my main class which extends surfaceview that contains the gameloop and I want it to use the virtual joystick found here (https://github.com/controlwear/virtual-joystick-demo) but I ...
1
vote
2answers
3k views

Unable to list target platforms. Please make sure the android sdk path is correct

For some reason, I am unable to test my android program because of this error. Here are some pictures of the errors. This error is not allowing me to test my app on my test Android device, I have ...
1
vote
1answer
48 views

What debugging info should I put in the “About” box

I'm developing an Android game with the idea of publishing it, and I wonder what info should I put in the "About" dialog that many main menus have. The idea is to make bug report and debugging easier....
0
votes
1answer
441 views

How to use Glide

I want to implement glide in my game but I don't know how. I know that the Glide format is: Glide.with(context).load(R.drawable.image).into(imageView); But I don'...
1
vote
1answer
64 views

Texture does not fit the screen

Hi guys I am really new in OpenGL-ES and I am developing a simple android application with NDK, and I just want to ask why the image is not fit after I set the width and height of it. this is my <...
1
vote
0answers
492 views

LibGDX background image not fitting the whole screen

I'm trying to add a background image to the game's main menu, and when I execute the game as a Desktop Application it fits OK, but if I execute it on a movile device (or using a virtual device) it ...
0
votes
2answers
8k views

How can I send Android notifications from my Unity game?

I'm want to send local notification on Android with Unity3D but I don't know how to do it. Any suggestions?
1
vote
0answers
307 views

How to approach debugging of java.lang.NullPointerException in android build of unity app?

We are getting an obscure java.lang.NullPointerException when building a Unity app for android. There's not much information here that I can trace back to our code. Does anyone have advice about how ...
-2
votes
1answer
195 views

In android studio, how can I move ball to point I click? [closed]

I try to create a game like billiards. I want to move the ball the point I clicked.
2
votes
1answer
330 views

libGDX game crashes on Android without any logs / errosrs

libGDX game crashes without any errors in console on android devices. It happens at different parts of game at different screens at different time. I don't see the reason. Game works well, without ...
1
vote
0answers
137 views

Game “Hocus”: How to do the path finding?

I rebuild popular apps to get good at Godot. This game Hocus poses a challenge in terms of path finding. I have a solution, but as the illusions scale, it becomes ridiculously time-consuming to set up....
0
votes
1answer
35 views

In Android, is it possible to get the first version of the app the user installed from the Play store?

I have an app currently in alpha, and I am thinking of moving to beta soon. Once I do this step, I want to re-initialize local files as the game changed quite a bit (local scores, etc.), and display a ...
0
votes
1answer
173 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
2answers
228 views

Can I publish the games I learnt from tutorials and modified as per my style of game-play? [duplicate]

I am new to the world of making games and all. Well its been a few months or so. There are many tutorials that I have been watching. On the way, I made a few games that I saw and made. I am not asking ...
0
votes
2answers
4k views

“Failed to fetch the following dependencies: com.google.games:gpgs-plugin-support:0.9.50 ” when force resolve GooglePlayGamesPlugin-0.9.50

Ive been stuck with this problem for the last few days and really need some assistance. Iv created an android app and im trying to set up google play services as i want to use the leader board etc.. ...
1
vote
0answers
718 views

Detected problems - libandengine.so text relocations

I am creating a game with AndEngine on Android Studio (v.3.0.1). When I run the game on my Honor 8 (7.0) everything works as expected. But on the Samsung A3 (7.0) or J5 (7.1.1) a Dialog appears saying:...
0
votes
1answer
1k views

How to create activity again in Android?

I am making some game and I want to create activity again after click on some Button. For example: I have activities A (game) and B (after game menu). I want to go back to activity A after clicking "...
1
vote
1answer
325 views

Algorithm for fitting geometrical 2d shapes like in the android game Six! (or Tetris)?

In the game Six!, there's a perfectly rectangular tower of geometrical 2d shapes, that you destroy on tap to reach the ground with your player. The easy way would be to design the levels by hand. ...
2
votes
1answer
1k views

Invalid character '' in input string at LitJson.Lexer.NextToken ()

Here's my script: ...
0
votes
1answer
573 views

Detect android device rotation

I am developing a game in android and I want to be able to use device rotation for moving. So, I am not sure what sensors should I use. I tried gyroscope, it will do, but there are not a lot of ...
1
vote
1answer
3k views

Could not find a part of the path "/jar:file:/data/app

I need a hand on this . On Unity Editor this pretty works fine but when i'm building the apk and try to run my Language Changer function it can't find the path . ...
1
vote
1answer
123 views

What do I do with a libgdx rectangle collision?

The edge of the rectangle is not detached But if the rectangle is narrowed, it will affect the left and right collision detection
0
votes
2answers
79 views

Implementing a UI in an android game

I have created a basic game that runs in a view. It consists of a thread which repeatedly calls the update() and ...
0
votes
1answer
71 views
6
votes
1answer
167 views

OpenGL self-test in a mobile game

I've made an Android game that uses no/custom game engine. It renders using OpenGL ES 2.0 and optionally uses some extensions for optimization or extra effects. Over the time I have dealt with various ...
0
votes
2answers
4k views

Android Unity black screen on game start up

Squishing bugs on my first game currently, came across a problem I'm not sure what could cause. When the game is launched there is simply a black screen before even the unity logo shows up, the ...
1
vote
1answer
97 views

How can I port my Gear VR app (Java, OpenGL ES) to Unity?

I want to port my Gear VR app (created in Java using the official framework) to Unity, so I can also support Microsoft's new-ish VR headsets (not talking about the Hololens!). In my current app I'm ...

1
3 4
5
6 7
44