Android is an operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com

learn more… | top users | synonyms

0
votes
1answer
20 views

Libgdx - Jumping, What am i doing wrong?

I really can't work out whats wrong with my code. I have an input listener for gestures, when I Swipe the position goes up on the y axis fine but he doesn't come back down, if with Gravity added. I'll ...
0
votes
1answer
35 views

Google Play Game Services real-time multiplayer secure game data architecture

Is it secure to allow all game clients in a multiplayer game session to store sensitive opponent player data which should be revealed in the UI only upon a certain action (e.g. enemy building type ...
0
votes
0answers
15 views

Android Studio Project Creation Error [on hold]

I have recently taken up Android Game Development, but my Android Studio is acting up. I installed Java JDK 7, just for the record. When I try to create a new project, I get this stupidly annoying ...
0
votes
0answers
48 views

beginning game development for Android, where to start? [on hold]

I am an experienced programmer with C, java and little ruby/Python experience. I want to develop games for Android but the number of game engines available (I think they are called game engines, not ...
0
votes
0answers
28 views

Unity: why game app on Android takes up much more memory than Unity Profiler reports?

We are profiling a game app on Android 4.4.2 device via Unity’s ADB profiling. We have set up ADB profiling following the official guide: http://docs.unity3d.com/Manual/Profiler.html The ADB ...
0
votes
2answers
45 views

GestureDetection Issues - How do I make my Actor jump on Swipe?

I've been trying to solve this for hours now, In theory I totally understand how the GestureDetector works but I'm trying to integrate it with the Libgdx SuperJumper Tutorial (for now). Here: ...
0
votes
0answers
30 views

Android online real-time multiplayer game solution [on hold]

I'm currently developing my first game. It is a multiplayer game on Android using WifiDirect with one device acting as server. I want to bring it to the next level and try making a real-time online ...
0
votes
0answers
40 views

Will Android apps made with libGDX be slower the normal Android apps? [closed]

What I mean if is if I made 2 identical apps one in libGDX and one in the normal SDK would the libGDX one be slower? I would think not because I believe libGDX still turns your files into .dex files ...
0
votes
1answer
33 views

Easy method of obtaining texture coordinates for sprite sheet

In my (OpenGL ES 2.0 Android) game, I use 2 types of Sprite Sheets. In one type all sprites/frames are of equal size and in the other they are all different shapes and sizes. It is the latter one to ...
1
vote
1answer
57 views

Why the size of my game increased on deploying it to Android using Unity3D?

When I deployed the game to 'Web Player', it's size was just 2.4 MB but when I deployed it to 'Android', it's size got increased to 38 MB. Why this happened? Please answer this, I can't provide any ...
-4
votes
0answers
34 views

How to animate Frog jump from one point to another point on a single touch event [closed]

Here is the problem : I have a set of images of frogs. When i click on the screen, frog should jump from current position to the new position. New position is the one where i clicked on screen. ...
0
votes
1answer
28 views

Coding a left/right object movement C# script for android phones in unity

I have 2 spheres and a cube on screen. I'm experimenting to make a 'left/right movement script' for the cube so that when I touch the left sphere, the cube moves left-wards and when I touch the ...
2
votes
1answer
50 views

unable to use two gestures simultaneously

I have a class implementing gesture listener in libgdx. I want to use longpress gesture in one half of the screen and fling gesture in other part of the screen simultaneously. public class ...
1
vote
1answer
51 views

How to move objects in any direction by swiping with libgdx android game development

first of, I'm new to android game development so I don't know all the classes and dictionaries within android and libgdx. I'm actually following a game development tutorial for the first time ...
0
votes
0answers
32 views

(LibGDX/JAVA) How can I get a rectangle to rotate with this pendulum so I can start detecting collisions?

One of the objects in my game is a pendulum that swings in a semi-circle. This is done by having an update() method like this: public void update() { angleAcceleration = +1.81 / length * ...
0
votes
0answers
36 views

Sprites not being rendered on screen change - Android Libgdx

In my game over screen for my Libgdx Android game I've the following code which starts a new game upon a screen touch. if(Gdx.input.isTouched()) { ScreenManager.setScreen(new ...
1
vote
1answer
34 views

Change Camera Contrast in VR Game

Hello there Firends , I'm developing a Virtual Reality game in Unity. As in every VR game , i have 2 cameras for stereo rendering. I want to show the same object in each camera having different ...
0
votes
0answers
27 views

Rotate gameobject on fix X and Y axis with touch

I'm using Unity 5, and I want to rotate an object using touch input. This works: target.transform.Rotate(touchDeltaPosition.x 3.0f,touchDeltaPosition.y 3.0f ,0,Space.World); The problem is it also ...
0
votes
1answer
46 views

Game lags when my player collides with a specific object (solution known, unsure how to implement)

I'm developing a game in Android using LibGDX (although this is more of a JAVA problem than an engine problem). My aim is to have my player bounce off one spring onto another that will eventually take ...
0
votes
0answers
25 views

Android: How to scale the imageView? [on hold]

Right now my application allows the user to double-tap a bitmap image and a circle is drawn exactly where the user double-taps. Now I want to implement a button that can resize the circle that is ...
-1
votes
0answers
13 views

Sequential Memory Game, Incrementing Images Showing all at Once not One at a Time

I am making a sequential memory game, each time a user gets the sequence correct an extra image is added to the sequence. The problem I am having is all the images flash at once not one at a time. For ...
1
vote
1answer
56 views

Grayscale color mode texture not rendering in libGDX

I am about to develop a game completely in shades of grey using libGDX and just for testing purposes, i created two textures in photoshop: 2048 x 2048 plain white png image with RGB color mode of ...
1
vote
1answer
65 views

Is there any case to mix Android UI with LibGDX?

my question is about creating "non-playable" screens in games with the help of native android tools. For example, I have an Android LibGDX game (singleplatform), what should I use to provide start ...
0
votes
0answers
13 views

Libgdx - How to change GestureListener pan finger sensibility?

I implemented GestureListener in my Overlap2dStage to pan the camera when the player drags its finger over the screen. But I also have some actors that extend InputAdapter to detect when the user ...
1
vote
1answer
62 views

How can I get the pressure of a touch in Unity?

Does anyone know how to get the getPressure function from the Android API into Unity? Or is there another way I can access the pressure of a touch?
0
votes
0answers
67 views

Why does my Unity Android export fail with “No resource identifier found”?

When I try to export my Unity game to Android, I get this error: CommandInvokationFailure: Failed to re-package resources. See the Console for details. F:\Android SDK ...
1
vote
1answer
42 views

(Java) Trying to animate an arraylist of coins with a (working) animation class

I have a coin class which takes in an integer numOfCoinsand an enum LayoutType, which can be linear or curved. A linear layout displays the coins in a straight line one after the other - we'll work ...
0
votes
1answer
70 views

In Unity for Android, how do I create touchable buttons?

I'm making a test game for Android in Unity 5, and I want to add left-right control buttons like the circles below, to move an object left or right. How can I do this? Sorry if this question is ...
0
votes
0answers
18 views

Drag and drop in android

I am using drag and drop, I want to retain Status of Action Down through Action Move in android studio. I am coding for game like candy crush , I want to swap two objects. I am able to swap using ...
1
vote
1answer
35 views

LibGDX font issues

I've started creating a small project for the store with LibGDX. So far I only tested on PC, and everything went well. I'm using the gdx-smart-font library for font rendering. The fonts are looking ...
0
votes
0answers
39 views

How to make touch events work in a match three type game

In "match three" types of games like Crazy Kitchen, when the user touches an image, he can drag his finger over multiple images and create a change in each image he touches in a single gesture. You ...
0
votes
1answer
62 views

Apk file installes two instances of a Unity game

I created an apk in Unity (4.6) and when I install that apk on the device it creates 2 instances of the game (2 icons are visible in the screen). Both icons start the same game, and when I uninstall ...
0
votes
0answers
29 views

How to use Android Sensor, only in x axis

I have seen some tutorials but they are very complicated and they are about the three axes (x,y,z). So I want a code that moves an object or more (for example) to the right or the left when the ...
0
votes
0answers
14 views

How to stop an ImageView being dragged before the user stops dragging

I am making a maze game using Android Studio. I have a GridLayout on the bottom layer of the layout, each cell contains a custom LinearLayout. Some of these LinearLayouts have a special boolean ...
0
votes
0answers
14 views

Problem of textureRegions display after display two screens

I have a texture display problem, knowing that they display correctly in the desktop project and before packer textures. but once I packed textures, they still appear in the first screens((enuScreen ...
1
vote
1answer
77 views

LibGDX Android Application only running once

I'm having trouble trying to figure out why my LibGDX game only runs successfully once on Android. Assuming the game has not been installed on the device, when I run the application from eclipse the ...
0
votes
1answer
137 views

One Android app, dynamic load several Unity games

I'm a newbie in this unity world, exciting about everything in it. Days ago I came up with this idea: One day someone finds this android app, naming "Blahblah Game Engine" or anything else. This ...
1
vote
1answer
78 views

Help with Resolving Pixel Perfect Collision

Hi I'm having trouble resolving "Collision detection between axis-aligned bounding box and bitmap (pixel perfect) terrain on a Worms type game". (Read previous question to find more information about ...
-1
votes
1answer
222 views

exit application on double tap with message (Please click BACK again to exit ) …unity [closed]

Can anyone please help me here? This is not quite related to programming. I want to exit my Android application on back button tap with conformation for exit @Override public void onBackPressed() { ...
1
vote
1answer
130 views

Relation between “Run in background” setting and OnApplicationPause method

I'm working on a game for mobile platforms (Android at the moment, in the future it should be available for iOS and WinPhone) and I want to trigger a certain method when the game is un-paused. For ...
1
vote
2answers
91 views

Libgdx: different speed on different devices

I am running a simple Libgdx app that I have wrote, on my Android phone and Android tablet and I am getting the unexpected result of having different velocities when a body is moved. To move the body ...
0
votes
0answers
24 views

On mobile, where should I save game expansions' assets when purchased in-app?

Say you have a card game and you want to add more cards with an add-on available through in-app-purchase. Where would you save the new cards (e.g. image assets, code)? Of course you could just ...
0
votes
0answers
34 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 ...
0
votes
0answers
42 views

How to clip or mask entity in adnroid/andengine?

I want to implement masking with sprite in Andengine. I want same functionality as in ios class called SKCropNode which works like an masking node! Is there any workaround like this in ...
0
votes
0answers
31 views

Partitioning a Tiled map

In my 2d platformer with libGdx, my maps are quite large (eg. 200x200). The player character is only 2 tiles high. I use Box2d for collision, so in my tiled map I have layers for terrain, ...
2
votes
1answer
41 views

Collision detection between axis-aligned bounding box and bitmap (pixel perfect) terrain

Working on a Worms-type game, I have my objects in bounding boxes and they sit on the pixel terrain. Currently I am able to successfully do the collision detection for objects when they enter the ...
1
vote
0answers
27 views

Google Analytics collect and visualize custom data [closed]

I was wondering if Google Analytics (GA) can be used to collect custom metadata about app usage and performance. An example would be to measure and collect the average frame rate (fps) of the app on ...
0
votes
1answer
83 views

Touch pad controls not working in apk, working from Unity Remote

I've come across something unusual with my HTC One M8, I'm not sure if it's phone specific, a bug in unity, or just poor setup on my part. I've been using Unity Remote 4 to test in realtime, and it's ...
0
votes
1answer
39 views

Cocos2dx - Touch not recognized on Android

I'm having trouble with a touch listener not picking up touch events on android, but doing fine in windows (mouse input). I've got a Node listening for touches (not a Layer), but from what I've been ...
0
votes
0answers
70 views

How can i draw Arc in center of the screen on canvas in android

RectF rectf = new RectF(10, 100, 700, 800); c.drawArc(rectf, 0, 90, true, paint); the above code is draw the arc using drawArc() method of canvas but i try to draw arc in a center of the screen.