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

1
vote
1answer
207 views

How can i get object from TMXTiledMap and store it in Dictionary variable ?

I've been following a tutorial to make tiled map in cocos2d x 3.0 , but i couldnt complete the rest of the tutorial because its for coco2d x 2.0 version, How can i get a value of property that is ...
1
vote
1answer
250 views

Cant write/read to/from external storage with LibGDX

My create method looks like this: @Override public void create () { batch = new SpriteBatch(); FileHandle file = Gdx.files.external("file.txt"); file.writeString("My god, it's full of ...
1
vote
1answer
396 views

How to make unitypackage from allseen alliance's android sdk?

Im making an offline multiplayer for Android device by Unity and I found only one way to do this is the allseenalliance sdk. After download its from here I found that to use it I need to create an ....
0
votes
1answer
17 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 ...
1
vote
1answer
684 views

Handling Back Button in Android without implementing InputProcessor

Please advice/clarifyon below issue in libgdx while handling back button in Screens. I have already gone through these 2 threads, http://stackoverflow.com/questions/7223723/in-libgdx-how-do-i-get-...
2
votes
0answers
24 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 ...
3
votes
2answers
187 views

Android libGDX FreeTypeFontGenerator exception

I am working on a libGDX project for Android. Since I added the following code, running the game on my Android phone produces an exception: final FreeTypeFontGenerator generator = new ...
1
vote
2answers
31 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 ...
1
vote
1answer
61 views

Check collision between two rectangles - libGDX

I'm making a game in which the objective is to collect the maximum amount of balls(Rectangle) to get the highest score. The balls spawn randomly from the middle of every side of your smartphone, and ...
0
votes
0answers
24 views

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

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

I need a payment gateway for my game [on hold]

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 ...
2
votes
1answer
44 views

Libgdx Image doesn't fit the Screen

I am Trying to show Image as background, but it doesn't fit to the screen. When I use this class as the start screen it fit the screen properly but when I call this class after winning the level, the ...
1
vote
0answers
16 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, ...
2
votes
1answer
3k views

How do I put a game on miniclip or addinctinggames?

I finished making a java game recently, and I would like to put it on a website such as Miniclip.com or AddictingGames. How would I do this? I have one more question. I know these sites could run ...
0
votes
1answer
501 views

Why is my screen black?

I'm developing an android game, and my screen is not displaying what I want it to. I've read various tutorials but they are either outdated or hard to follow. I have followed this tutorial and most of ...
0
votes
2answers
46 views

Black lines on sprites

I am having the issue as seen below while using a textureAtlas with libgdx. I haven't found anyone else with the issue so I decided to ask here. Here is an image of the textures in the game screen: ...
1
vote
1answer
13 views

PlayerCenteredScores in LeaderBoards

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

Chartboost ads not showing on some Android Devices [on hold]

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
1answer
46 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 ...
3
votes
2answers
225 views

Libgdx Android app: Avoid fullscreen and show titlebar

I am developing an app using Libgdx and I don't want the app to go fullscreen and want to show the title bar but the app goes to fullscreen and hides title bar despite all efforts. Here is my style....
0
votes
0answers
18 views

Android virtual reality games using unreal [on hold]

How to create a android virtual reality games using unreal engine especially for beginners using blueprints and is there any good tutorials for that
1
vote
0answers
10 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;...
5
votes
1answer
91 views

Google Play Services and COPPA Compliance

I hesitated to ask this question here, since i'm not sure there is a definitive answer (but there can be, maybe i missed it). I'm implementing Google Play Services for a game on Android target at all ...
0
votes
0answers
14 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 ...
1
vote
1answer
75 views

How can I check on a large number of points to see if they're inside the camera's frustum?

I have a locally stored database on my Android project, it is a database of approx 100,000 Point3D(double,double,double). I need to check if each of these points are inside of the camera's frustum in ...
1
vote
1answer
48 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 ...
1
vote
0answers
23 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 ...
0
votes
0answers
34 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 ...
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, ...
1
vote
1answer
57 views

cannot implement GLSurfaceView.RENDERMODE_WHEN_DIRTY

I'm trying simply to display an openGL surface when I click the screen using GLSurfaceView.RENDERMODE_WHEN_DIRTY mode but the surface does not display when I click it , why ? my Activity : public ...
2
votes
1answer
467 views

Generate ETC2 compressed texture from Android Bitmap in OpenGL ES 2

My app currently uses a lot of textures most of which probably could be compressed quite a lot by using ETC2 (my app runs on 4.4 so i have a lot of devices supporting GLES30), i cannot use ETC1 since ...
0
votes
0answers
48 views

Is using game engine worth for incremental games? [closed]

I'm interested in creating an Android game, which will be an incremental game (Cookie clicker kind). The question that mostly bothers me is, shall I use game engine for it, or standard Android ...
1
vote
1answer
161 views

GameMaker android support

Game-maker asks me to install android sdk api 13 for it to work. I opened the SDK Manager so that I install it, clicked at API 13 and I couldn't be able to click the "install packages" button. I ...
-1
votes
0answers
21 views

Sudden shutdown with IllegalStateException without doing anything [closed]

After 26 minutes leaving my app running without doing anything with it as a user, "app has stopped" window suddenly pop up and Logcat prints only this: 07-15 20:34:16.595 27361-27363/test.game D/...
2
votes
1answer
891 views

Multiple enemy array in LibGDX

I am trying to make a multiple enemy array, where every 30 secods a new bullet comes from a random point. And if the bullet is clicked it should disapear and a pop like an explosion should appear. And ...
2
votes
1answer
55 views

draw two models changing the MVP matrix (android opengl)

I'm newbie with opengl2 in android, and I'm making an app in which I'm testing some things. Now I was trying to duplicate a sphere object with a texture, so I thought it was enough to change my MVP ...
0
votes
0answers
29 views

Android Studio - Gradle update [closed]

I'm currently using gradle version 1.0.0, but I've upgraded Android Studio to newest version and now it offers me gradle v2.1.2. Does the upgrade fix any important compability/security things, or the ...
3
votes
0answers
27 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
38 views

How do I know if the ad is open while the use pressed the back button?

I am trying to reward a user a point whenever they watch/look at an ad. I give the user the reward whenever they watch the ad. However, the user earns a point even if they go to the ad and click back: ...
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). ...
0
votes
0answers
16 views

Android - Tracking gps location to check if user reached near to a particular location with a service running in background [closed]

I have a requirement where I need to design an android app with a feature where if user reaches near(specified range) to some specified location (lets say list of Longitude & Latitude pos), our ...
0
votes
0answers
67 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. ...
5
votes
1answer
301 views

What's the best practice for a progress bar in OpenGL ES 2.0 (Android)

As the title says, what is the best practice for a progress bar in OpenGL ES 2.0 on Android ? My attempt: I make a texture (could be a single colour or otherwise), and then stretch that texture from ...
0
votes
1answer
343 views

How to zoom and scroll in libGdx?

I am trying to both A.) Pinch zoom my game scene and B.) Move (scroll) my game scene but I have not found many examples. I learn more by examples than by reading API documentation (although I am ...
2
votes
1answer
116 views

Draw wireframe models for Gear VR app: Unity or Eclipse?

I want to create a 3D Android app for Gear VR that does/lets me do the following: Read an input file with a bunch of coordinates of points (including information about how they should be connected) ...
1
vote
1answer
34 views

Having trouble going from the menu I created w/ Android normally to my LibGDX game file

So I wanted to use Android Studio to create the menu for my game so I created a button with an onClick method that included the Intent i and startActivity(i) but when I clicked the button the app ...
1
vote
2answers
161 views

Sound isn't playing in Game Maker Studio when interacting with an object

I'm making a small game in Game Maker Studio. I have a piece of code that moves the player to the next room when he touches obj_star: this works. I have another line that tries to play sound_collect ...
-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 ...