X
X
xverizex2020-05-27 06:44:06
Java
xverizex, 2020-05-27 06:44:06

How to find out on what android application is running, on a phone or tablet?

At first I wanted to get the screen diagonal and load the desired layout from this. But on a tablet, which seems to be 10 diagonal, it shows 8 with a tail. I would like to use the desired layout, depending on what the application was launched on. What do you think? How should you do it in general?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2020-05-27
Hasanly @azerphoenix

Determine if the device is a smartphone or tablet?
https://stackoverflow.com/questions/9279111/determ...
Correctly detect Android device type
https://stackoverflow.com/questions/40157799/corre...
Google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question