I'm absolutely agree with yousome users really like to play games in 
landscape mode on phones. But due to content of the game we decided that 
playing landscape mode is perfect on large screens (7-10 inches), and we 
made special features on phone version to make it better for playing and 
decided that portrait orientation is better. I really like an idea to make 
single apk, but there are several reasons cause I can't do it. The first 
and the most valuable is the size of the apk, it must be not greater than 
20mb. And cause we have really a lot graphics, we have to make two apks - 
one for tablets and one for phones.

Of course I tried to use <compatible screens>, but it didn't make any 
effect. I tried something like this for tablet version:
<uses-sdk android:minSdkVersion="8" /> <!-- android 2.2 for Galaxy Tab -->
<supports-screens android:xlargeScreens="true" android:anyDensity="true"/>

and for phones:
<uses-sdk android:minSdkVersion="8"/> <!-- still a lot phones on android 
2.2 -->
<supports-screens android:largeScreens="true" android:anyDensity="true"/>

And the main problem is Galaxy Tab 7. It still got version for phones. I 
can't filter it by minSdkVersion or something like this. I thought I can 
use <supports-screens android:requiresSmallestWidthDp="600" /> to do it, 
but this param is not used for filtering yet. And I do not know about some 
filters based may be on physical size of display.

понедельник, 28 мая 2012 г., 1:54:15 UTC+4 пользователь Mark Murphy (a 
Commons Guy) написал:
>
> On Sat, May 26, 2012 at 12:24 PM, Александр Куликовский 
> <[email protected]> wrote: 
> > But if i download app from Google Play it takes version for phones, 
> > cause screen density of it is "hdpi". 
>
> hdpi has nothing to do with phones. There will be hdpi (or perhaps 
> even xhdpi) tablets in the near future. 
>
> > Can you please tell me how to distinct phones from tablets and to 
> > correct set my manifest? 
>
> There are no phones and there are no tablets from the standpoint of 
> the operating system. There are baskets of features and capabilities. 
> You need to decide what features or capabilities will cause you to 
> want one APK versus another, and set up the manifests accordingly 
> (e.g., <compatible-screens>). 
>
> Or, better yet, use a single APK for all devices. Believe it or not, 
> there are people in this world who use their phones in landscape 
> (particularly those with side-slider keyboards) and use tablets in 
> portrait. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training...At Your Office: http://commonsware.com/training 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to