About Store Forum Documentation Contact



Post Reply 
[Android] Tablet vs Phone issue
Author Message
AndrewBGS Offline
Member

Post: #1
[Android] Tablet vs Phone issue
Hi, I'm having problems making an application suitable for phones and tablets at the same time. How can I make the difference between the two of them in code? (I'm sure this must be easy, but I can't seem to find the way to do it)

My problem is the GUI that looks fine on the tablet I use for testing is terribly small on phones; What's the easiest way to automatically adjust the size of the GUI according to the mobile device?

But most importantly, please tell me how to find out in code if the app is running on phone or tablet.
Thanks!
01-10-2015 02:55 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: [Android] Tablet vs Phone issue
Hello,

You can use D.smallSize, then you can adjust D.scale based on that.
01-11-2015 12:28 AM
Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #3
RE: [Android] Tablet vs Phone issue
Thanks, I think I got it smile
01-11-2015 11:49 AM
Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #4
RE: [Android] Tablet vs Phone issue
Apparently I wasn't able to use D.scale() properly;

All I was able to do was to reduce the scale, but whenever I use D.scale(x) with x>1, the application hangs. Am I missing something?
01-15-2015 09:03 AM
Find all posts by this user Quote this message in a reply
Post Reply