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,266 questions
0
votes
1
answer
146
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
1
answer
2k
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
0
answers
211
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 ...
0
votes
1
answer
2k
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 ...
1
vote
0
answers
482
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 ...
-1
votes
1
answer
57
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 ...
6
votes
2
answers
1k
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
1
answer
201
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
0
answers
120
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?
2
votes
1
answer
3k
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
2
answers
248
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
1
answer
556
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'...
0
votes
0
answers
32
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
0
answers
57
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
1
answer
2k
views
How to make a proper release build - Unity Android - x86, ARM32, ARM64
I'm trying to create a release on Google Play.
I currently have Build App Bundle checked in the build settings, and it helps decrease the build size.
In player ...
1
vote
1
answer
289
views
Is it always necessary to synchronize rendering in a game loop?
When writing a game loop from scratch in java for an android game applications, it is very common in many tutorials I have read that the keyword synchronized is used to synchronize update and ...
0
votes
1
answer
123
views
Tile manipulation script doesn't work in build but works in editor
I have 100 cubes which makes a plane, and I have a script that moves those cubes in random patterns according to random chosen methods.
For example, in the method ...
0
votes
0
answers
49
views
How can I debug my game on mobile device?
I've been creating this game on my computer for months and everything works fine. But when I built the project and installed it into my android device, it doesn't run as smoothly. I don't wanna use ...
0
votes
1
answer
290
views
How can I create online leaderboards for iOS and Android?
I'm developing a racing game for iOS and Android phones/tablets and I want to implement online leaderboards. My game has a singleplayer mode(no multiplayer features) but I want to implement online ...
0
votes
0
answers
262
views
How to handle back press in Unity?
By back press on Android, I want to close all the open windows first then exit the game, I see everywhere it's suggested to check input key in Update:
...
0
votes
2
answers
492
views
Unity 2019 build for Oculus Go not appearing on device
My project was building fine in 2018 and showing up on my Go under "unknown sources".
My project builds fine in 2019 and it says it gets installed but it no longer shows up under "unknown sources" or ...
0
votes
0
answers
146
views
How do i update opengl lightning equation in my fragment shader to make my texture less glossy and more like a fabric
I built a model in blender, and am currently trying to import it into my android app using assimp together with opengl, i dont have any issues with the importing but my goal is to make the object look ...
0
votes
2
answers
152
views
How to change 100 GameObjects' color without pushing RAM to hard?
I'm developing a mobile game and one of the gamemodes has 100 gameobjects(basic cubes). And they all have same material. I need to know how to change their color one by one with script.
I'm not very ...
0
votes
1
answer
249
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
1
answer
51
views
How to change the KEYSTORE securely?
I'm wanting to release a free version of an app to which I've already made a paid version.
I simply copied the project to another folder:
The project is initially the same as the paid application ...