Android is an operating system for mobile devices developed and maintained by Google, Inc. This tag should contain specific programming questions about Android.

learn more… | top users | synonyms

0
votes
0answers
2 views

Android Button or onTouchEvent [migrated]

I'm making an android game with SurfaceView and I need to handel touch events. I tried onTouchEvent(MotionEvent event) and it worked except for making buttons. If there is an onTouchFinishEvent() type ...
0
votes
0answers
27 views

How can I create an on-screen joystick for a PC-to-Android port?

I made a simple 2D game for PC(because I am a beginner and wanted to learn the basics of creating a game for PC first) that i want to port to Android.I think all that i would need to do is change the ...
0
votes
1answer
23 views

WWW(Unity) with HTTPS on Android not working

I'm using a native android plugin my team made for communication with a server, and as it uses HTTPS I use a certificate with it. Everything's fine with that, the problem is that, in Unity, when I try ...
0
votes
1answer
35 views

Raycast not working on touchscreen (Android tablet/phone)

I have a raycast that works in the unity editor but not when I build it for Android( tablet or phone, neither work). The code I'm using is as follows: public class DirectionalTilePlacing : ...
0
votes
0answers
12 views

Reset animated actor's state in libgdx

i am a complete newbie, making an app in libgdx for which i have this actor that i want to animate on button click. Here is the code for that public class Boss extends Actor { protected Animation ...
0
votes
0answers
16 views

LibGDX - scaling for different devices

i have a question about scaling. I have two ideas how to solve problem with different screen sizes, aspect ratio etc. Make viewport that depends on device screen size and scale textures in draw ...
-1
votes
0answers
38 views

What are the “hidden” limitations of Unity Plus compared to Unity Pro? [on hold]

Unity recently announced their new plans, which comprise of Personal/Plus/Pro/Enterprise. The scope of this question is to compare (carefully) the differences between the Plus and Pro licenses only, ...
-4
votes
0answers
26 views

Splitting TextureAtlas into Textures [on hold]

I have a TextureAtlas file (pack file) and png file only I want to split it back to textures which I don't have Libgdx tools has texture unpacker can I use it ? or any other programs if it doesn't ...
-1
votes
0answers
46 views

2D Strategy Static Game [on hold]

I want to create a 2D strategy online game and nothing moves but map(With scroll)... All other units are static. 1- Is it necessary to use a game engine ? 2- And I'm single handed and we are not a ...
1
vote
0answers
11 views

Making use of the Android GPU debugging tools

I tried following the manual to install the Android GPU debugging tools for android Studio 2.0. Unfortunately it has not been very successful. I have been following the instructions of the official ...
1
vote
1answer
24 views

IsolatedStorageException : Could not find file

I'm trying to save/load player data from a file using the persistenceDataPath using the following code: private void Save() { if (File.Exists (Application.persistentDataPath + "/...
1
vote
2answers
29 views

unity Tilt Android Device player Freeze When Die

I attached tilt script to my Player to move player x and y Axis. Player have Rigidbody2D and also IsKinematic=true. but the problem when the player can Die i want to stop tilting and player goes down ...
3
votes
0answers
33 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 ...
1
vote
2answers
35 views

Unity2D - move rigidbody object with collision

How do I move and collide my object (position given by touch or click), by Using rigidBody2D.MovePosition i can only teleport my character, and by using velocity, my character keeps moving, I want him ...
0
votes
0answers
30 views

How can I develop a simple Andoid game with basic 2D physics? [closed]

I have a 2D game idea, and do not know how should I start. It is a simple game, where I should be able to stack up a lot of objects in a heap affected by gravity. Which framework (I have heard of ...
1
vote
0answers
46 views

How to rotate a sprite on touch/drag done on the screen wih Andengine?

when I look at the andengine examples I saw an example about rotate a sprite with joystick. Here is the code; final float y2 = (this.mPlaceOnScreenControlsAtDifferentVerticalLocations) ? 0 : y1; ...
0
votes
0answers
37 views

I need a payment gateway for my game [closed]

I am a game dev. I am thinking to make a game with in app purchases. But receiving money feom google play isn’t available in my country. So i am searching for other ways. Please help me. I cant use ...
1
vote
0answers
23 views

LibGDX: I need to get from SpriteBatch to Batch in order to draw a Touchpad

I have created a little game using LibGDX and it uses a SpriteBatch when it renders the game objects. Now I want to add a Touchpad to it, and the draw method of Touchpad takes a Batch as a parameter, ...
1
vote
1answer
14 views

PlayerCenteredScores in LeaderBoards

Games.Leaderboards.loadPlayerCenteredScores(mGoogleApiClient,leaderboardId, LeaderboardVariant.TIME_SPAN_ALL_TIME, LeaderboardVariant.COLLECTION_PUBLIC, 5).setResultCallback(new ResultCallback<...
0
votes
0answers
13 views

Chartboost ads not showing on some Android Devices [closed]

I had implemented chartboots ads in my Libgdx game. When I tested it, it worked properly and when I published the game it is working well on some devices, but it doesn't work on others. my friends ...
1
vote
0answers
11 views

Libgdx Error in Importing chartboost. sdk

I am trying to add chartboost ads, I had added the jar file to my libs but when I am trying to import the chartboost sdk it gives me error and the whole lines of: import com.chartboost.sdk.Chartboost;...
0
votes
0answers
16 views

Get Incremental Achievement count in google play services

I could succesfully increment the achievement by using the following code. Games.Achievements.increment(getApiClient(), "ACHIEVEMENTID", 1 ); but couldn't find a way to read the current increment ...
0
votes
0answers
35 views

How to apply physics on multiple sphere after collide like in Snooker game in unity?

I'm new in unity developement. I want to develop android game application Kanche(Marble). It's marble based game. Player need to take out other marbles from circle. What I've tried so far is, Rall a ...
1
vote
0answers
27 views

2D Scrollable View with Matrix of Numbers on Android

I would like to implement a 2D, scrollable view which can be scrolled horizontally, vertically or even diagonally (similar to a zoomed image which can be scrolled in any direction, but has bounds). In ...
1
vote
1answer
57 views

Scene Transition in libgdx

How can I make transition between stages in libgdx ? I have 2 screens MenuScreen and GameScreen each of which has a stage I write the following to make a transition : in MenuScreen SequenceAction ...
4
votes
1answer
44 views

OpenGL ES Frame Skipping causing visible artifacts

I'm using OpenGL ES 3.0 on Android 5.1, and am noticing the following issues. I tried to implement the game loop which does exactly 60 updates and do as many frames as it can. Everything is smooth, ...
3
votes
0answers
28 views

Unity's Touch API is exposing only half of the available Android touch data (image attached)

Unity is only exposing half of the touch data that Android itself receives. I'm using the standard Input.touchCount and Input.GetTouch() API. My test scene is quite simple. My game is precision swipe ...
1
vote
1answer
43 views

How should I control leveling up in a knowledge/skill testing game?

I have developed a game that tests the knowledge and skills in a series of short quiz-like games. Players have to move from Level 1 to Level 16 (with Level 4, 8 and 12 as major milestones~BANDS). ...
-2
votes
1answer
36 views

Polygon movement towards certain point libGDX

I recently started using the Polygons but I'm have struggle as I'm trying to make a Polygon move towards the center of my screen, although I don't know how. Here's the code I have(What I'm trying to ...
0
votes
0answers
42 views

Sprites Positons

I create my sprites for 800x480 and position them accroding to this On dealing with multiple resolutions I use a method that set sprite size and position according to the current resolution instead ...
0
votes
0answers
50 views

glMapBufferRange performance on devices with shared memory

I have a few questions regards to the glMapBufferRange performance on devices with shared memory between CPU and GPU (OpenGL ES 3 capable Android devices to be specific). 1 - Is the mapped buffer ...
0
votes
0answers
53 views

Cocos2d-x v3.12 compile fails

Question duplicated from Stackoverflow, sorry don't know how to move questions between stack sites. Recently updated Cocos2d-x to v 3.12 and created the "Hello World!" project but the CLI command ...
0
votes
0answers
70 views

How to maximum height and body to move in projectile motion( on Canvas)

**Really.anybody Know't this question's Answer? ** I asked this question before, but I think I worded it badly and thus did not get any response. I am trying to use an projectile motion in my game. ...
0
votes
0answers
20 views

Installing a .apk file made by Unreal Engine 4.12.4 Error

When I try and run this installer that the UE4 packager created i get this error message And yes i do have an SD card (Put into the tablet only today), yes the dev options do look "ok" i guess and ...
0
votes
1answer
80 views

Put layout over Surfaceview

I have this problem: I'm trying to create new RelativeLayout over whole screen - which also contains SurfaceView in the middle - and display some things on this RelativeLayout (in my case Imageview ...
0
votes
1answer
47 views

How to test an android game made in Unreal Engine 4

I have made a android game in unreal engine 4 version 4.12.4 and I want to test it on a real android device and i do have an android tablet but i don't know how to get the exported project onto the ...
0
votes
1answer
28 views

LibGDX - blurred textures when resizing

Hi could anyone help me solving the problem of blurred texures? My viewport screen have 800px of height and 480-600px (for different aspect ratios) of width and when I test game on smartphone with ...
1
vote
0answers
35 views

Libgdx final stage of adding admob to game

I had finished my game and wanted to add Admob ads to the game. I followed all the instructions in Admob in Libgdx and It's working very well, and the ads are shown properly, I just wanna be sure ...
0
votes
0answers
20 views

make scrollable list in circular shape using libgdx

I am developing a game using libgdx. I am stuck at making a list in the shape of a half circular which is also scrollable. This is a sample image (not circular) which I want to be in similar shape ...
0
votes
0answers
20 views

Unity fragment shader. Problem with passing parameters to shader in android version

I have a shader linked to a material which is connected to an object. On runtime I'm trying to change it's parameters( with uniform variables or with properties). On my PC version everything works ...
0
votes
0answers
37 views

How to scale the camera

I'm developing a game engine (for the sake of knowledge) using OpenGL ES 1.x (Android). And there is a problem with scaling. To ensure that all textures are displayed correctly on various devices I ...
0
votes
0answers
7 views

Button is not showing up

private EditText inputName = null; private CCMenuItemImage nextBtn = null; private void init() { CGSize winSize = CCDirector.sharedDirector().winSize(); final float scaleX = ...
1
vote
0answers
26 views

What will happen at a different aspect ratio and what is the most efficient and easy way of dealing it? [duplicate]

Let's say I have built a game for Android at the size of 480x854. If I test this on my device that has this resolution I suppose it will work and look property. But at a different aspect ratio will ...
1
vote
1answer
31 views

android - How Do I Replace A Scene in Cocos2D

I am using Cocos2D for Android: I have two scenes MainScene and LogoScene. I want to show a Splash screen on LogoScene then, I want to go to MainScene. I am wondering how I can go from LogoScene to ...
1
vote
0answers
14 views

Cocos2d How do I transition to a scene

So I have mainScene and I have LogoScene, I am wondering If i can make logoscene show a logo, then transition to mainscene. here is what i have import org.cocos2d.layers.CCLayer; import org....
0
votes
0answers
32 views

Android/Gear VR: Smooth walking with gamepad

I'm working on an Android app for the Gear VR using the Oculus SDK (Java, Eclipse) and I used this website to help me handle controller input, so I understand the whole concept of the center axis for ...
1
vote
0answers
44 views

Everyplay not working on Unity 4.6

I am using Everyplay in my game and when I run my game on mobile. It showing me as recording supported as false. I put the Client ID and client secret as well and checked on Android enabled. Can ...
1
vote
0answers
30 views

Libgdx actions to image is applied to whole actors

I am trying to make the Image hidden then fade in and this is working but the background image is also become hidden the fade in : here where I apply the action in this class: public class ...
-2
votes
1answer
127 views

Will Chartboost block my account for clicking my own ads?

I created a game in iOS and Android. Every day I manually click ads in it from my device. Is this okay? Or can Chartboost block my account if I do this for a long time? I've been doing it for the ...
1
vote
1answer
41 views

Creating SurfaceView cause short screen blink

When I create SurfaceView for first time since app launch, the app screen blinks black for small time (about 1/4 second). It blinks over UI, so its really visible and doesn't look nice at all. I've ...