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
0answers
237 views

How to use HyperLink with Actor in Libgdx

I am making a quiz game using LibGDX. I want it to redirect to a website. I am using classes like Text and Label that extends Actor to write text using a bitmap Font. I have no idea on how to provide ...
1
vote
0answers
344 views

how to play a video with Android or AndEngine

I don't know if it's possible to show a video like the videos in Angry Birds (Something in Flash or another format) in middle of a game with Android or AndEngine or are they animations what they are ...
1
vote
0answers
716 views

Create a touchpad-joystick using texturepacker2

I am adding a touchpad control to my game, using TexturePacker for loading images into the image-atlas. I have followed this tutorial to add the joystick. Everything is the same apart from the loading ...
1
vote
0answers
82 views

Android opengles how to use glunproject

How to use glunproject in my android app? I have the following parts in my engine: A projection matrix A view matrix for the camera A model matrix for each of the objects in my world. This matrix ...
1
vote
0answers
214 views

Android multi screen rendering

Is it possible on Android to render specifically / only, to the connected Monitor/TV on the hdmi port? If so, is it possible to use OpenGL ES to render a different scene on the monitor and on the ...
1
vote
0answers
546 views

Converting motionevent.getx and motionevent.gety to pixel or Object coordinates in the view

I am trying to draw buttons using OpenGL I have added a Gesture Listener for the GLSurface View now i have motionevent when ever the user touches. My question is how can i convert motionevent.getx and ...
1
vote
0answers
562 views

To stop Spite animation scrolling along the background in openGL ES

After using the endless road algorithm as described here, I also implemented the scrolling of walls along with it. I have the walk animation of the person which is stationed at the center of the ...
1
vote
0answers
445 views

Drawing two orthogonal strings in 3d space in Android Canvas?

I want to draw two strings in canvas. The first string must be rotated around the Y axis, for example 45 degrees. The second string must start at the end of the first string and also it must be ...
1
vote
0answers
2k views

Move a 2D square on y-axis on Android GLES2

I am trying to create a simple game for Android. To start, I am trying to make the square move down the y-axis, but the way I am doing it, it doesn't move the square at all and I can't find any ...
1
vote
0answers
1k views

Touchscreen panning in OpenGL ES 2.0

I'm trying to allow the user to pan a 2D scene by using the touch screen. I have tried several methods including translating the projection matrix, translating the view matrix and haven't found ...
1
vote
0answers
920 views

OpenGL ES multiple objects not being rendered

I am doing the following to render multiple balls move around the screen but only 1 ball is seen to appear and function. I don't know why the rest (count-1) balls are not being drawn public void ...
1
vote
0answers
448 views

Adding Libxml2 to an Android project under Cocos2D-X

I am having problems porting Libxml2. I like it because it works under windows like a charm with <libxml/parser.h>. When I reference the libraries I just cannot find the right path to them, ...
1
vote
0answers
787 views

How to Store the game score in android cocos2d

I calculates the score in game project using android cocos2d, in that game after finishing the first level it goes to the next level, so i want to store that first level score and also add next level ...
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 ...
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
47 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
69 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
19 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
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
19 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
36 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 = ...
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 ...
0
votes
0answers
13 views

Android Ant Release Signed Build Stopping with Google Play Services Library

I'm trying to build my android app in release build with google play services. First off, without any extra libraries, I setup my keystore and alias password and include it in ant.properties of my ...
0
votes
0answers
15 views

Libgdx Music is not working again

I am starting background music when the user goes to the PlayScreen and when the kid in the game dies, the background music stops and starts game over music and move to game over screen, then the user ...
0
votes
0answers
17 views

Libgdx Ending level is not working properly

In my game the kid is collecting fruits but if he hits the rock 3 times or time is up before collecting the required points, the kid will jump to the half of the screen then fall down and start fail ...
0
votes
0answers
26 views

Two Viewpagers - swipe from one to another cause stuck

I have two Viewpagers, one is controlling whole layouts (pages), and second holds some items. First one is named viewPager1 in this image: Works good, but not perfect; As you can see, there's ...
0
votes
0answers
15 views

Coordinate code for moving the object from one side to others side

I'm trying to make a 2D games, like airplane in android. To play the airplane, the user must shake the phone and then the airplane will move from left side to right side. And I don't know how to move ...
0
votes
0answers
27 views

How to program light effects in Andengine

I'm trying to make some light effects to my game, but for now i failed to do it well, i try put 3 Sprites: bitmap1 = new BitmapTextureAtlas(getTextureManager(), 1400, 1400, TextureOptions.DEFAULT); ...
0
votes
0answers
11 views

