We’re rewarding the question askers & reputations are being recalculated! Read more.

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
44 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 ...
-1
votes
1answer
23 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
12 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 ...
0
votes
1answer
21 views

Unity app crashes when using unmodified custom Android manifest (didn't find class “UnityPlayerActivity”)

Note: I find/replaced my actual company name with 'companyname' below for anonymity, it's not the actual package name I am using. I have Unity 2018.4.11f1 LTS and the platform I'm having issues with ...
0
votes
1answer
28 views

using #if UNITY_EDITOR && !UNITY_ANDROID greys out the code. (UNITY)

I'm trying to exclude part of my code when building(android) but keeping it while in the editor for testing purposes. Using #if UNITY_EDITOR only will result in this code getting build, but using #...
0
votes
0answers
21 views

How can I plug a Unity application into native Android and native iOS?

There are a lot of questions about running native Android and iOS code in Unity. I am trying to run Unity inside of native Android and native iOS apps. My problem is that I have two native apps, and ...
0
votes
1answer
15 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 ...
0
votes
0answers
15 views

vector image is pixelates in game view

I imported a .PNG file at 1920 X 1080 resolution but it is pixelated in game view. I also tried as a .SVG file but it also gives same result. How can I fix it?
0
votes
1answer
9 views

apk is fine, but when building aab for google play submission google play services dont start when i download it

So I have a game on app store, I added Google play services Now when I do an apk build and test it works great really happy with it. But when I then tick the box for aab ( this is what Google store ...
0
votes
0answers
98 views

How to encode captured RGBA frames with H.264/H.265 (NV Codec SDK/AMD AMF)?

I have a desktop application that captures the content of the screen. The result are DirectX 11 2D textures with RGBA8 format. My goal is to stream that captured content to a mobile device with ...
1
vote
1answer
60 views

SpriteBatch.Draw has Padding on Monogame.Android

I am using Monogame to create a small Android game. I am trying to draw a sprite to the Android screen but it seems to have a padding of some pixels. The same game works fine on desktop. How can I ...
0
votes
1answer
75 views

Load large quantities of data in Unity3D

I'm building an Android app using Unity3D where users can visualize data immersively. The data is immutable and stored using a MySQL database hosted on cPanel. When the user clicks a button in the ...
3
votes
2answers
91 views

Erase save file when the game gets force closed Unity C#

Im making an old school arcade for android where you have to get the highest score between levels. At each level you can save the progress. If you die and have 0 lives left your save file gets deleted....
2
votes
0answers
24 views

Navigating to android app settings > permission from unity

I am trying to rout from my unity application to android app settings permissions. till now I achieved to rout to app settings, But i want to take 1 step more to go inside permission i mean App ...
1
vote
2answers
89 views

How to get android permission call back in unity

I am using unity run time permission system and when i ask for specific permission at run time using this: Permission.RequestUserPermission("android.permission.WRITE_EXTERNAL_STORAGE"); then ...
0
votes
1answer
33 views

Can Mobile Games use Fragments instead of SurfaceViews?

All the tutorials of mobile games for android (such as this one), use the to display game objects. Most other applications tend to use an ...
0
votes
1answer
45 views

Does a thread in a mobile game serve the same purpose as a view model in a mobile application?

I'm trying to confirm up my understanding of the coding differences and similarities between mobile game design and mobile app design for Android devices using Java/Kotlin. ~~ ~~ ~~ In mobile app ...
0
votes
1answer
37 views

IAP consumable stuck with reason DuplicateTransaction

I've implemented Unity IAP. I have succesfully implemented it before and all went well. Now at the moment, everything goes well except for 1 consumable. When I try to purchase it, i get the ...
0
votes
0answers
16 views

Script Component not Being detected by Vuforia's Default Trackable Event Handler Script

I have a Script Component named Start inside a GameObject named StartSpawn and I am trying ...
0
votes
0answers
19 views

How to create a fog for baclgro6 which works on mobile devices?

There is a forum entry, which explains how to create a high based volumetric fog, using soft particles ( How can I create a height-based volumetric fog? ). Unfortunately it doesn't work on mobile ...
-1
votes
0answers
30 views

How can I convert Input.gyro.attitude into a float? [duplicate]

I am working on a VR project with a 360 video in it. I am trying to set the start rotation of the video to the same rotation as my phones. How can I convert ...
0
votes
1answer
72 views

Set the start orientation of the gyroscope to initial phone orientation

I am making a mobile VR project in Unity, and I have a 360-degree video that starts playing where I can look around using a VR headset. I am trying to set the start rotation of the video to the same ...
0
votes
1answer
33 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
0answers
59 views

Serverless Multiplayer

I wanted to make a game with a "serverless" mobile multiplayer game. The idea was to have devices connect to each other automatically when they are within range. There would be no global game state ...
0
votes
0answers
268 views

Set-up Android SDK path to make Android remote work in Unity

I am using the Unity 2019.1.12. If I go to Edit > Preferences... > External Tools it says that the Android SDK Tools Installed with Unity (recommended). Now I downloaded the Unity Remote 5 to my ...
-1
votes
1answer
19 views

unity android sdk error

i am using unity 18.x. i downloaded the android sdk itself and the android studio also but they are not working,unity is not detecting the android sdk. if anyone succceed in exporting the apk ...
0
votes
0answers
14 views

How can i show interstitial admob by click button moving to the next scene in Unity?

How can i show the interstitial ad admob in the action of click button to move in to the next scene, I'm already trying something which one you will see in bellow. *first method i'm creating a ...
0
votes
1answer
45 views

Selling Android game with using Google Play Games

I'm making an Android Game that using Google Play Games for authentication, and storing user data to cloud. Originally I planned this game as free, and put some in-app-purchasement stuffs in it, but ...
5
votes
1answer
128 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'...
0
votes
0answers
27 views

CopperCube game engine Android export failed

I am using CopperCube 6.0.2 to develop my game. I am able to export my game to exe and webgl format, but when I try to export it to .apk format it says: aapt tool .exe missing error I downloaded ...
0
votes
0answers
52 views

How to add AdMob to a Defold Game?

I'm new to Defold (for Android App), and I'm planning to monetize the game by adding Ads, in return the player get free items. But I don't know where to start adding AdMob/Android (Kotlin) code into ...
0
votes
0answers
90 views

Unity VFX graph with LWRP

So, I've been playing around with unity's visual effects graph, and it was pretty amazing. So I tried it out on mobile using 2019.1 full version with the LWRP, and it works just fine on the unity ...
0
votes
1answer
20 views

How can I provide a csv file to a player on mobile?

It seems many people do this with regards to game data so they recommend userprefs, but I just want the user to have the file in the end, whether this is the Files app on iOS or choosing a folder to ...
0
votes
1answer
91 views

Multiple Bitmaps in Rectangle area

I am trying to build a card based game in which a card is added to player after every round. To win the match player has to remove all cards from his deck. However I have also drawn some additional ...
0
votes
0answers
62 views

Is there a way to reference Unity UI object inside native code?

Let's say we have a scene in Unity with canvas and InputField on it. Is there a way i can reference my InputField inside native plugin? Maybe i can pass it from Unity?
1
vote
1answer
233 views

Show/hide soft-keyboard on demand

I'm writing simple chat-app using Unity. The problem with Unity's default implementation of soft-keyboard visibility is that it hides itself when i'm clicking outside of keyboard panel. What i want is ...
0
votes
0answers
21 views

Cannot connect to Unity Remote to Android (BUT can build and run directly to device!)

As title says, I can build and run directly towards my Huawei Mate 10 device (Gets detected and listed in "adb.exe devices " and also Unity's build window in Run Device's list) but when I try to play ...
1
vote
1answer
491 views

Gradle Build Error Unity 2019.1.6

I found out that unity has deprecated the internal build system and has defaulted to gradle. I've not built with the gradle build system before, and now after upgrading to unity 2019.1 full version, I ...
0
votes
0answers
27 views

Optimizing large number of ModelRenderable cubes with ARCore?

I am creating an ARCore Android app that involves rendering up to thousands of cubes, of course using a Node and ModelRenderable object for each. Understandably, I'm unable to do that without running ...
0
votes
1answer
49 views

Libgdx - accelerating string displaying

My renderBoard is slow and it's because of font.draw function. I read that I should use stringBuilder instead of string, but it didn't help at all. I suppose I'm using it wrong. Could you guide me to ...
0
votes
1answer
106 views

“Unfortunately game has stopped” error on Android device

In Unity 2018.4.3f1, I am able to build my APK successfully, but when I try to launch it on my mobile device, it shows: "Unfortunately game has stopped". I don't know the problem is. Here are the ...
0
votes
1answer
123 views

How do I debug Azure Spatial Anchors with Unity on an Android device?

I've been building an AR app that's already been a pain to debug, because instant preview refuses to work over wifi and usb debugging causes the phone camera to not display on the phone itself. Now I'...
1
vote
1answer
126 views

How to set up Azure Spatial Anchors with Unity Android project?

I'm building an AR app in which I wish to use Microsoft's Azure and it's web service Spatial Anchors. I cannot seem to get the sample demo, which I downloaded from https://github.com/Azure/azure-...
0
votes
0answers
21 views

Data visualisation tool based on games played by user

I am a complete beginner in android development and for self-learning purposes thinking of creating a visualisation tool where different progress graphs of user's high score vs time or latest scores ...
0
votes
0answers
17 views

Android problem with looped background

I'm making some sort of clone for FlappyBird, but with some adjustments. I'm trying to have an animated background running infinitely times. I already have the picture mirrored so the flow will be ...
1
vote
0answers
18 views

Android problem with onTouchEvent

I'm making some sort of clone for FlappyBird, but with some adjustments. I want to change from the FlappyBird's mechaninc of jumping to make the bird raise as long as the player is long-pressing the ...
0
votes
0answers
16 views

GlobalHop SDK is not closing together with an app

I implemented GlobalHop SDK into my app but something seems to be wrong and the SDK is not closing together with the application. I followed manuals and added this: protected void onDestroy() { ... ...
0
votes
0answers
13 views

Pinch in zoom in android

In My layout parent as Relative layout and then am having Scroll view inside Linear layout now am having child views as Image view Text View Web view and Recycle view and 2 buttons is there now i ...
0
votes
1answer
39 views

Unable to destroy collider Unity3d

So I was making an android game in unity3d. I wrote a script to draw straight lines with touch what I do is I first create a gameobject named temp and add line renderer to it and give the line ...