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
1
vote
2answers
536 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 ...
1
vote
0answers
21 views

How to build multiplayer games for android?

I'd like to know how to build android multiplayer games but I'm struggling to find a step-by-step or good resources on this topic. My main questions is which engine and api to use? I'd like to achieve ...
0
votes
1answer
75 views

Graphic render speed in libgdx using many sprite sheets

I am currently working on a customizable Player-character for my top down view 2D pixel game. I am using libgdx and aiming for android devices as well as desktop applications. I am wondering about an ...
0
votes
1answer
51 views

Unity's Android Notification system works on my Xiaomi, but on a Huawei every notification has an “Unknown” status?

When my app starts I check whether there is a notification or not if there isn't I create one via SendNotification(...) if there is, I check their status: ...
0
votes
1answer
44 views

Persisting unlocked characters in Player Prefs

I am working on a character selection menu in Unity. If you have enough coins, you can buy your desired character. Once player buys one, that character must not be locked on game restart, the number ...
0
votes
1answer
14 views

Unity3d texture size different than original png image [duplicate]

While selecting a png image as a texture for a material in Unity, it shows different size (bigger) than the actual file size, why is this so? how can I reduce its effective size to make it perform ...
0
votes
1answer
18 views

how to increase the volume by trigger

I need to know how to do this in a 2d game when my 2d character approaches a sounding spirit. the sound should increase as you approach it and decrease as you move away from it. for example, it is a ...
0
votes
1answer
44 views

Can't join to room through Unity's Matchmaking system on the Internet

It works perfectly when I try to connect locally from my editor to my running build. But after I start the server on my Android, and try to connect to it from my editor, it time outs: As you can see,...
0
votes
0answers
19 views

Unity Optimization: Creating Multiple Similar Scenes Effectively

I've been working on a mobile game that uses the same framework for each level in the game, and I was wondering what would be the most efficient way to store all those levels in Unity. Should I only ...
0
votes
0answers
14 views

Why doesn't the prefab change in the app?

Such a problem: from the script, I change the image of the sprite of SpriteRenderer component (like another skin) in a certain prefab, having a link to SpriteRenderer. And the problem is that when I ...
0
votes
1answer
3k views

Application.OpenURL not working

I have a public void Public void patreononclick(){Application.OpenURL("http://www.patreon.com/HubakaGs");} Which supposed to open my patreon page when a button ...
3
votes
1answer
138 views

How do I set up the microphone for an Android device in Unity?

I'm developing a simple android app that needs to use the microphone. I'm able to load my app on my Android phone using developer mode, but I do not understand how to enable the mic. How can I enable ...
0
votes
0answers
7 views

Gradle build failed while building to android (unity log attached)

I know there are many questions regarding this problem but nothing helped I am getting this error evem in an empty project I think that something is wrong with the daemon here's the editor log: ...
0
votes
1answer
12 views

Start Position & Move Step Problem Swipe Motion Mobile Unity C#

i am currently trying left & right, up & down swipe motion in unity C#. I have done the scripting, it all working, but after i debug the script, the object's position suddenly changed to a ...
0
votes
2answers
2k views

Libgdx music is not working properly

I finished my game programming but I have small problem, please help me I want to finish it completely. I am starting background music when the user goes to the PlayScreen and when the kid in the game ...
0
votes
0answers
18 views

using Playerprefs on Android Mobile Platform

I have a question about playerprefs on my android mobile game not initializing properly. I have already pre-set my playerprefs data on a variable with a value of 3. In my play mode on unity the value ...
0
votes
1answer
24 views

Positioning ropes equidistantly on a landscape display

I would like to render 4 similar ropes in my game that are equidistant on a landscape mode display. How can I proceed? My screen is 1920*1080, at 420 dpi. Is there any way that I could link the ...
1
vote
0answers
22 views

Play Protect Submission

I just filled submission form for google play protect for my new-developed game. the problem is with URL download link. I used file.io to generate a direct download link. it worked fine for the first ...
-1
votes
0answers
33 views

Libgdx, size of the button on phone really small

