I'm developing an app for a client that wants different behavior on phones and tablets.
How can detect it?
Notes:
- I know there are similar questions in SO, but my case is not about "supporting large screens" or "being able to make a call".
- If possible, I'd like a programmatic way. If not, I can build two APKs.
Edit:
I know sometimes it's hard to tell what's a phone and what's a tablet. But the client requirements are something like:
A big phone is still a phone. A GSM tablet is still a tablet.
The phone version is for personal use, we trust less in this users, so they use that unconvenient authentication method with the server.
The tablet version is for business use, we trust more in this users, so they use the simplified authentication method with the server.
But, I'd like both being downloadable at Google Play. With the phone version being downloadable just by phone and the tablet version being downloadable just by tablets.