SOLVED

Is there a way to determine which screen the activity is running on, in single screen mode?

New Contributor

Hi, I want to create an app that have different behavior when on different screen. But I couldn't find a way to determine which screen the activity is running on when the app is in single screen mode.

Do you guys have any idea to solve this?
Thank you!

1 Reply
best response confirmed by tungnt (New Contributor)
Solution

@tungnt unfortunately there's no simple way to do this - for compatibility we want apps on a single screen to get all the coordinates and measurements that they would on another device.

 

When the app is spanned across both screens you will be able to detect the hinge and update layouts accordingly.