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
7 views

moving player according to swipes

In my Player.java class, I want to incorporate a function that moves my player according to the left or right swipes. I also used time in seconds in order to vary the movement in an cyclic way: <...
0
votes
0answers
7 views

Android studio reference [closed]

Being weak at English, I face many challenges in coding as I often miss the meaning or purpose of a method especially in java. What I ask for is not a course but simply a mini dictionnary hilighting ...
0
votes
0answers
8 views

Problem of activities [duplicate]

My game consists of a player that hopes between ropes. For now, I created the player and the rope classes. Each one contains details about the object and its movement patterns. What is the next step ...
0
votes
1answer
19 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 ...
2
votes
1answer
36 views

Connecting Player and Rope classes in a rope-swinging game

I am trying to build this game where the player hops between a number of ropes. For now, in addition to my main activity that I kept empty, I built two additional classes: ...
1
vote
0answers
14 views

How to set orthographic camera for libgdx

I have implemented a basic demo of camera but it is not showing any sprites on screen. I cannot figure out what's wrong with my code. ...
0
votes
0answers
11 views

Unity Android App Minimize

I have a basic Android App that I create in Unity with C#. At the moment I use Application.Quit() to end the app, but I want to just minimize the app and keep it "...
0
votes
0answers
9 views

Unity game is working well in editor aftter build ui is not working in Android

Game is working fine in unity editor and working well with unity remote also.....but as i build and run the game..the game score menu is not visible...can anyone have idea how to fix it ]2
0
votes
0answers
24 views

Trying to build in android problem in unity

Hi I am planning on uploading my game to the play store but I keep getting this message when trying to build. What can I do to resolve this hurdle??? The build settings are as follows:
0
votes
1answer
31 views

Game build crashes on scene load

I built out my project to Android to do some testing and stuff, but I can't get any further than the main menu scene. I built it out previously and it was running fine. Now as I try loading level0 it ...
0
votes
0answers
11 views

How to create brush that paints or erases in Unity(Mobile)?

