Android Development

Hello to all,

i have got a question. In which format should i built an Android app so that it works on every Android Phone because there are different types of height and width relations and i would had an app that looks equal on every Android app.

Thanks for answers
Lenny [import]uid: 149464 topic_id: 30185 reply_id: 330185[/import]

Do you mean what resolution? There’s a post on dynamic resolution as well as some docs about content scaling and image suffixes you should take a read of if that is what you mean.

If not, please elaborate :slight_smile: [import]uid: 52491 topic_id: 30185 reply_id: 120950[/import]

Yes i mean what resolution. I have read the post for dynamic resolution but if i check this skript on an htc there is a black area at the bottom of the display:

[lua]if system.getInfo(“platformName”) == “Android” then
application =
{
content =
{
–zoom
width = 320,
height = 480,
scale = “letterbox”
},
}[/lua]

so the question is what is the best way to script an app which runs in every android resolution?

i also read the article about content scaling and found this:

http://www.coronalabs.com/blog/2010/11/20/content-scaling-made-easy/

but when i use this the problem is that this won´t work to because the navi pannel which i made wouldn’t always be at the bottom because the y distance changes with every resolution

so my question is:

In which resolution shoult i build my layout for the app and how shoult i skrypt it for every android resolution? [import]uid: 149464 topic_id: 30185 reply_id: 121078[/import]

Do you only have the black at the bottom or also at the top?

What’s that “-zoom” doing in there? (Line 6)

Most people use 320x480 and scale up - we have a good thread on understanding letterbox scaling that might help you, if you search should be first result. Thread by Clueless Ideas. [import]uid: 52491 topic_id: 30185 reply_id: 121116[/import]

The black is only at the bottom.

What the -zoom is doing there i don´t know i have cleared it out of the function but it was in the script at your side:

http://www.coronalabs.com/blog/2011/01/28/use-dynamic-layouts-in-universal-builds-with-corona-sdk/

I have also build it in 320x480 but if i scale it up with letterbox i have the black at the bottom if i scale it up with evenZoom then the bg goes over the hole screen but cuts a bit of the bg at the right. [import]uid: 149464 topic_id: 30185 reply_id: 121139[/import]

Do you mean what resolution? There’s a post on dynamic resolution as well as some docs about content scaling and image suffixes you should take a read of if that is what you mean.

If not, please elaborate :slight_smile: [import]uid: 52491 topic_id: 30185 reply_id: 120950[/import]

Yes i mean what resolution. I have read the post for dynamic resolution but if i check this skript on an htc there is a black area at the bottom of the display:

[lua]if system.getInfo(“platformName”) == “Android” then
application =
{
content =
{
–zoom
width = 320,
height = 480,
scale = “letterbox”
},
}[/lua]

so the question is what is the best way to script an app which runs in every android resolution?

i also read the article about content scaling and found this:

http://www.coronalabs.com/blog/2010/11/20/content-scaling-made-easy/

but when i use this the problem is that this won´t work to because the navi pannel which i made wouldn’t always be at the bottom because the y distance changes with every resolution

so my question is:

In which resolution shoult i build my layout for the app and how shoult i skrypt it for every android resolution? [import]uid: 149464 topic_id: 30185 reply_id: 121078[/import]

Do you only have the black at the bottom or also at the top?

What’s that “-zoom” doing in there? (Line 6)

Most people use 320x480 and scale up - we have a good thread on understanding letterbox scaling that might help you, if you search should be first result. Thread by Clueless Ideas. [import]uid: 52491 topic_id: 30185 reply_id: 121116[/import]

The black is only at the bottom.

What the -zoom is doing there i don´t know i have cleared it out of the function but it was in the script at your side:

http://www.coronalabs.com/blog/2011/01/28/use-dynamic-layouts-in-universal-builds-with-corona-sdk/

I have also build it in 320x480 but if i scale it up with letterbox i have the black at the bottom if i scale it up with evenZoom then the bg goes over the hole screen but cuts a bit of the bg at the right. [import]uid: 149464 topic_id: 30185 reply_id: 121139[/import]

I even need a solution of this problem so please help. I tried everything in the description on corona forum and other but it doesnt solve the problem.

[import]uid: 149464 topic_id: 30185 reply_id: 122141[/import]

in which resolution should i built the app an how should i skript it that the app could be viewed on every android? [import]uid: 149464 topic_id: 30185 reply_id: 122142[/import]

I even need a solution of this problem so please help. I tried everything in the description on corona forum and other but it doesnt solve the problem.

[import]uid: 149464 topic_id: 30185 reply_id: 122141[/import]

in which resolution should i built the app an how should i skript it that the app could be viewed on every android? [import]uid: 149464 topic_id: 30185 reply_id: 122142[/import]