Re: [android-developers] Re: Compatibility mode issues on 4.x
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 s3/4, HTC One, etc, have screen sizes which will make my app go in compatibility mode! For me this is a bug, specially because the larger the screen, the more sense it makes to have the option available to use compatibility mode. And precisely then it's not possible. Am Mittwoch, 17. April 2013 22:36:47 UTC+2 schrieb Mark Murphy (a Commons Guy): 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 android:largestWidthLimitDp is larger than 320. On Wed, Apr 17, 2013 at 4:26 PM, user123 ivans...@gmail.com javascript: wrote: 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: uses-sdk android:minSdkVersion=8 android:targetSdkVersion=8 / supports-screens android:largestWidthLimitDp=320 / Then the app goes in compatibility mode - Hello world! is zoomed. Fine. But if I change to 321 dp - It doesn't go into compatibility mode. I tested with a Nexus 7 tablet, Nexus 7 emulator, and 10.1 inches tablet emulator. Is this a bug? 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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 javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- 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.
Re: [android-developers] Re: Compatibility mode issues on 4.x
On Thu, Apr 18, 2013 at 3:53 AM, user123 ivanschu...@gmail.com 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., as they are all the same basic screen size, within fractions of an inch. Screen size != screen density. In fact, there is no correlation between the two. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- 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.
Re: [android-developers] Re: Compatibility mode issues on 4.x
Dear Friend, Just include following code in your manifest supports-screens android:largeScreens=true android:normalScreens=true android:smallScreens=true android:resizeable=true android:anyDensity=true / Thanks Regards, Krishna V. Mahadik On Thu, Apr 18, 2013 at 5:28 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Apr 18, 2013 at 3:53 AM, user123 ivanschu...@gmail.com 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., as they are all the same basic screen size, within fractions of an inch. Screen size != screen density. In fact, there is no correlation between the two. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- 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. -- -- . \\\/// . /\ . | \\ // | . ( | (.) (.) |) --o00o--(_)--o00o- Yesterday is not ours to recover, but tomorrow is ours to win or to lose. ---ooo0--- . ( ) 0ooo .\ ( ( ) . \_) ) / .(_/ -- -- 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.
Re: [android-developers] Re: Compatibility mode issues on 4.x
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 require modifications if you're pedantic enough or trying to fit a lot of views in. It gets even worse when screen sizes change... thats why they added more modifiers (like screen sizes) to allow more control. Heck, sometimes you'd want to use different layouts for the same screen sizes exactly because of the fact the sizes are the same - text that looks normal on xxhdpi looks huge on hdpi and text that looks normal on hdpi is tiny on xxhdpi. btw - not to confuse anyone, but it's kinda misleading to say there's no correlation between screen density and screen size... Google tried to make it so you could program regardless of their values (they didnt succeed) but they are correlated (density is defined by screen size after all :-P). On Thursday, April 18, 2013 2:58:26 PM UTC+3, Mark Murphy (a Commons Guy) wrote: On Thu, Apr 18, 2013 at 3:53 AM, user123 ivans...@gmail.com javascript: 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., as they are all the same basic screen size, within fractions of an inch. Screen size != screen density. In fact, there is no correlation between the two. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- 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.
Re: [android-developers] Re: Compatibility mode issues on 4.x
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 design an app for a 2 inch wide phone and then run it in compatibility mode on a tablet. Thanks. On Thursday, April 18, 2013 2:53:05 AM UTC-5, user123 wrote: 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 s3/4, HTC One, etc, have screen sizes which will make my app go in compatibility mode! For me this is a bug, specially because the larger the screen, the more sense it makes to have the option available to use compatibility mode. And precisely then it's not possible. Am Mittwoch, 17. April 2013 22:36:47 UTC+2 schrieb Mark Murphy (a Commons Guy): 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 android:largestWidthLimitDp is larger than 320. On Wed, Apr 17, 2013 at 4:26 PM, user123 ivans...@gmail.com wrote: 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: uses-sdk android:minSdkVersion=8 android:targetSdkVersion=8 / supports-screens android:largestWidthLimitDp=320 / Then the app goes in compatibility mode - Hello world! is zoomed. Fine. But if I change to 321 dp - It doesn't go into compatibility mode. I tested with a Nexus 7 tablet, Nexus 7 emulator, and 10.1 inches tablet emulator. Is this a bug? 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-d...@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. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- 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
Re: [android-developers] Re: Compatibility mode issues on 4.x
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 company was interested in using this app on large screens, so I never got the order or time to do this work. Now this app is available but the development is suspended - I'm also not working there anymore. The app looks perfect in all smartphones. But on tabled-sized screens it has mayor errors, because of some calculations I had to do programmatically, which seem to have a problem when the screen is large, and some places where I forgot nine patch buttons and things like that. There where also a lot of backgrounds with bitmap-shadow, where the content had to be adjusted with pixel-accuracy to look correct. So, yeah, if I could, I would just put this application off for tablets, because that's was what I was told to, actually. But it's not possible. But I thought Okay, I can resort to compatibility mode. But great to see, now, that this also doesn't work. So now I have to spend a weekend working for free, because my company doesn't targets the tablet market but Android thinks it's important? Am Donnerstag, 18. April 2013 13:58:26 UTC+2 schrieb Mark Murphy: On Thu, Apr 18, 2013 at 3:53 AM, user123 ivans...@gmail.com javascript: 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., as they are all the same basic screen size, within fractions of an inch. Screen size != screen density. In fact, there is no correlation between the two. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- 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.
Re: [android-developers] Re: Compatibility mode issues on 4.x
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 company was interested in using this app on large screens, so I never got the order or time to do this work. Now this app is available but the development is suspended - I'm also not working there anymore. The app looks perfect in all smartphones. But on tabled-sized screens it has mayor errors, because of some calculations I had to do programmatically, which seem to have a problem when the screen is large, and some places where I forgot nine patch buttons and things like that. There where also a lot of backgrounds with bitmap-shadow, where the content had to be adjusted very accuratedly to look correct. So, yeah, if I could, I would just put this application off for tablets, because that's was what I was told to, actually. But it's not possible. But I thought Okay, I can resort to compatibility mode. But great to see, now, that this also doesn't work. So now I have to spend a weekend working for free, because my company doesn't targets the tablet market but Android thinks it's important? Am Donnerstag, 18. April 2013 13:58:26 UTC+2 schrieb Mark Murphy: On Thu, Apr 18, 2013 at 3:53 AM, user123 ivans...@gmail.com javascript: 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., as they are all the same basic screen size, within fractions of an inch. Screen size != screen density. In fact, there is no correlation between the two. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- 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.
Re: [android-developers] Re: Compatibility mode issues on 4.x
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 Donnerstag, 18. April 2013 22:30:18 UTC+2 schrieb 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 company was interested in using this app on large screens, so I never got the order or time to do this work. Now this app is available but the development is suspended - I'm also not working there anymore. The app looks perfect in all smartphones. But on tabled-sized screens it has mayor errors, because of some calculations I had to do programmatically, which seem to have a problem when the screen is large, and some places where I forgot nine patch buttons and things like that. There where also a lot of backgrounds with bitmap-shadow, where the content had to be adjusted very accuratedly to look correct. So, yeah, if I could, I would just put this application off for tablets, because that's was what I was told to, actually. But it's not possible. But I thought Okay, I can resort to compatibility mode. But great to see, now, that this also doesn't work. So now I have to spend a weekend working for free, because my company doesn't targets the tablet market but Android thinks it's important? Am Donnerstag, 18. April 2013 13:58:26 UTC+2 schrieb Mark Murphy: On Thu, Apr 18, 2013 at 3:53 AM, user123 ivans...@gmail.com 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., as they are all the same basic screen size, within fractions of an inch. Screen size != screen density. In fact, there is no correlation between the two. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- 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.
[android-developers] Re: Compatibility mode issues on 4.x
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: uses-sdk android:minSdkVersion=8 android:targetSdkVersion=8 / supports-screens android:largestWidthLimitDp=320 / Then the app goes in compatibility mode - Hello world! is zoomed. Fine. But if I change to *321 dp *- It doesn't go into compatibility mode. Is this a bug? 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.
[android-developers] Re: Compatibility mode issues on 4.x
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: uses-sdk android:minSdkVersion=8 android:targetSdkVersion=8 / supports-screens android:largestWidthLimitDp=320 / Then the app goes in compatibility mode - Hello world! is zoomed. Fine. But if I change to *321 dp *- It doesn't go into compatibility mode. I tested with a Nexus 7 tablet, Nexus 7 emulator, and 10.1 inches tablet emulator. Is this a bug? 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.
Re: [android-developers] Re: Compatibility mode issues on 4.x
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 android:largestWidthLimitDp is larger than 320. On Wed, Apr 17, 2013 at 4:26 PM, user123 ivanschu...@gmail.com wrote: 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: uses-sdk android:minSdkVersion=8 android:targetSdkVersion=8 / supports-screens android:largestWidthLimitDp=320 / Then the app goes in compatibility mode - Hello world! is zoomed. Fine. But if I change to 321 dp - It doesn't go into compatibility mode. I tested with a Nexus 7 tablet, Nexus 7 emulator, and 10.1 inches tablet emulator. Is this a bug? 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. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- 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.
[android-developers] Re: Compatibility mode issues on 4.x
The documentation pertaining to your question is confusing: https://lh6.googleusercontent.com/-licQp6SbXfo/UW8LjnXkvXI/AYU/84OJR3bW5vI/s1600/widthlimit2.png It sounds like 320 may very well be a *magic number*, and that nothing greater or lesser will work. But the docs do not seem to state this unequivocally. Thanks. On Wednesday, April 17, 2013 3:26:41 PM UTC-5, user123 wrote: 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: uses-sdk android:minSdkVersion=8 android:targetSdkVersion=8 / supports-screens android:largestWidthLimitDp=320 / Then the app goes in compatibility mode - Hello world! is zoomed. Fine. But if I change to *321 dp *- It doesn't go into compatibility mode. I tested with a Nexus 7 tablet, Nexus 7 emulator, and 10.1 inches tablet emulator. Is this a bug? 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.
[android-developers] Re: Compatibility mode issues on 4.x
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:compatibleWidthLimitDphttp://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.
[android-developers] Re: Compatibility mode issues on 4.x
It seems that this combination works: uses-sdk android:minSdkVersion=7 android:targetSdkVersion=8/ *supports-screens android:largestWidthLimitDp=400 /* 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 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.
[android-developers] Re: Compatibility mode issues on 4.x
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: uses-sdk android:minSdkVersion=7 android:targetSdkVersion=8/ *supports-screens android:largestWidthLimitDp=400 /* 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 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.
[android-developers] Re: Compatibility mode issues on 4.x
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.27848101266 inches is longer than 2 inches. Let's see what 2.27848101266 is in dp: 2.27848101266 * 160 = 364.556962026 dp So, if you set it to 365dp or higher, then your phone should not go into compatibility mode. Thanks. On Tuesday, March 19, 2013 11:46:49 AM UTC-5, user123 wrote: 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.
[android-developers] Re: Compatibility mode issues on 4.x
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 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.27848101266 inches is longer than 2 inches. Let's see what 2.27848101266 is in dp: 2.27848101266 * 160 = 364.556962026 dp So, if you set it to 365dp or higher, then your phone should not go into compatibility mode. Thanks. On Tuesday, March 19, 2013 11:46:49 AM UTC-5, user123 wrote: 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.
[android-developers] Re: Compatibility mode issues on 4.x
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 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 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.27848101266 inches is longer than 2 inches. Let's see what 2.27848101266 is in dp: 2.27848101266 * 160 = 364.556962026 dp So, if you set it to 365dp or higher, then your phone should not go into compatibility mode. Thanks. On Tuesday, March 19, 2013 11:46:49 AM UTC-5, user123 wrote: 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.
[android-developers] Re: Compatibility mode issues on 4.x
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.