libgdx : starting animation disables imagebutton

I am playing an animation on clicking an imagebutton in android. Both the imagebutton and the Image for animation are actors on same stage. Animation plays perfectly, but the issue is after the ...
0
votes
0answers
41 views

How to use touch.deltaPosition properly?

I use following code for measure touch delata position: private Touch firstDetectedTouch; public Vector3 dragDistance; void Update() { if (Input.touchCount > 0) { ...
0
votes
0answers
32 views

Libgdx game doesn't work correctly after game over screen

So, I am trying to create a platform game for Android. As part of the game, I have created ladders that the hero is climbing. When he hits the enemy he dies, there is a game over screen --> touch to ...
0
votes
0answers
42 views

Admob banner causes lag while playing Android Libgdx game

I hide banner ads while playing and show on game over screen but while playing game lags. If I disable ads then there is no lag. Or if I connect to wi-fi, again no lag, but with mobile data it lags. ...
0
votes
0answers
23 views

HTML5 game - Difference in layouts in webview of app and webpage

I have created a working prototype of an HTML5 game and tried to convert it into an android app using PhoneGap. My issue is that the layout of the screen is bigger in case of the webview of the app. ...
0
votes
0answers
31 views

Paint objects cause lower FPS by time

I'm creating squares on XML layout with Paint, you can see how exactly bellow: public class PaintObject extends View { Paint paint; public int x; public int y; public PaintObject(...
0
votes
0answers
36 views

Removing no longer used paint out of screen

I have Paint, like this: Paint paint = new Paint(); paint = new Paint(Paint.ANTI_ALIAS_FLAG); paint.setStyle(Paint.Style.FILL); paint.setStrokeWidth(5); paint.setColor(Color.BLUE); and I'm drawing ...
0
votes
0answers
49 views

LibGDX works well on android 4 and very bad on android 5 and 6

I have a problem with my game. The game is made with libgdx, scene2d and box2d and it uses an AssetManager. I tested this app on all my devices and here it is the results: Galaxy S3, android 4 (...
0
votes
0answers
29 views

POST & push for turn-based network?

Can you create a viable two player turn-based networking implementation using only REST API for outbound and push for inbound data? If a game is comprised of, on average, 30 moves, is it a bad idea to ...
0
votes
0answers
29 views

Direction buttons for Android game

I am new to Android development and i am trying to develop a game. I have a basket which is used to catch different objects which are falling down randomly. Now to catch those objects, i am currently ...
0
votes
0answers
35 views

HorizontalScrollView with multiple views in one “frame”

I have ImageButton, with TextView and ImagaView inside it. I have six of these. So I want to implement them into HorizontalScrollView. I remember I had one HorizontalScrollView with images some time ...
0
votes
0answers
28 views

Libdgx and Overlap2D export settings for Android

So I have a problem when exporting assets from Overlap2D to Android Studio project location. When setting up libgdx I set the project to be for desktop and android and selected Overlap2D extension. ...
0
votes
0answers
26 views

Is there a specific file in the NDK that I need to link Unity3d to?

This is Android Development. I'm having issues with Unity saying that Android NDK isnt installed. I gave it the file path to the NDK directory. Its the exact NDK it told me to install (Unity). Do i ...
0
votes
0answers
49 views

Unity Android character controll with UI Buttons

So I'm trying to find a good tutorial which will explain how to controll character in 2D game when button is clicked (left, right, jump button). All the tutorials I've found are outdated and not ...
0
votes
0answers
68 views

How to update projectile trajectory point?

I am a new game developer, I am making a game, but I have a problem, I don't know how I can update my trajectory point in OnDraw method. Could anyone please help me? Thank you! Here is my code: ...
0
votes
0answers
24 views

AdMob Banner appears 960x150 instead of 320x50 in libGdx - what's wrong here?

I am a bit helpless with this strange effect from AdMob. AdView is instanciated in code and so is the relative layout and libGdx view. View view = initializeForView(Engine.createEngine(G....
0
votes
0answers
196 views

Standard file path for pictures in Android

I created a png file from an RenderTexture and I can save it to the standard directory in Windows. Now I want to do the same in Android. How can I get the standard picture path?
0
votes
0answers
74 views

LibGDX - black bars, FitViewport and drawing background

actually I'm creating game in LibGDX and i have few problems. I'm trying to solve resolution and aspect ratio problem by using FitViewport but i want to dispose black bars which occur when resolution ...
0
votes
0answers
27 views

Physics2D lag on increased timescale Unity

I have been working on an infinite runner kind of game in which i am trying to implement a speedup powerup kind of thing . Something that will allow me to boost through the levels at a high speed I ...