Kind of a simple question but I have no idea where to start. Basically I just want to use my finger to drag along an image and either paint on it or erase the image texture entirely (presumable using ...
0
votes
1answer
45 views

In Android, neat way to send input info from `GLSurfaceView` to `onDrawFrame` in `GLSurfaceView.Renderer`?

The input is pinch/drag for camera movement, which modifies a matrix to scale/translate, and sent to a vertex shader. It's working, but ugly. What's the proper way to do it? I've noticed: ...
0
votes
1answer
21 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 ...
0
votes
1answer
24 views

Unity: Game objects in scene load incrementally and not at the same time

I am using Unity in my Android app. When the app opens, I show the user data in the Unity scene. User data contains texts and images. In order to load this data in the scene, I make a lot of ...
1
vote
0answers
44 views

What happens to deleted or added assets in your app when updating to a new version in the Google Play Store and iOS App Store?

So let's say I used Unity and built an app and uploaded it to the android and iOS app store, it is 100 MB and lots of people downloaded it. So now I want to update it to the newer version, however ...
2
votes
2answers
51 views

Application.OpenURL in Unity works in inspector (PC) but not in Android

I'm using unity and I've got some simple code that should work but doesn't for some reason and I'm stuck. Basically I am just trying to open up a website through a button click "On Click ()" in an ...
1
vote
1answer
60 views

How can I convert an html5 web game to an android app?

I have already made an html5 game and it is in service. I want to service this at Android app too. I know little about Java or Kotlin, so I think the least risky way is to use a webview. There is ...
0
votes
0answers
20 views

How to handling touchpad?

I have a touchpad. I tried touchpad.getKnobX> 0 and <0 (when swiping the knob left and right) the sprite still displayed but when I put touchpad.getKnobY> 0 and <0 (to swipe knob up and down) ...
0
votes
0answers
44 views

UGUI scripts stop my project from building

Unity 2019.2.21 I am trying to build out my project to Android and I am getting the following error messages: ...
0
votes
0answers
67 views

“StrictMode policy violation” warning occurring in my game after upload

When I upload my game to my Android device, I get the following warning: ...
2
votes
0answers
54 views

how to get android activity callbacks in unity c#?

i know unity works on android activity named "UnityPlayerActivity" the activity has some callbacks like onCreate onResume onPause etc... assume we wrote an actvity class that derives from Activity ...
0
votes
0answers
38 views

Could not load library UNITY_PATH/Frameworks/Mono/lib/ in MacOS building for Android

I'm trying to build an Unity Android project in MacOS but I'm facing this error: ...
0
votes
0answers
22 views

Setting the position of a Rectangle does not always work in libgdx

I'm experimenting a little with libgdx and I'm trying to use it to create a little android game. Everything goes well until I try to correct the player position when a collision occurs. This is the ...
2
votes
0answers
19 views

What is the right way to implement a loading screen in cocos2d-js?

We have two scenes that are loaded with heavy computation; a map screen and a puzzle screen. When we change the scene from A to B, the app gets stuck on scene A for a while before it renders scene B. ...
1
vote
0answers
28 views

Unity remote not recognising my phone?

I made a new project with the Android module installed, which works fine as I can build and run it on my phone when connected to my computer via USB, and yet can't get Unity Remote to work. Edit/...
0
votes
0answers
31 views

Target Lower API Level than Package or Plug-In Requirements

I am working on a project that I want to use local mobile notifications for Android using Unity as game engine. I want to reach as much as users I can, so I want to target API level 16 for the lowest ...
1
vote
0answers
56 views

What is the base framework of making a minimalist mobile game?

I've seen plenty of minimalist games throughout the years recently like Blue Box, Loop, Colorolo and Ultraflow. Games that use simple shapes. What's not talked about is the design process of making ...
0
votes
0answers
32 views

Which communication should I use between server and client

For a school project I am creating a multiplayer game for the smartphone. I want the "GUI" to be a flutter application to cover IOS and Android. As backend I use Golang. Now I wanted to ask, what ...
0
votes
1answer
71 views

Why do not Easy Mobile Pro scripts know about each other?

I am getting this error when I try to build the project: ...
2
votes
0answers
68 views

How do I edit a Unity InputField by clicking on Android UI Button?

I have been stuck on this problem for a long time and not sure what I need to do. Would appreciate any help. I am building an Android app using Unity. In my app I ...
0
votes
1answer
59 views

Multiplatform game, save game state and resume it on other platform

This is for a personal and knowledge acquiring project. I want to create a little TIC-TAC-TOE multiplatform game, app & web. The choosen technology for the app will be Android or Flutter and for ...
0
votes
1answer
27 views

How to reset an incremental achievement in Googles Android API?

For example the achievement is "Pass 5 levels in a row without failing" It's incremental and has five steps. If a user hits an obstacle, this achievements score should obviously be resetted to 0. ...
3
votes
0answers
72 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
44 views

Create Scoreboard using LibGDX table layout

I am trying to create a card game, which will contain following features. It will be a 6 player game. Each player contain set of cards, where each card contain some specific value After every round a ...
0
votes
0answers
18 views

LibGDX How to use Viewport correctly?

guys! I divided the screen into two parts using Viewport and now the game does not work correctly. The control buttons do not work all. If you click in some part of the screen (not on the control) -...
0
votes
1answer
36 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
0answers
18 views

How to handle touch when keyboard is open in unity?

I am trying to make a chat based game in Android using Unity. When my TouchScreenKeyboard is open and I try to click on submit button, it only closes keyboard and ...
0
votes
0answers
21 views

How can I change gradle version for api 27?

I get this error message: ...
2
votes
0answers
32 views

My unity game fails to open in my mobile

I'm new to Unity, and want to make a android game. I made a very simple scene: A sphere A cube (floor) A simple script that moves the sphere by touch. I tried it with unity remote and it works fine....
0
votes
0answers
149 views

Cannot build Android IL2CPP for Unity

Everything used to run fine until about 4-5 months ago. This week I've been stuck on this issue. I cannot even build empty apps. Here are the steps I've made: Create blank Unity project. Switch to ...
0
votes
0answers
65 views

Share screenshot in Android chooser from Unity 2D

I am trying to share a screenshot of my game on social media. I want to use the in-built Android share options. This fantastic blog gives instructions on how to do this, however it does not work. ...
0
votes
0answers
19 views

Firebase Cloud Messaging in Unity Android App

I'm trying to achieve the following behaviour for push notifications using Firebase Cloud Messaging for Unity in an Android app: If the app is in the foreground, handle it directly in the app (access ...
0
votes
0answers
5 views

Solutions for generating signed builds for IOS and Android

I developed a small game engine and successfully generated xcode and android studio project files on Windows machine. Now I want to allow user to generate signed build in cloud and publish them. Is ...
0
votes
0answers
24 views

Java Cocos Creator

Is it possible to call a java function from external java file for android ? cc.Class{..onLoad:function(){Android.loadExternalFile(filePath).call(method);}..} Is ...
0
votes
0answers
44 views

Android libgdx java

Question1:Bird collaide with Coin that time coin is dissapear working but shudenlly apeared.What do to?.android java libgdx for(int i = 0; i< coins.size; i++){ Coin coin = coins....
1
vote
2answers
137 views

How do Idle games progress while not active? [closed]

A hallmark of many idle games is the ability to still progress (or at least regain resources) while the game isn't active. The device can even be off. Initially I figured they just calculated ...
0
votes
0answers
50 views

How do I make my 3d cube move left and right with buttons in Unity with RigidBody.AddForce?

How do I make my 3d cube move left and right with buttons in Unity with RigidBody.AddForce()? I can't figure out how to do this in Unity! I'm trying to make my game ...
0
votes
1answer
557 views

Unity Build Failed - Duplicate Class

I'm here struggling for hours to build my game (android) and 'Execution failed for task : checkReleaseDuplicateClasses' ...
0
votes
0answers
17 views

How to debug shaders running on Android 4.x devices?

I have tried some of the existing inspectors such as RenderDoc and gapid, but none of them can be used with Android 4.x. Latest version of gapid requires Android 6.0 and RenderDoc requires Android 5.0....
8
votes
4answers
5k views

Mechanics to keep mobs and environment alive without using tons of memory?

I'm working on a server for a little mobile MMORPG. This consists mainly of two important features: mobs and environment resources like trees, rocks etc. The world is randomly generated and each time ...

1
2 3 4 5
44