How to detect a Phone or Tablet in Android


While developing on Android, we came across a rather simple problem:  How do I tell if my APK is installed on a Phone or a Tablet? It seems like an easy one.  Surely there’s a “Tablet” flag, somewhere?  But then, what constitutes as a Tablet? Is it the screen resolution?  We can’t really use this as, for example, in the … Read More