I am developing a single application for both tablets and for handsets..My app is currently running fine on handsets(as according to layouts and all)..but i have no idea for how to distinguish it for handsets/tablets. I have seen some of the answers in Stackoverflow.com too, in which some people answered that use different layout-large,layout-xlarge.

but if the layout differs and we follow the above scenario,then in programming,it is written setcontentView(R.layout.---).

So we have to mention here also that setContentView(R.layout-large.---)..I am so confused with this..Can anyone suggest me something...