I am trying to run my application on a custom screen resolution but my application is centered and only occupies 320×480 (Portrait) and 480×320 (Landscape) of the screen and is horizontally aligned to the top of the activity.
While other apps and the default android activities behave aptly my application doesn’t. I haven’t used any fixed values or layout properties. It’s just a hello world app.

I have tried themes and window features but nothing seem to work. Any pointers would be greatly appreciated. Thanks.
Kumar Bibek has answerd this question in a similar post.
The application was running in compatibility mode for tablets. I added the following to my AndroidManifest.xml and it works fine.