I making a game, so I created main menu with scene2d,on PC my menu looks good (big buttons on the center of the screen), on my phone it looks very small, what should I change? If you see any code I ...
0
votes
0answers
6 views

High quality specular reflections on Android

I opened the Unreal Editor VR example, imported the TwinMotion materials and set the floor to a nice parquet. In the editor it looks like this: However when I run it on my Oculus Quest it looks like ...
5
votes
1answer
192 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'...
1
vote
1answer
85 views

How do mobile games implement time gates unhackably? Is it possible in offline games?

I'm thinking about porting my game to Google Play, and it would be free to play with time gates which are skippable if you watch an ad. What are the ways of implementing an unhackable time gating? ...
0
votes
2answers
1k views
1
vote
3answers
174 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 ...
4
votes
2answers
1k 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 ...
0
votes
1answer
499 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 ...
5
votes
1answer
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 ...
0
votes
0answers
8 views

i get error “ ue4 android client target not found ” when packaging shipping client android

I cant package my game in APK with shipping client configuration in ue4 4.20. keep getting error stated above. here is log text Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=E:...
3
votes
1answer
159 views

How do you support different VR platforms?

I created an Android app for Gear VR in Java (using the GearVR framework) that I now want to port to Unity, so it can also be used for Microsoft's semi-new Mixed Reality headsets (for Windows; not ...
1
vote
0answers
23 views

How to implement GIF insertion in Unity? “XYZ App doesn't support image insertion here”

I'm making an Android App with Unity, which has a chat service in it. And I would like to handle sending images or GIFs via Gboard. Currently when the user selects a TextField, his keyboard comes up,...
5
votes
1answer
1k 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
0answers
24 views

UI clicks hitting the GameObjects below

I've made a simple script which makes a mesh with a collider act like a button. However the mesh button get clicked through the UI. I figured out how to fix this in editor, however this problem still ...
2
votes
1answer
458 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 ...
2
votes
2answers
2k views

Share Image on Android Application from Unity Game

I've captured screenshot in my game when player dies. I've following code to capture screen shot. ...
6
votes
3answers
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: ...
7
votes
2answers
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 ...
0
votes
1answer
1k views

resize images in libgdx

I know how to set Image width and height using pixel coords. Is there a way to set relative coords? I want to deal with multiple screens. For example i have 1920x1080 screen size. And i have relative ...
0
votes
0answers
39 views

Can I use real currency name/symbol as an in-game currency?

Can I use a real currency name (i.e USD, PKR) or symbol ($, Rs.) for my in-game currency with the same exchange value as original currency? I couldn't find anything about it in google play store ...
0
votes
0answers
27 views

Shift game view when on-screen keyboard is displayed

I want to take input in a TextField but the keyboard hides the view, so I want to scroll it by adding padding to it since table ...
0
votes
1answer
119 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
28 views

Libgdx, button onclick event crashes

I'm trying to create an android game using libgdx with a Titlescreen, you just press start and your game startes. However I'm having difficulty trying to get these buttons to work. The titlescreen ...
-1
votes
1answer
33 views

How do I implement a banner ad from MoPub in my Android Unity app?

I am new with Unity and everything and I have made a simple game. I wanted to put a MoPub banner ad on the game and I read this on their site. But I was wondering where should I put that code from the ...
1
vote
0answers
78 views

Handling zooming in for a spot-the-difference game in different screen resolutions

I am creating a 2D game for Android as a school project. The objective of the game is to find differences between the top image and the bottom image. I have 1 main camera, which views the entire ...
-1
votes
2answers
38 views

Google Play Console error problem [duplicate]

I am trying to upload my game (finally) to the google play store but I am faced with one final problem that I have attempted to fix but have of course failed! The error message that pops up is as ...
6
votes
1answer
451 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? ...
5
votes
0answers
984 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
0answers
19 views

Android Build Errors?

Hi I am trying to build my android game and hopefully publish it but I am trying to build it and this error keeps coming up. Can someone please help explain what this is trying to tell me and how to ...
5
votes
1answer
428 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/...
4
votes
1answer
303 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
1answer
163 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 ...

1
2 3 4 5
44