title: How to check whether user is using tablet or phone in android
body: <p>I am developing an application to support multiple different screen sizes. I have a different design for tablet and phone. I have a list fragment and webfragment in tablet. I have a list fragment in phone. My requirement is that if the user clicks list view, if it is a tablet, I have to refresh the data, and if it is a phone I have to go to the next activity.</p>
  
  <p>Can anybody tell me how to do this?</p>
  
  <p>Thanks</p>