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

learn more… | top users | synonyms

0
votes
3answers
102 views

Adjust bitmaps according to screen ratios on android

I always thought that pixels were square... it turns out i'm wrong, and I am quite worried by this. This means that if I draw a circle, it will be round on my screen but it could be an ellipse on ...
2
votes
1answer
39 views

Viewport and Camera setting

For my first game in LibGDX and Android I got a Problem: I have a background picture which is 2560px * 720px. The screen is 1280 * 720. How do I have to set the viewport and camera in order to get ...
0
votes
1answer
192 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
0answers
7 views

Consturcting a sprite bitmap from mutliple partial sprties across sheets

First of all, I am not using engine and this is for Android. Bear with me if I use incorrect lingo as I am not experienced in game dev (but I am trying) I am being provided multiple sprite sheets. ...
0
votes
1answer
44 views

AssetManager proper usage in libgdx

I am a beginner in libgdx and I am coding a simple game. This game is like a word puzzle where each letter is a texture. Before loading the first level I need to load into memory 26 textures, one for ...
20
votes
5answers
9k views

Why is an engine like Unity3D emphasized over a native library like OpenGL for beginners? [closed]

I am just a beginner in 3D games, my preferred platform is Android. I posted a question in some other forum about "What to use: OpenGL or Unity3d?" They all emphasized Unity3D and using its built-in ...
-1
votes
1answer
41 views

Creating an Android port of old PC games [closed]

I have seen some decent ports to Android of old PC games. The graphics and game engines are the same, and all that seems to have been changed was the key mapping, and adding touch-screen events. I ...
0
votes
2answers
64 views

What will happen with PlayerPrefs data after updating the app?

I'm using PlayerPrefs (Unity3D, on Android). If a user updates my application via the Google Play store, what happens to the data I've stored in PlayerPrefs?
3
votes
2answers
109 views

How to set borders in Rubik's cube using opengl GLSurfaceView

I'm developing a Rubik's cube game like seen in the picture. But I'm facing problems to set the cube face color with black border. public void setupSides() { int i, j, k; // Paint back blue i = 0; ...
0
votes
0answers
71 views

Transparency in GLSurfaceView

I'm new in game development. I have a view using GLSurfaceview and call in MainActivity. i want to make transparent that view. i have tried setZOrderOnTop() method in MainActivity and glClearColor() ...
0
votes
1answer
228 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 ...
3
votes
3answers
761 views

How do I access a Unity class from an Android Activity?

I have made my own C# classes in Unity. How can I access them from the Android Activity that starts the UnityPlayer? Example: I have a C# class called testClass in Unity: class testClass { ...
1
vote
3answers
98 views

Avoid if else pattern everywhere depending on game settings

I am creating a sudoku game using the android sdk. I have a PreferenceActivity filled with different settings, such as "Highlight all digits" or "activate the visual helper". The problem is that I am ...
1
vote
1answer
548 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 ...
1
vote
3answers
981 views

Will I have copyright issues making a mobile game based on an anime?

