Multiple screen support sanity check

I have a project compiled with and targeting 1.5. I now want to support different screen sizes instead of letting android handle the scaling.

All I've done is modified my manifest to look like this:

<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>

and I changed my project properties to build against the 1.6 (level 4) SDK.

That's all I need to do, right? All my layouts are using dip, so it should scale, and I don't want to mess with different size bitmaps just yet. Is it really necessary to add the:

<supports-screens>

tag to the manifest in my case? It's good to run on all screen sizes as-is, even QVGA.

Thanks


Asked by: Dexter340 | Posted: 25-01-2022






Answer 1

I don't see the documentation explicitly saying whether or not supports-screens is optional or mandatory. supports-screens has default values, and the section titled "Strategies for Legacy Applications" makes it sound (to me at least) like it would be optional if you are fine with defaults. However, it does not hurt if it is there as far as I know, so I would just put it in. Makes it easy to add attributes to it later if you need to.

Answered by: Julian879 | Posted: 26-02-2022



Similar questions

Multiple shapes on Android

Hi I'm trying to build a layout where some shapes will popup every 2 seconds. If the user will click one of these shapes, they have to disappear. What is the correct way of doing this? I thought about a thread, but i missed out. Here's my code at the moment (is not working): public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); l = new LinearLayout(t...


Android multiple screen sizes with same density

I'm confused regarding the densities. I see that with medium density, the screen resolution could be either 320x480, 480x800, or 480x854. So if I have an image thats 300px wide in the mdpi folder, how is it going to look the same size on all 3 different screen sizes (mainly 320x480 vs the other 2)? And by look the same size, I mean scale to be bigger or smaller depending upon the screen size. Thanks.


android - How to set the size of multiple buttons on content

I am using three buttons along with the list view.These three buttons are added to the layout using the TableLayout and TableRow.The first button takes more space on content, so the other two becomes smaller in size than first one. When the application runs, it doesn't even show the two other buttons. How can I make the size of three buttons equal and display all of them when application r...


map - Multiple overlay items in android

I seem to be having a problem with using ItemizedOverlay and OveralyItems in it. I can get the first overlayItem to appear on the map but not any items after that. Code sample is on: http://www.anddev.org/multiple_overlay_items-t12171.html Quick overview here: public class Markers extend...


Multiple shapes on Android

Hi I'm trying to build a layout where some shapes will popup every 2 seconds. If the user will click one of these shapes, they have to disappear. What is the correct way of doing this? I thought about a thread, but i missed out. Here's my code at the moment (is not working): public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); l = new LinearLayout(t...


Android multiple screen sizes with same density

I'm confused regarding the densities. I see that with medium density, the screen resolution could be either 320x480, 480x800, or 480x854. So if I have an image thats 300px wide in the mdpi folder, how is it going to look the same size on all 3 different screen sizes (mainly 320x480 vs the other 2)? And by look the same size, I mean scale to be bigger or smaller depending upon the screen size. Thanks.


multi touch - Multiple button presses for Android 2.x

I am relatively new to this still, and I have been developing a small app that would benefit greatly from a user being able to press 2 buttons at one time. What is the best method for achieving this? I dont think that an OnClickListener works like that, and I have seen examples for doing this with an OnTouch event. However, I do not know how to set up button presses with an OnTouch event.


audio - Playing Multiple sounds at the same time in Android

I am unable to use the following code to play multiple sounds/beeps simultaneously. In my onclicklistener I have added: public void onClick(View v) { mSoundManager.playSound(1); mSoundManager.playSound(2); } But this plays only one sound at a time, sound with index 1 followed by sound with index 2. How can I play at least...


multiple columns - android call log like design

I'm trying to create a design for a list that looks like (and mostly behaves like) the call log, like shown here: ImageHost.org http://i.imagehost.org/0374/android_consistency.jpg I don't need all the design, but what I'm trying to achieve is the two-columned design with the splitter in-between, and the behavior that if ...


Android multiple spinners

I have 3 spinners (dropdown menus). I would like the user to select item from the first one and that would determine the options(different string array) on the second and on the third spinner. E.g. user selects the country in the first spinner and then gets popular music groups in that country on the second spinner and popular dishes on the third. What is the easiest way to do this?


android select multiple items in ListView?

I have a ListView and I want to select multiple items in the ListView without using CheckedTextView. Please help !!


android - How to set the size of multiple buttons on content

I am using three buttons along with the list view.These three buttons are added to the layout using the TableLayout and TableRow.The first button takes more space on content, so the other two becomes smaller in size than first one. When the application runs, it doesn't even show the two other buttons. How can I make the size of three buttons equal and display all of them when application r...


sql - How to update a record with multiple keys

I am trying a database app on Android. I want to use the SQLiteDatabase update(...) convenience method to update a record. Normally, for a WHERE clause of a single key this is working. Following code is working fine:- values.put("testname", "Quiz1"); mDB.update("Tests", values, "id=?", new String[]{"2"}); //this statement works However, I want to update ...






Still can't find your answer? Check out these communities...



Android Google Support | Android Community | Android Community (Facebook) | Dev.io Android



top