Screen orientation For tablets And devices
<p>I am using the same code for both tablets as well as device,Here is my problem while coming to mobile in both orientation it should load list view, coming to tablet in portrait  it need to load listview and then coming to landscape it should load gridview?</p>

<p>Thanks</p>

<p>I have used this code any one can  help me plz..</p>

<pre><code> Configuration config = getResources().getConfiguration();
                    if((config.screenLayout &amp; Configuration.ORIENTATION_LANDSCAPE) ==  
                        Configuration.SCREENLAYOUT_SIZE_XLARGE)); 
                    {
                        this.gridView();    
                    }else{
                        this.listview();
                    }
</code></pre>
