Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread user123
The point is - if somebody sees my app on a tablet, like now, they will think what the ...? They'll think I have no idea. But if people sees it in compatibility mode (or even better, they can't download it), they say, okay, the app was not intended for tablets! - That's a huge difference. Am

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread user123
Well, my layout is density independent. I misused the density folders as approximation for screen size, and it worked well on smartphones The issue is that this app was never intended for tablets - but, great, in Android it's possible to exclude small screens, but not large ones. Nobody in the

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread user123
Well, my layout is density independent. I misused the density folders as approximation for screen size, and it worked well on smartphones The issue is that this app was never intended for tablets - but, great, in Android it's possible to exclude small screens, but not large ones. Nobody in the

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread bob
I think the best solution is for you to not use compatibility mode. I think it was mainly a stopgap solution for when tablets first came out. People probably wouldn't buy a tablet if nothing would run on it. But tablets have been out long enough so that it doesn't make sense to only des

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread Piren
Ahh... he might have did it wrong, but that's an over simplification... I wish you could use the same layouts for those devices... fact is you cant. DP and SP do an OK Job to fit each density, but not perfect. The same layout on the Galaxy Nexus and on the Nexus S look different enough to requir

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread Krishna Mahadik
Dear Friend, Just include following code in your manifest Thanks & Regards, Krishna V. Mahadik On Thu, Apr 18, 2013 at 5:28 PM, Mark Murphy wrote: > On Thu, Apr 18, 2013 at 3:53 AM, user123 wrote: > > I did the work to optimize layout for xhdpi devices > > Then you did it wrong. Layouts sh

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread Mark Murphy
On Thu, Apr 18, 2013 at 3:53 AM, user123 wrote: > I did the work to optimize layout for xhdpi devices Then you did it wrong. Layouts should be density-independent. The layout of an Xperia Z (xxhdpi) should be the same as a Galaxy Nexus (xhdpi), which should be the same as a Nexus S (hdpi), etc.,

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread user123
Thanks, Mark. I should have done a better research. So this leads to a quite stupid situation. I did the work to optimize layout for xhdpi devices, like the Galaxy Nexus, and it looks quite well. If I set the compatibility mode to 320dp, this willl be lost on all these devices. Samsung Galaxy s

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-17 Thread bob
The documentation pertaining to your question is confusing: It sounds like 320 may very well be a "*magic number"*, and that nothing greater or lesser will work. But the docs do no

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-17 Thread Mark Murphy
If you read the documentation: http://developer.android.com/guide/topics/manifest/supports-screens-element.html#largestWidth it says: "Note: Currently, screen compatibility mode emulates only handset screens with a 320dp width, so screen compatibility mode is not applied if your value for androi

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-17 Thread user123
Ok, the issue is confirmed. I created a brand new project with a blank activity, and ran it on a tablet. The only modification I did was in the manifest, as follows: Then the app goes in compatibility mode - "Hello world!" is zoomed. Fine. But if I change to *321 dp *- It doesn't go

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-17 Thread user123
Ok, the issue is confirmed. I created a brand new project with a blank activity, and ran it on a tablet. The only modification I did was in the manifest, as follows: Then the app goes in compatibility mode - "Hello world!" is zoomed. Fine. But if I change to *321 dp *- It doesn't go

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread user123
Now I also tested with a tablet emulator with 10.1 diagonal. The smallest side should be something around 7 inches. And I still get compatibility mode only until max. 320 dp, like in the Nexus 7. Am Montag, 15. April 2013 23:53:26 UTC+2 schrieb user123: > > The problem is the Nexus 7. The small

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread user123
The problem is the Nexus 7. The smallest side is 4.72 inches. But I can put max. 320 dp in the manifest for it to go in compatibility mode. With 321 it doesn't work anymore. Am Montag, 15. April 2013 23:30:37 UTC+2 schrieb bob: > > Let's just think about this for a minute. > > 320 dp is 2 inc

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread bob
Let's just think about this for a minute. 320 dp is 2 inches. Here are the specs for your Galaxy Nexus: 1280×720 px *(316 ppi) So, we are interested in the smallest side. That is 720. 720/316 = 2.27848101266 inches So, it is rightly going into compatibility mode on your Galaxy phone since 2.

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread user123
Ah, no, I became happy too quickly. I was launching an old version of the app (where I used 320 dip). So the problem is still the same. No compatibility mode. Am Montag, 15. April 2013 23:05:37 UTC+2 schrieb user123: > > It seems that this combination works: > > > > ** > > Confirmatio

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread user123
It seems that this combination works: ** Confirmation follows. 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

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread user123
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: "This indicates that the maximum "smallest screen wi

[android-developers] Re: Compatibility mode issues on 4.x

2013-03-23 Thread 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 certa