I have been wanting to create a mobile game based on some of my favorite anime. I want to know if using character images and names from those anime (even after giving full copyright credits and ...
0
votes
1answer
122 views

Fixed background on a SurfaceView

I'm currently working on a top-down twin-stick shooter for Android. I've got my player moving around and shooting, but I'm looking to add a large Bitmap background which is larger than the device ...
3
votes
2answers
60 views

LIbgdx android app remove fullscreen and show titlebar

I am developing an app using libgdx and i dont want the app to go fullsceen and i also want to show the title bar but the app goes to full screen and hides title bar instead of all efforts. here is ...
2
votes
1answer
53 views

[Libgdx]Screen not rendering after restarting game

I have a strange problem while using the libgdx library Game works fine on the initial launch on Android, but after that restarting game does not render the graphics on the screen properly. It is a ...
12
votes
1answer
6k views

Max texture size Android : which settings for 2048x2048?

I want to use a texture atlas of 2048 x 2048 in my game, and I would like to warn the users with a "too low" device to not download the game. With a texture atlas of this size, what requirements ...
0
votes
1answer
268 views

Game sprite far too small

So I started writing an Android 2D game. I've come to the point where I want to display my character image on the screen. I read that most sprites have a resolution of 16*16, or more. So I created an ...
1
vote
1answer
2k views

How do I set up Unity for Eclipse?

I want to use Unity on Android. How can I integrate Unity with Eclipse? I searched this site and various forums, but found nothing useful.
0
votes
1answer
115 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 ...
0
votes
1answer
138 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
27 views

ETC1 Performance Problem Android

I wanted to support etc1, because it shoul improve the performance and loading times, but somehow its worse than using normal png files. I'm using Mali compression tool with seperate RBG pkm texture ...
0
votes
2answers
331 views

Libgdx box2d crashing

im making a game in libgdx which i having a bunch of circle bodies floating around in space and when the player's body crashes into another body, that body deletes and creates two smaller bodies ...
2
votes
1answer
49 views

Keeping Android device awake [closed]

I currently program a game in which the user don't need to interact with the screen. Is there any way to keep the screen awake?
0
votes
1answer
2k views

Unity Android Unable to convert classes into dex format AdMob

I'm a beginner Unity programmer (school-age), so I don't know that much about the system. On its own my app compiles fine, but when I implement the AdMob SDK (Google) 2.1, I have the following error ...
-1
votes
2answers
244 views

How to pass a turn to AI and draw its move in a game?

I am writing a simple game for 2 players, where they have to make turns after each other (select a few objects to remove from the screen) and press "End turn" at the end to pass the turn to another ...
2
votes
1answer
209 views

LibGDX Box2D TileGame Efficiency

I am trying to implement Box2D into my top down tile game in LibGDX. Each world consists of a set of chunks, and each chunk is 16 tiles wide/long. The maximum/minimum chunks loaded at one time is 9 (a ...
0
votes
1answer
170 views

Cocos2dx - Trail

I'd like to implement a trail (like the white circles in Angry Birds) that chase my Sprite. I already used CCMotionStreak, but the trail texture is "stretched" instead. Anyone has an idea how to make ...
0
votes
0answers
37 views

How to customize/disable Google Play service notifications

I'm using Google Play services to make a turn-based game. When a user invites friends or takes a turn while playing, Google will send a notification, but it can't directly open my game (instead, it ...
0
votes
1answer
182 views

Android OpenGL and non premultiplied textures

As I understand it; by default all bitmaps will will get the alpha channel premultiplied in Android if loaded using BitmapFactory. My setup: I have a 32bit bitmap(.bmp) where the alpha channel has a ...
2
votes
1answer
42 views

Using USB sound input for an android game - is it possible?

We are brainstorming ideas for an app, for a major project using Android Studio, and writing in java. My major is game development, so I intend on trying to build a video game based off the use of an ...
0
votes
1answer
189 views

libGDX new TextureAtlas(filename) and new Texture(filename) drawing stale image data

I'm trying to draw an image using libgdx but no matter what I do, libgdx seems to insist on drawing a portion of an image I had loaded and used in an earlier game screen. In my current game screen ...
0
votes
1answer
79 views

is there a formula to know how many enemies i can place before jumping character?

My game is very similar to the hidden game in chromes web browser. I have a character that needs to jump over incoming enemies. Is there any way i can know when to send an incoming enemy? Some of the ...
3
votes
1answer
1k views

Calling an android method from Unity3D with a JAR plugin

I am developing a game with Unity only for Android platform and I am requiring to share content of my game through an intent so I have implemented a JAR plugin according to several tutorials with this ...
0
votes
0answers
23 views

Compiler error when building for Android after exporting Oculus assets

I have a Unity project which I'm planning to build both for PC and Android. The project is a VR game. For PC I'm using the Oculus SDK and for mobile I'm using ALPSVR SDK. I was working solely with ...
0
votes
1answer
93 views

How to make TMXTiledMap responsive?

I've been struggling with Cocos2d-x (C++) and finally I got to the point I feel more or less comfortable with that. My game is a 2D car-based one, with a straight infinite map where I've finally been ...
1
vote
1answer
41 views

libgdx - Check if body is touch

I have some bodies around the screen(Ball[] balls), and I would like to delete them when user touches them. Also, I have an Image as userData of the bodies. I dont want to make a function to all ...
0
votes
1answer
57 views

LibGdx Scalling sprites on Android

I have a sprite that is a few buttons but need them in the center of the screen for all android devices. I tried setting it's location to the center of the screen by dividing the orthogonal camera by ...
1
vote
0answers
28 views

Google Play Games Signs Out Automatically without Internet Unity

I am using this in my game to implement games saving and loading. I have also tried the basic sign in process by using the following start function :- { PlayGamesClientConfiguration config ...
0
votes
1answer
552 views

AndEngine - Performance problems with many entities

I'm developing a rolling scene based game I'm loading all the entities from a XML file and create them in the Loading Scene recently I increase the game width , and by doing so , in the whole level I ...
0
votes
0answers
27 views

OpenGL- Render to texture- a specific area of screen

I implemented FBO on my OpenGL Game. and Im rendering what is rendered to screen to a texture, the problem is that rendering to texture starts from lower left corner. look: what is rendered to ...
0
votes
0answers
10 views

AndEngine : Collision does not make line disappear

I have drawn the line between two sprites and there is a rectangle. When the line collides with rectangle the line should be invisible else the line should be visible. But i am having problem with ...
0
votes
0answers
23 views

Opengl Create FBO- fatal signal 11 error

in my android game, i want to render My scene in the FBO and a texture attached to it, and use that texture later, But When i use glGenFramebuffers i get this error: 07-30 06:17:27.839: A/libc(1338): ...
0
votes
1answer
76 views

2d character generator for android games

I am a developer, and not an artist. is there a 2d character generator that i can feed one picture and it will generate the proper files to be displayed for a running animation?
1
vote
2answers
49 views

How can I add extensions to libGDX

I had a problem with my Font in a game I am developing in libGdx. After some googling I was instructed to use the following code: private void createFonts() { FileHandle fontFile = ...
2
votes
1answer
35 views

OpenGL ES God Ray Precision error

I have encountered the following (i think) precision error. (missing link need 10 rep) My source of inspiration was: (missing link need 10 rep) On the PC everything works fine, but on android it ...
1
vote
2answers
145 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
1answer
38 views

android canvas rope swing

I'm creating the code, where a player swinging on a rope for the moment I got this double angle = Math.atan2(player_y - center_y, player_x - center_x) - Math.atan2(end_y - center_y, end_x - ...