Porting a java game to android
I have a basic noob question which I'm sure many of you can easily answer.
I am finishing up a game I am making in java. It is a windowed game, and I am not using any flow layouts. In other words, I am placing the images and buttons myself using setbounds, etc. I want to port this game to android, where it will be full screen.
I have heard that I should use Eclipse or libgdx to do this. My question is, will my game still retain its dimensions on an android phone? Will it scale to a viewable size
or will I have to adjust everything on my game to make it fit?
I'm also wondering how difficult is it to port it.
Thanks for your help.
Hi I am trying to modify the statusbar icon in android. The file, statusbar_background.9.png is to modified. 1. But could some one suggest me how to make it transparent? As for the customization, can
Right now for a Java course I'm trying to build a Mastermind-like game. In this game a 4-digit random number is generated, and the user tries to guess the number. With each guess the computer states h
We're porting an application from the iPhone to Android. Is there a way to have a static class for preferences which does not need an Android Context object passed in? In the iPhone version we have a
I've got the following Java code that I'd like to port to Node.js: // Java byte rawKey = deadbeefdeadbeef.getBytes(us-ascii); SecretKeySpec skeySpec = new SecretKeySpec(rawKey, AES); Cipher ci
I've been toying around in Android and attempting to port over a Java app. Below are some questions regarding to issues I've run into and would like some guidance on. It is a rather large question (m
I would like to ask a few questions regarding mobile game porting... Let say if I have a simple 2D C++ game engine and have a PC game based on that engine and I want to port it to different mobile pla
I am developing a simple java game and my scrollbar is raising an exception. The scrollbar is supposed to be a gameslider. Exception in thread Thread-3 java.lang.ClassCastException: sun.java2d.Nu
I'm trying to develop side scrolling game for android involving many many textures so I was thinking if I could create a separate layer, all a single unique color (very similar to a green screen effec
I'm porting several thousand lines of cryptographic C# functions to a Java project. The C# code extensively uses unsigned values and bitwise operations. I am aware of the necessary Java work-arounds t
I'm making a game in which we have to use 'Catchers' to catch balls which fall from the top of the window. Catches can only move left/right. Example: http://puu.sh/xeq8 Which direction should I look/h
I'm trying to make a program that calculates the required score to level in a game and the equation works fine on my calculator but not when i try changing it to work with java. the equation is 5,000
Is it somehow possible to embed PlayN game view within Android activity with custom layout? I mean any way because, looking at the PlayN code, it apparently is not supported yet. Have anyone tried to
My game uses cocos2d-x and will be published on iOS platform first, later on Android. I save a lot of things with CCUserDefault (scores, which level was completed, number of coins taken, etc...). But
I'm making a flash game this week, it needs to be compatable with both PC browsers and Android devices. I have no problem making two slightly different versions of the game, one optimized for PC and t
I have private and public keys from the .Net system in the xml format. I have to use this keys to perform encryption/decryption in Java. Is there any way to do it? Public key looks something like this
In some games, the game startup is to display the company name for a moment and then display the main menu for starting the game. I would like to do something similar. But I am not sure if my way is a
I want port some java code to Python, but I can't get functions that replace these java methods: ChannelBuffer buf buf.skipBytes(1); buf.readUnsignedInt(); buf.readUnsignedByte(); buf.readUnsignedSh
I have a game, at the end i show a Game Over if the player does not follow some instructions.... the problem is android seems to stay on that state, when i go back to the menu and come back in.. i s
I love both python and java and I'd love to have console in my game powered by python (jython). Handling input-output from PythonInterpreter is amazingly easy. But right now, I need to access instanc
I am new to the development as well as the prg world. I want to learn android and want to make applications for it. So one possible way is to buy a new android phone to test it live and not on emulato
I am making an android game called Connect4. I am facing a problem relating to pausing and resuming the game. When i run the game on a real device(on a Galaxy S2), while running the game, when i press
I’m new bluez user , I ‘m trying to use the bluez API and develop a native code c using NDK in order to make android 4.0.3 support BLE I read the code source of Bluez but I can’t find exactly what fun
im making a game on android. i need to pause the game, show the pause menu (through a new activity or a dialog anyhow) and then resume the game. this is how i am pausing and resuming my thread: public
I'm creating a game (Java) with scene2d. I wrote function for collision detection but I think it's bad function. It looks bad. How can I optimize it? Make faster and more beautiful. private void delet
I have simple c++ game with opengl and I would like to port it into android platform and ios. I have read many articles but i can not find any tool that can do this at the same time. Can i use cocos2d
What I'm trying to do is, making a game object move slower when a certain score is reached. I'm trying to do so with the help of boolean. There´s the score. public boolean bol = false; And there´s my
I want to create a board game (9x9 grid) for the android. I was wondering if there where any suggestions as to books, blogs, tutorial, or even open source programs to look into. I was planning on writ
So I have been studying Java for about 8 weeks and for class I had to design a shape guessing game. Yes it is Homework. So I have built my four shape classes with an example of one below. public clas
I need help finding the best method for networking in a multiplayer game. I want to connect to a phone and maintain the connection until the game is over, hosting the game on one of the phones. There
I'm learning to program in Java and would like to develop a mobile Chess game for the Blackberry platform. It was recommended to me that, as a beginner, I should build the game for regular desktop us
I am basically a php developer, and now I want learn android game programming, I tried java with ADT and android SDK, but I found java little bit confusing because of its complex OO structure. I heard
So I have have to implement the card game War. I have it all going well except for my loop stops when it hits the size of one of the decks (arraylist). What I want it to do is loop until one of the de
I'm porting a small (<10 classes) C++ project to Java. The project manipulates sound files, and in C++ does this using libsndfile. The code includes stuff like: const int channels = audioFileInfo.c
Due to lack of capital and time we are having to do our game in 2D even though me (the developer) would prefer if it was done in 3D. I would hate for users to join the game, only to think the graphics
I'm porting database schema tests from sql/plpgsql to Java/JDBC. But here is a test case I can't figure out how to test. As I can guess, this test tries to insert some row to a table, and expects SPEC
I am working on porting a game I made to android (never programmed on android before) and want the android DDMS for profiling, as shown in Using DDMS but the view is not available in eclipse (no DDMS
As I've been porting a java applet I made using tutorials from the xda dev site I've run into many issues. I've been trying to bring things over one by one to minimize errors. This collision detection
I'm just curious, I am interested in making my game available in the Google play store. but I am not sure exactly how I would do this. I already have a google play developer account, but now what? Wou
Any expert advice on how a beginner to porting might go about starting a project like this? Any porting guides or resources that might be helpful? Commonly used tactics? My idea is to help make a game
I am trying to learn OOP, starting with Java as I have read and been told it's the best place to start. With that said, I am trying to create a game for fun to help my learning, but I also know game p
I need to create a multiplayer game which will run in Android, iOS and web. I need real-time multiplayer api like google play services. But Real-time multiplayer is currently only supported for the An
I am trying to get my iPhone App on Android platform as well. I was wondering if there is anyway I can directly port my iPhone App or Code to Android? Do I need to write whole App from the scratch for
Posted earlier about something along the lines of this. This is a follow up. I have a previously existing java game in progress. Its about 95% finished. If I install libGdx, can I use previously exist
I am looking for the best way in which you would setup navigation in an Android game; a best practice for Android Game Activity Navigation. I have the following scenario: A Main Menu Activity (Greets
I'm making my first Android game which is going to be a 3D arcade-ish game using opengl es. I've been working on it for quite a long time, mainly optimizing the engine for flexibility for the future.
AsyncTask is very useful to synchronized between UI thread and other threads in Android. So I have read its source code and tried porting to java classic (JDK) but no success because some classes don'
I'm interesting to develop an android turn-based online game. I read that is possible with OpenFeint, but I didn't found any library. Does anyone know any tutorial for this? Any other alternative? I'm
I need some help dealing with three Threads in Android One thread is the main thread, the other is the GLThread, and the other is a WorkerThread I created to update the game state. The problem I have
So I'm working on developing a game for a school project and so far its gone well, but I have been trying to use a bitmap image instead of just using drawColor for the background, but doing so has mak
I'm developing a android game and i have a question about storing the game elements without firing garbage collector. My game needs a collection where the game elements are stored according to x,y po