can any one tell me it is possible to show different number of columns in listview
For Example:- when i see listview in portrait mode it shows 3 columns and when i see listview in landscape mode it shows 4 columns . i try to do it but my solutions doesn't work for me , i define to different layout for protrait in layout folder and landscape in layout-land folder but it doesn't seens to work for me .
Can any one tell me is it possible to achive this . 
And one More thing it possible to execute some code by checking 
For Example:-  if(this is android phone){
                  execute this code;
                 }
                if(this is android tablet){
                        execute this code;
                     }
 like iphone and ipad developer do 
                   if(this is iphone )
                   {
                    execute this code ;
                      }
                   if(this is ipad )
                   {
                    execute this code ;
                      }
because i same application is used in both phone and tablet and some one wants to show different things in phones and different in tablets .
Thanks in advance
 
     
     
     
    