hello developers how can i support one screen resolution for android device i need market not to show my app for all devices i need to support medium screen can i change AndroidManifest.xml from corona it self ???
[import]uid: 74537 topic_id: 22532 reply_id: 322532[/import]
What’s up where is corona developers ?? Please help me i need answer [import]uid: 74537 topic_id: 22532 reply_id: 90328[/import]
Hello,
If you want to have the marketplace filter your app to only show up for certain screens, then you’ll need to set the [lua][/lua] tag in the app’s AndroidManifest.xml file according to the documentation here…
http://developer.android.com/guide/topics/manifest/supports-screens-element.html
Now in Corona, you do not have direct access to the AndroidManifest.xml file, but you can control certain aspects of it via the Corona project’s “build.settings” file. The [lua][/lua] is settable through this file via its [lua]supportsScreens[/lua] table as of the latest release version, build 704. To only support medium/normal sized screens and higher, you would set up your build.settings file as follows…
[lua]settings =
{
android =
{
supportsScreens =
{
smallScreens = false,
normalScreens = true,
largeScreens = true,
}
}
}[/lua]
I hope this helps! [import]uid: 32256 topic_id: 22532 reply_id: 90531[/import]
thank you @Joshua Quick for this post but i have the following question right now that about scaling
smallScreens means scale = 1
,normalScreens means scale = 1.5
and largeScreens means scale = 2
please help me cause my game size is more than 22 mb so i need to make more than one apk for each screen size
[import]uid: 74537 topic_id: 22532 reply_id: 90917[/import]
??? whats up [import]uid: 74537 topic_id: 22532 reply_id: 91225[/import]
You can set up your app to support multiple display resolutions by using Corona’s “Dynamic Image Resolution” feature. Please see the following documentation for more details…
http://blog.anscamobile.com/2011/01/dynamic-image-resolution-made-easy/
http://developer.anscamobile.com/content/configuring-projects#Dynamic_Image_Resolution
Also see sample app “Hardware\DynamicImageResolution” that is included with the Corona SDK for an example on how to implement this within a Corona project. [import]uid: 32256 topic_id: 22532 reply_id: 91348[/import]
thanks all my question is clear
i need to support galaxy tab and all android tablet my base testing device is samsung galaxy s1 all images with its size is perfect on sgs1 but when testing my app on tablet its too slow which means its scale images up assume i have
img1.png 22 width and 22 height
what is the best image(img1.png ) dimension to be taken from samsung tab and other big screen devices
is it 44 x 44 px ???
please i need help about this question
[import]uid: 74537 topic_id: 22532 reply_id: 91899[/import]
The idea is that you would design all of your base image files to work with the content width and height that you’ve set up in the config.lua file. The typical content width and height would be 320x480, which is the original iPhone size. Once you’ve made your app look good at those dimensions, then you would create your @15 and @2 files as recommended by the links I gave you. That will make your app look good on iOS devices.
For Android devices, we don’t have any recommendations yet. There is a wide variety of screen sizes in the Android market and there’s no way you would want to support them all. What I recommend is that you find out what the dimensions of your Galaxy Tab is and do the math to figure out how much the scaling factor should be from 320x480 to the Galaxy Tab’s dimensions, which I believe is 800x1280 pixels for the newest model.
So here is how we would calculate the scales for the above example…
x scale = 800 / 320 = 2.5
y scale = 1280 / 480 = 2.7
If you “letterbox” your app, which would add black bars to the screen, then you should choose the smaller scale of 2.5. So this means you’ll want to create image files with the extension @25 that are 2.5 times bigger than the original image file.
I hoe this makes sense. The best advise I can give you at this point is to experiment with this feature and code for it now. The documentation that I gave you links to will make more sense then.
Good luck! [import]uid: 32256 topic_id: 22532 reply_id: 92022[/import]
Thank you Joshua Quick for this details
i got it now
[import]uid: 74537 topic_id: 22532 reply_id: 92357[/import]
I have another question how i can create application that only
supports xlarge screen in
android os? [import]uid: 74537 topic_id: 22532 reply_id: 109289[/import]
You can do this by setting up your “build.settings” file as follows…
[lua]settings =
{
android =
{
supportsScreens =
{
smallScreens = false,
normalScreens = false,
largeScreens = false,
xlargeScreens = true,
},
},
}[/lua]
The above will do set the AndroidManifest.xml file’s [lua][/lua] tag to what you need. However, you need to use the newest daily build to get “xlargeScreens” support which is only available to you if you are a paid subscriber. The current release version 704 does not support this feature. Alternatively, you can wait for our next Corona SDK release which will come out next month.
I hope this helps! [import]uid: 32256 topic_id: 22532 reply_id: 109401[/import]