[android-developers] Re: Why is the default to use dpi instead of screen size for drawables
I thought it was due to too many graphics, but I did some more digging and found the issue. Now I have 160dpi graphics and no problems. Thanks All. http://www.arcdroid.com On Sep 15, 7:10 am, Kostya Vasilyev kmans...@gmail.com wrote: Did you ever consider finding out why it's crashing and um fixing it ? 15.09.2011 18:04, ArcDroid пишет: 160dpi graphics crashes my app so I had to use a lower dpi to avoid the animation from crashing. http://www.arcdroid.com On Sep 15, 12:19 am, Dianne Hackbornhack...@android.com wrote: 160dpi is mdpi. Android does not use 90dpi, so I am having a hard time understanding what you are saying. Anyway, how about fixing whatever in your app is crashing? :} On Wed, Sep 14, 2011 at 8:47 PM, ArcDroidjacobrjohn...@gmail.com wrote: Correct it is a mdpi. The problem I have is that my app crashes if i use 160dpi graphics so using 90dpi looks ok on a phone, but poor on a tablet. Hence the only solution I have found is to use the drawable- xlarge for the larger screens. On Sep 14, 6:30 am, Mark Murphymmur...@commonsware.com wrote: On Wed, Sep 14, 2011 at 9:12 AM, ArcDroidjacobrjohn...@gmail.com wrote: That is what I thought initially, simply put the higher res graphics in the drawables-hdpi folder. The problem is on my Acer 10 tablet the only way I can get the good graphics to show is using drawables- xlarge since the tablet for some reason won't use drawables-hdpi. That's because your Acer tablet is an -mdpi device, most likely. A 10 tablet with WXGA display should be -mdpi. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Kostya Vasilyev -- 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
Re: [android-developers] Re: Why is the default to use dpi instead of screen size for drawables
160dpi is mdpi. Android does not use 90dpi, so I am having a hard time understanding what you are saying. Anyway, how about fixing whatever in your app is crashing? :} On Wed, Sep 14, 2011 at 8:47 PM, ArcDroid jacobrjohn...@gmail.com wrote: Correct it is a mdpi. The problem I have is that my app crashes if i use 160dpi graphics so using 90dpi looks ok on a phone, but poor on a tablet. Hence the only solution I have found is to use the drawable- xlarge for the larger screens. On Sep 14, 6:30 am, Mark Murphy mmur...@commonsware.com wrote: On Wed, Sep 14, 2011 at 9:12 AM, ArcDroid jacobrjohn...@gmail.com wrote: That is what I thought initially, simply put the higher res graphics in the drawables-hdpi folder. The problem is on my Acer 10 tablet the only way I can get the good graphics to show is using drawables- xlarge since the tablet for some reason won't use drawables-hdpi. That's because your Acer tablet is an -mdpi device, most likely. A 10 tablet with WXGA display should be -mdpi. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
[android-developers] Re: Why is the default to use dpi instead of screen size for drawables
160dpi graphics crashes my app so I had to use a lower dpi to avoid the animation from crashing. http://www.arcdroid.com On Sep 15, 12:19 am, Dianne Hackborn hack...@android.com wrote: 160dpi is mdpi. Android does not use 90dpi, so I am having a hard time understanding what you are saying. Anyway, how about fixing whatever in your app is crashing? :} On Wed, Sep 14, 2011 at 8:47 PM, ArcDroid jacobrjohn...@gmail.com wrote: Correct it is a mdpi. The problem I have is that my app crashes if i use 160dpi graphics so using 90dpi looks ok on a phone, but poor on a tablet. Hence the only solution I have found is to use the drawable- xlarge for the larger screens. On Sep 14, 6:30 am, Mark Murphy mmur...@commonsware.com wrote: On Wed, Sep 14, 2011 at 9:12 AM, ArcDroid jacobrjohn...@gmail.com wrote: That is what I thought initially, simply put the higher res graphics in the drawables-hdpi folder. The problem is on my Acer 10 tablet the only way I can get the good graphics to show is using drawables- xlarge since the tablet for some reason won't use drawables-hdpi. That's because your Acer tablet is an -mdpi device, most likely. A 10 tablet with WXGA display should be -mdpi. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
Re: [android-developers] Re: Why is the default to use dpi instead of screen size for drawables
Did you ever consider finding out why it's crashing and um fixing it ? 15.09.2011 18:04, ArcDroid пишет: 160dpi graphics crashes my app so I had to use a lower dpi to avoid the animation from crashing. http://www.arcdroid.com On Sep 15, 12:19 am, Dianne Hackbornhack...@android.com wrote: 160dpi is mdpi. Android does not use 90dpi, so I am having a hard time understanding what you are saying. Anyway, how about fixing whatever in your app is crashing? :} On Wed, Sep 14, 2011 at 8:47 PM, ArcDroidjacobrjohn...@gmail.com wrote: Correct it is a mdpi. The problem I have is that my app crashes if i use 160dpi graphics so using 90dpi looks ok on a phone, but poor on a tablet. Hence the only solution I have found is to use the drawable- xlarge for the larger screens. On Sep 14, 6:30 am, Mark Murphymmur...@commonsware.com wrote: On Wed, Sep 14, 2011 at 9:12 AM, ArcDroidjacobrjohn...@gmail.com wrote: That is what I thought initially, simply put the higher res graphics in the drawables-hdpi folder. The problem is on my Acer 10 tablet the only way I can get the good graphics to show is using drawables- xlarge since the tablet for some reason won't use drawables-hdpi. That's because your Acer tablet is an -mdpi device, most likely. A 10 tablet with WXGA display should be -mdpi. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Kostya Vasilyev -- 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
Re: [android-developers] Re: Why is the default to use dpi instead of screen size for drawables
On Tue, Sep 13, 2011 at 11:06 PM, ArcDroid jacobrjohn...@gmail.com wrote: From the link I assumed from the below example that you should have similar drawable buckets if the layout is actually the same. res/layout/main_activity.xml # For phones res/layout-xlarge/main_activity.xml # For pre-3.2 tablets res/layout-sw600dp/main_activity.xml # For 3.2 and up tablets If the layout is actually the same for all three of these, you don't need anything more than res/layout/main_activity.xml. And, if the layout is actually the same, you would only need res/drawable-*dpi/ for whichever densities you are supporting, with their respective images sized appropriately so they show up at the desired physical size (e.g., a 32px-by-32px icon in -mdpi might have a 24px-by-24px in -ldpi, a 48px-by-48px in -hdpi, and a 64px-by-64px in -xhdpi). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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
[android-developers] Re: Why is the default to use dpi instead of screen size for drawables
That is what I thought initially, simply put the higher res graphics in the drawables-hdpi folder. The problem is on my Acer 10 tablet the only way I can get the good graphics to show is using drawables- xlarge since the tablet for some reason won't use drawables-hdpi. On Sep 14, 3:58 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Sep 13, 2011 at 11:06 PM, ArcDroid jacobrjohn...@gmail.com wrote: From the link I assumed from the below example that you should have similar drawable buckets if the layout is actually the same. res/layout/main_activity.xml # For phones res/layout-xlarge/main_activity.xml # For pre-3.2 tablets res/layout-sw600dp/main_activity.xml # For 3.2 and up tablets If the layout is actually the same for all three of these, you don't need anything more than res/layout/main_activity.xml. And, if the layout is actually the same, you would only need res/drawable-*dpi/ for whichever densities you are supporting, with their respective images sized appropriately so they show up at the desired physical size (e.g., a 32px-by-32px icon in -mdpi might have a 24px-by-24px in -ldpi, a 48px-by-48px in -hdpi, and a 64px-by-64px in -xhdpi). -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- 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
Re: [android-developers] Re: Why is the default to use dpi instead of screen size for drawables
On Wed, Sep 14, 2011 at 9:12 AM, ArcDroid jacobrjohn...@gmail.com wrote: That is what I thought initially, simply put the higher res graphics in the drawables-hdpi folder. The problem is on my Acer 10 tablet the only way I can get the good graphics to show is using drawables- xlarge since the tablet for some reason won't use drawables-hdpi. That's because your Acer tablet is an -mdpi device, most likely. A 10 tablet with WXGA display should be -mdpi. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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
[android-developers] Re: Why is the default to use dpi instead of screen size for drawables
Correct it is a mdpi. The problem I have is that my app crashes if i use 160dpi graphics so using 90dpi looks ok on a phone, but poor on a tablet. Hence the only solution I have found is to use the drawable- xlarge for the larger screens. On Sep 14, 6:30 am, Mark Murphy mmur...@commonsware.com wrote: On Wed, Sep 14, 2011 at 9:12 AM, ArcDroid jacobrjohn...@gmail.com wrote: That is what I thought initially, simply put the higher res graphics in the drawables-hdpi folder. The problem is on my Acer 10 tablet the only way I can get the good graphics to show is using drawables- xlarge since the tablet for some reason won't use drawables-hdpi. That's because your Acer tablet is an -mdpi device, most likely. A 10 tablet with WXGA display should be -mdpi. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- 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
[android-developers] Re: Why is the default to use dpi instead of screen size for drawables
So it appears I need to have the same higher res images in drawable- hdpi and drawable-large buckets. This is going to make the install big if an app has many pictures. On Sep 10, 10:44 am, Dianne Hackborn hack...@android.com wrote: They are two completely different things. Please read:http://android-developers.blogspot.com/2011/07/new-tools-for-managing... On Sat, Sep 10, 2011 at 7:44 AM, ArcDroid jacobrjohn...@gmail.com wrote: Directories are already created for ldpi, mdpi and hdpi, but it appears that normal, large, xlarge work much better for tablets and phone sizes since some old phones fall into the mdpi bucket. why is the default to use dpi instead of screen size? Thanks, ArcDroid http://www.arcdroid.com -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
[android-developers] Re: Why is the default to use dpi instead of screen size for drawables
So it appears I need to have the same higher res images in drawable- hdpi and drawable-large buckets. NO Go back and read the docs On Sep 13, 2:02 pm, ArcDroid jacobrjohn...@gmail.com wrote: So it appears I need to have the same higher res images in drawable- hdpi and drawable-large buckets. This is going to make the install big if an app has many pictures. On Sep 10, 10:44 am, Dianne Hackborn hack...@android.com wrote: They are two completely different things. Please read:http://android-developers.blogspot.com/2011/07/new-tools-for-managing... On Sat, Sep 10, 2011 at 7:44 AM, ArcDroid jacobrjohn...@gmail.com wrote: Directories are already created for ldpi, mdpi and hdpi, but it appears that normal, large, xlarge work much better for tablets and phone sizes since some old phones fall into the mdpi bucket. why is the default to use dpi instead of screen size? Thanks, ArcDroid http://www.arcdroid.com -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
Re: [android-developers] Re: Why is the default to use dpi instead of screen size for drawables
If you are writing drawable-large, you are almost certainly doing it wrong. On Tue, Sep 13, 2011 at 6:02 AM, ArcDroid jacobrjohn...@gmail.com wrote: So it appears I need to have the same higher res images in drawable- hdpi and drawable-large buckets. This is going to make the install big if an app has many pictures. On Sep 10, 10:44 am, Dianne Hackborn hack...@android.com wrote: They are two completely different things. Please read: http://android-developers.blogspot.com/2011/07/new-tools-for-managing... On Sat, Sep 10, 2011 at 7:44 AM, ArcDroid jacobrjohn...@gmail.com wrote: Directories are already created for ldpi, mdpi and hdpi, but it appears that normal, large, xlarge work much better for tablets and phone sizes since some old phones fall into the mdpi bucket. why is the default to use dpi instead of screen size? Thanks, ArcDroid http://www.arcdroid.com -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
[android-developers] Re: Why is the default to use dpi instead of screen size for drawables
My layout is the same for both apps, I simply want to use higher quality graphics for the tablets 90dpi vs 200dpi. From the link I assumed from the below example that you should have similar drawable buckets if the layout is actually the same. res/layout/main_activity.xml # For phones res/layout-xlarge/main_activity.xml# For pre-3.2 tablets res/layout-sw600dp/main_activity.xml # For 3.2 and up tablets Thanks again On Sep 13, 9:18 am, Dianne Hackborn hack...@android.com wrote: If you are writing drawable-large, you are almost certainly doing it wrong. On Tue, Sep 13, 2011 at 6:02 AM, ArcDroid jacobrjohn...@gmail.com wrote: So it appears I need to have the same higher res images in drawable- hdpi and drawable-large buckets. This is going to make the install big if an app has many pictures. On Sep 10, 10:44 am, Dianne Hackborn hack...@android.com wrote: They are two completely different things. Please read: http://android-developers.blogspot.com/2011/07/new-tools-for-managing... On Sat, Sep 10, 2011 at 7:44 AM, ArcDroid jacobrjohn...@gmail.com wrote: Directories are already created for ldpi, mdpi and hdpi, but it appears that normal, large, xlarge work much better for tablets and phone sizes since some old phones fall into the mdpi bucket. why is the default to use dpi instead of screen size? Thanks, ArcDroid http://www.arcdroid.com -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
[android-developers] Re: Why is the default to use dpi instead of screen size for drawables
One example is the htc hero and the acer iconica a500 10 tablet both use mdpi On Sep 10, 7:44 am, ArcDroid jacobrjohn...@gmail.com wrote: Directories are already created for ldpi, mdpi and hdpi, but it appears that normal, large, xlarge work much better for tablets and phone sizes since some old phones fall into the mdpi bucket. why is the default to use dpi instead of screen size? Thanks, ArcDroid http://www.arcdroid.com -- 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