So, now I tested again with the emulator.

I started the shipped AVD for the nexus 7. 800 x 1280 tvdpi.

According to my dip calculatioon, the smallest side (800), with this 
density (~216ppi), is ~479 dp

Now, according to the documentation:

<supports-screens android:compatibleWidthLimitDp="320" />


"This indicates that the maximum "smallest screen width" for which your 
application is designed is 320dp. This way, any devices with their smallest 
side being larger than this value will offer screen compatibility mode as a 
user-optional feature." 

And

<supports-screens android:largestWidthLimitDp="320" />

"This works the same as 
android:compatibleWidthLimitDp<http://developer.android.com/guide/topics/manifest/supports-screens-element.html#compatibleWidth>
 except 
it force-enables screen compatibility mode and does not allow users to 
disable it."


So to *force compatibility mode*, I put in my manifest:


    <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15"/>

*    <supports-screens android:largestWidthLimitDp="400" />*

    

Or:

    <uses-sdk android:minSdkVersion="7"/>

*    <supports-screens android:largestWidthLimitDp="400" />*


Doesn't work - the Nexus 7 emulator is not in compatibility mode. *Why*?





Am Sonntag, 24. März 2013 01:48:16 UTC+1 schrieb user123:
>
> Nobody uses compatibility mode? I thought it would be a superbasic 
> question, there are a lot of tablets and there are a lot of apps which 
> don't optimize for that size...
>
>
> Am Dienstag, 19. März 2013 17:46:49 UTC+1 schrieb user123:
>>
>> I'm trying to force compatibility mode on tablets, for a certain app, 
>> because I don't work on it anymore - and currently it looks really really 
>> messed up on tablets.
>>
>> According to the documentation:
>> http://developer.android.com/guide/practices/screen-compat-mode.html
>>
>> There are many different options to set up in the manifest, to make it 
>> possible, to the user, to enable compatibility mode. This is not exactly 
>> what I want, but anyways, maybe worth to mention, these options didn't 
>> work. I couldn't find anything on the device to switch to compatibility 
>> mode. I used a Nexus 7 with 4.2.
>>
>> Now there's the part which I need - and I also can't get it to work. To 
>> force compatibility mode, it I have to use this element:
>>
>> <supports-screens android:largestWidthLimitDp="320" />
>>
>> When I let the value 320 there, my Galaxy Nexus smartphone goes in 
>> compatibility mode. That is unwanted.
>> The Nexus 7 also does, this is good.
>> So I have to use bigger dp - But starting at 321, for some reason I don't 
>> understand, the Nexus 7 doesn't go anymore in compatibility mode.
>>
>> Is this normal? According to what I read the dp of the shortest side of the 
>> Nexus 7 is more than 500, why then it stops on 321?
>>
>> I would let it on 320, but I have optimized layouts for this screen size and 
>> don't want these to go in compatibility mode.
>>
>> Thanks.
>>
>>
>>
>>
>>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to