Android : What Steps Do I Need To Get Game Working On Multiple Resolutions?
May 5, 2010
I have a written a game that works fine on the 'normal' 320x480 screen of my G1.
I tried it on a friends Xperia x10 and it leaves a large blank section on the right hand side of the screen. How do I fix this? I've read that I need to include an extra directory in res/drawable for different densities. How do I do this?
View 1 Replies
Dec 21, 2009
I had posted a similar thread a while back and received no feedback, so let me try to be more clear.I am able to use Androids components to build the most basic layouts, which include images, buttons, text areas, etc. These are like Android Lego! I can build the castle. BUT I want to design my own component, my own Lego, that draws on the screen and uses the available area that the Android components have not used. ie, I want to have a top layer of buttons, and the rest of the screen, whatever it is, I want to use to draw 2d graphics. So, I want to make my own Lego, and use it with the other Android Lego. However, I'm also trying to be a good developer and making this for whatever resolution is thrown my way. What is the best way to do this considering the deluge of different resolutions Android developers must cope with? Is there a way to do a table view and return the remaining screen size? Or, am I stuck making an entire new box of Lego here?
View 7 Replies
View Related
Jun 22, 2010
i have completed my app for the 320x480 size and i don't give two cents about dpi or density, but i want this to work on the larger formats to and i have new artwork for those resolutions for my entire app. Is there an elegant way to set up my xml layouts and artwork around resolution only? In other words a "normal" screen size could be 320x480 or it could also be 400x800 or 400x856 depending on the dpi.
where it specifically applies to only small normal screens with medium density?
how to i account for the 800 vs 854 height difference when clearly xml identifiers won't tell these two apart? My app does not use a lot of relative layout components as it is very heavy on the sprites which obviously have fixed 2D dimensions
View 4 Replies
View Related
Oct 4, 2010
I have a button which I want to occupy 75% of the screen:
On a 480x800 resolution screen this would be 360 pixels wide.
On a 280x320 resolution screen this would be 210 pixels wide.
How do I go about specifying this in my layout XML file?
I understand there is a DIP unit of measurement, but does that also work to scale screen images for resolutions? What DIP measurement would I use for this, and do the images need to be saved at 160dpi.
View 2 Replies
View Related
Aug 27, 2010
I want the hulu app to work, apparently newest leak it does not. I can do root and s-off, don't want to go through backing up apps and restoring. Want the most stable 2.2. Needs verizon's 3g hotspot working. Doesn't need sense. What rom do I need, and what are the steps to getting this done? If it's always recommended to do a full backup, wipe, and restore, then bleh.
View 3 Replies
View Related
Jul 25, 2010
I've read the article "Supporting Multiple Screen" on Android developers site. But that doesn't apply to game logic.Let me get straight to the point. My situation is as follows:
- I'm creating a game using LunarLander code as a base.
- In my game, there'll be an object flying up from the bottom of the screen. The object will fly in projectile motion.
- I set the starting velocity, gravity and angle so that the highest point(of projectile motion) is almost at the top of the screen.
- The screen tested is Motorola Milestone. (480x854 resolution) Meaning the object travels around 854 pixels vertically.
I'm thinking of adjusting starting velocity based on screensizes. But that sounds unreliable when we've so many devices/resolutions out there. How do you combat these kind of problem when making games?
View 3 Replies
View Related
Apr 17, 2010
Does NBA game time not work on 2.1? I cannot find it in the market I've scanned a couple QR codes I've found on the internet and it comes up not found in the market. Really want to listen to the Bulls Cavs game today since I won't be near a TV.
View 6 Replies
View Related
Apr 4, 2010
Android allows for the UI of its OS to be optimized for various screen resolutions and aspect ratios. How about apps? Do they share a common link between the OS and themselves for this resolution optimization? I'm curious in terms of tablets. If you have a 800x480 screen in 16:9. The OS's UI looks great but what about those apps? Is it strictly on an app to app basis how they will be presented? Hope the question is clear.
View 4 Replies
View Related
Mar 29, 2010
I see on the Android SDK pages, it mentions some screen resolutions to expect on Android platforms:
Small screen
QVGA (240x320), 2.6"-3.0" diagonal
Normal screen
WQVGA (240x400), 3.2"-3.5" diagonal
FWQVGA (240x432), 3.5"-3.8" diagonal
HVGA (320x480), 3.0"-3.5" diagonal
WVGA (480x800), 3.3"-4.0" diagonal
FWVGA (480x854), 3.5"-4.0" diagonal
Large screen
WVGA (480x800), 4.8"-5.5" diagonal
FWVGA (480x854), 5.0"-5.8" diagonal
Obviously, testing an app you want to sell on all these resolutions is going to be a pain. Is there any data on what percent of android phones being used use the above resolutions? My hope is that there's only really 3 or so popular resolutions...
View 2 Replies
View Related
Aug 5, 2010
I have a class that extends LinearLayout and handles drawing to the screen. (it is in the early stages) How would I go about determining the dimensions of a screen and resizing the images, etc., that this class is drawing to the screen on the fly before actually drawing them to the screen?
What I'm trying to accomplish is support for devices that have varying screen dimensions and resolutions from the same code base, with each device being scaled properly.
View 7 Replies
View Related
Sep 23, 2010
I have a texture.png which I would like to tile, to create a textured background for my window.
Will I run into any problems with different screen resolutions?
If so, what is the best way to support a textured background for multiple devices?
Should I have 1 image instead? How large should it be?
View 1 Replies
View Related
Nov 6, 2009
Anybody able to get Emulators working on the droid?
View 3 Replies
View Related
Oct 23, 2010
I am in middle of learning application development. I have created an application in 2.2 and tested that in my HTC Nexus One device. I looks like fine. My client testing same application setup in his device (Droid2). I don't have that device to test.
He said there are some font sizes are vary and button alignments are missing. When I testing in my device everything looks fine. So, I need to test my application in Simulator which resembles like Droid2 device. Can anyone tell me how to create emulator and setup like Droid2. And also, is there any need to adjust my code or anything in manifest file.
View 2 Replies
View Related
Jun 1, 2010
I am a current iPhone 3gs user migrating over to Android this Friday and getting the Evo 4g. Now, all iPhone/iPod touch screen sizes are the same and all the hardware specs are the same for the most part, but with Android you all kinds of resolutions, screen sizes, processors, etc etc...
Are all apps made for Android stretched to accomodate bigger screen sizes? For instance, I have played with my friend's Droid on Verizon and the screen is 3.7" at a resolution of 854x480 and he has showed me games on it like Gameloft's NOVA which is a full 3D first person shooter. So his phone essentially has a bigger resolution slightly than the HTC EVO 4G but smaller screen size (3.7" vs. 4.3"). So would the same game be stretched to fit my phone?
I'm wondering with different apps, are there any conflicts in relation to different spec phones?
View 3 Replies
View Related
May 17, 2010
I just updated my eris with the new 2.1 and downloaded the homerun 3d game. It doesn't seem to work. does this happen to your eris at all?
View 1 Replies
View Related
Aug 16, 2010
In my application i have created pending intent which calls another activity (after 20mins of alarm off) with the help of alarm manger. It should happen each time for each new pending intent or when I call that activity. But when i create one pending intent and after few mins again create new pending intent ,then the last one overlap the other previous pending intents and start specified activity only for ones for the last pending intent.I want that each time i create any pending intent it should start specified activity after 20 mins of it's alarm off time.How it can be done ?
View 7 Replies
View Related
Nov 15, 2010
How do you display different images for different screen resolutions (hdpi, ldpi, mdpi) in an embedded HTML resource of an Android app?
View 1 Replies
View Related
Sep 27, 2009
I need a LinearLayout to contain 3 TableLayouts, and I can't get it to work. This is where the problem is I'm sure:
mTableLayout.addView(mLinearLayout, LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(nTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(oTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(pTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
How Do I make this work? I can get it to work just find when I only add a single child view, but when I have multiple children view objects my app crashes.
View 6 Replies
View Related
Nov 2, 2010
What video formats and resolutions can the desire HD use? I've put a few videos on but they don't seem to work.
View 7 Replies
View Related
Jun 1, 2010
I have the droid eris and I have tried MULTIPLE apps for ringtones and they either stop working, do not set or just suck (all scratchy). I went to verizon today thinking maybe something was wrong with my phone and they suggested that I use Zedge. I downloaded it don't like it much (hard to find what your looking for)
Anyways.. Does anyone know wtf is going on? Am I doing something wrong? (Tried assigning the ringtone/notification with the app and through settings)
View 1 Replies
View Related
Oct 6, 2009
I'm thinking about getting one of these in a few days when they become available from Sprint, but I have a question. I have an iPhone right now and I have three Gmail accounts for different purposes. I don't use Google Calendar, so I'm not worried about calendar events. But does Android/Hero have any problems using multiple Gmail accounts?
View 2 Replies
View Related
Jul 15, 2010
I have a new EVO, and have some issues with the contacts. I transfered my contact from outlook to Evo. In some contacts I have phone numbers that have different people's name at the end of the phone no. under the same contact. i.e. in contact of my friend named Josh I would have his wife's number as well, therefore under mobile phone I would have one number which will have josh at the end of the number, and other number will have his wife's name at the end. When I receive a phone call from Josh, my phone will not bring up his name in called ID, it will just list the phone no. When I had a windows mobile phone it always listed the name. somehow android will not do it. Does anyone have solution to this?
View 1 Replies
View Related
Dec 13, 2012
For a while I'm wanting to create live wallpapers, after weeks of searching and weeks of trying out various things (The LWP creator found on XDA etc) I've figured out all of them are not really working with the latest phone's, and lastest screen resolutions.
How to create live wallpapers, for the latest screen resolutions, or just compatible with all.
What I want is to create a "Gif-like" android LWP.
View 1 Replies
View Related
May 22, 2010
I have a square grid, for a turn based game ( grid is similar to the chess board ), but the moves in the games are different based on whether you have lapped your opponent pawn at least once or not.i.e if you have not lapped (beaten any of the opponents pawns) in the outer most grid as below.if you have lapped your opponent pawn once at least, then you get to reach home,this way.Any player having all his pawns reaching "home" first wins.The ones in yellow are safe-houses, i.e both the opponent pawn and the player's pawn get to stay in the same grid, this is not considered to be lapping ( the opponent ).The lapped pawn will return to its start point.Now the question is, what is the effective way to store the paths for the all the pawns.we will have 4 pawns for the player and 4 opponent pawns.Is there any pattern to store such static information, in a elegant way?
View 1 Replies
View Related
Nov 12, 2010
I have a puzzle game with a 7x7 grid of graphics, and a timer, its just about ready to go. But I am stuck on how to go about saving/continuing game. For example when someone exits I want them to be able to save and exit, then come back and click continue to pick up where they left off with all of the graphics in the right place, timer and score. I looked at onSaveInstanceState android examples, but not sure if this is what I need or how to implement it in my case.
View 8 Replies
View Related
Sep 10, 2010
Hey guys, I like to make my own lock screens and wallpapers. What are the resolutions for the wallpaper and lockscreens on the Fascinate?
View 5 Replies
View Related
Mar 17, 2010
Is there any simple application that can track how many step I walked. I don't want the one that uses gps. Just make use of the accelerometer i guess? I have this application when i use my old C905.
View 3 Replies
View Related
Jun 29, 2010
could you explain me steps for android app distribution.I can sign it and publish to Android market. But can I offer clients to load this application without market? e.g from company web site? if yes, can I still use self-signed certificate?
View 2 Replies
View Related
Mar 4, 2010
I'm trying to port one of my OpenGL/Glut programs over to Android 1.6. I used GLut extensively due to my classes teaching glut. Is there an alternative to glutTimerFunc or replacement for using glutTimerFunc? Also, any ideas where I can replace glutMainLoop? From looking at a few examples, onDrawFrame what I should be looking at?
View 1 Replies
View Related
May 13, 2010
i can implement the QSB on my app using onSearchRequested() method.i have 4 column in my table. when i was type in the QSB. it will give some suggestions on the Suggestion window. how to do that? searchable dictionary example shows the dictionary provider class to retrive the suggestions. but on that no data inserted. then how they getting the suggestions. can you explain me what are the steps we have to follow or tutorials, sample codes are most thankful.
View 1 Replies
View Related