Android Question How to know the app is running in a tablet

Discussion in 'Android Questions' started by Alberto Michelis, Jun 28, 2015.

  1. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Hi, How can I know the app is running in a tablet ? and to know if its 7 or 10 or...
    Thanks
     
  2. NJDude

    NJDude Expert Licensed User

    Search the forums for "GetDeviceLayoutValues".
     
    thedesolatesoul likes this.
  3. Indy

    Indy Member Licensed User

    Would that be reliable? Nowadays phones and tablets have pretty high resolutions so it may not be easy to assume a hight resolution is a tablet. One other way could be to see if any phone functionaility exists. Although, if you have a tablet like mine (Cube Talk 9X) that has a phone built in. But that's because it's a Chinese OEM. The branded OEMs don't really build in phones into tablets.
     
  4. NJDude

    NJDude Expert Licensed User

    Resolution has nothing to do with size, what I mentioned above can return the approximate size in inches.
     
    DonManfred likes this.
  5. Indy

    Indy Member Licensed User

    Interesting. I never new that. Thank you for enlightenment.
     
  6. NJDude

    NJDude Expert Licensed User

    My pleasure.
     
Loading...