Linked Questions

147 votes
30 answers
91k views

Is there a way to check if the user is using a tablet or a phone? I've got problems with my tilt function and my new tablet (Transformer)
Benny's user avatar
  • 1,471
-1 votes
2 answers
370 views

Hello I have created an application, in that I want to detect Tablet or Mobile at startup. I have 5.5" Tablet. How to make it possible ?
Sagar Zala's user avatar
-9 votes
3 answers
442 views

To determine the device type(i.e. phone or tablet), Determine if the device is a smartphone or tablet? "isTablet" is the variable which holds the device type. To change icon dynamically in java class ...
Durga M's user avatar
  • 544
227 votes
15 answers
110k views

I would like tablets to be able to display in portrait and landscape (sw600dp or greater), but phones to be restricted to portrait only. I can't find any way to conditionally choose an orientation. ...
Kenny Wyland's user avatar
96 votes
13 answers
75k views

Is there a way to programmatically find whether the device the app is installed on is a 7 inch tablet or a 10 inch tablet?
Rookie's user avatar
  • 8,810
109 votes
11 answers
159k views

I am developing an Android app whose orientation I don't want changed to landscape mode when the user rotates the device. Also, I want the locked orientation to be portrait mode on phones and ...
Ankit Rawat's user avatar
  • 1,181
60 votes
8 answers
91k views

I have two apps for Android tablets and Android phones. For tablet app I set android:minSdkVersion="11". But nowadays Android phones like Galaxy S3 has Android version 4.0.4 so S3 users can download ...
Omer KAPLANDROID's user avatar
31 votes
10 answers
35k views

My case is that the logic is same for both Phone and Tablet. But there is slight difference in the layout. And I tried with the following code public static boolean findoutDeviceType(Context context) ...
VIGNESH's user avatar
  • 2,033
18 votes
4 answers
11k views

I have been working on a Android project, that is intended to be compatible with both the Android phones and tablets. On the tablet the app is working great and looks good too. However, on the phone ...
Sjieke's user avatar
  • 412
10 votes
4 answers
7k views

So the general consensus is this; most people use their phones in portrait and most people use their tablet in landscape. Depending on which activity it is my app's layout goes crazy when you rotate ...
Tristen Edwin's user avatar
6 votes
3 answers
5k views

I have a TextView in my activity that should be visible normally, but gone for tablet devices. I know I can create a new layout file for the tablet, but that seems like a lot of duplication, so what ...
Boycott A.I.'s user avatar
  • 19.2k
7 votes
2 answers
8k views

I understand that by default (pre ICS), to distinguish between a Tablet & Smartphone, a developer can use the sdk version in the Android Manifest (apart from screen size and openGL filters). Now ...
AAP's user avatar
  • 1,284
8 votes
2 answers
8k views

I am trying to lock the orientation of an entire app on phone sized layouts to portrait only but allow both portrait and landscape on tablet sized layouts. I know that I can attribute the Activity to ...
Phil Murray's user avatar
  • 6,564
3 votes
5 answers
5k views

I am developing an android application which is compatible for mobile screen and tablet screen both. So I am creating 4 different screens for each. That is login_portrait.xml login_landscape.xml ...
Nirav Dabhi's user avatar
10 votes
2 answers
3k views

I want to develop an universal app . I am novice to this approach .That means a single apk for both tablet and phone application . I had go through Support Library Fragments My aim is to build ...
edwin's user avatar
  • 8,101

15 30 50 per page