Simple Question about Res folders

by B Woods » Fri, 02 Jul 2010 22:37:31 GMT


Sponsored Links
 What are the differences between drawable-hdpi, drawable-ldpi, and
drawable-mdpi? Do I need to place my graphics in each of these folders?

--



Simple Question about Res folders

by Kostya Vasilyev » Fri, 02 Jul 2010 22:45:56 GMT


 02.07.2010 18:37, B Woods :
What are the differences between drawable-hdpi, drawable-ldpi, and drawable-mdpi? Do I need to place my graphics in each of these folders?
They are versions of the same graphics files for different screen resolutions. If you don't provide hdpi and ldpi versions, Android loads the default version from drawable and scales it as necessary. Sometimes this looks ugly, so you need to provide alternative versions yourself. This can be done individually for each graphics file used in your app's UI. http://developer.android.com/guide/practices/screens_support.html -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com --


Sponsored Links


Simple Question about Res folders

by Phil » Sat, 03 Jul 2010 08:53:09 GMT


 They are there to allow your app to display icons, etc of different
sizes, for different devices.

For example, H.D. icons are 72x72, MD are 48x48 and LD are 36x36.




--



Simple Question about Res folders

by Al Sutton » Sat, 03 Jul 2010 15:27:01 GMT


 They are *not* for resolutions. They are for screen densities (i.e.
the number of pixels per inch on the screen).

To illustrate this point, the Nexus One and the Dell Streak both have
screens with a resolution of 800x480 pixels, but because the Nexus One
has a smaler physical screen it has a hight pixel density, so the
Nexus One uses assets from drawable-hdpi and the Dell Streak uses
assets from drawable-mdpi.

Al.




--



Other Threads

1. Can I use an AsyncTask instead of a Service for my Widget's background processing?

You guessed right!  Thanks for the tips, and I'll be clearer in the future.

Best,
Paul






> 

2. Can I use an AsyncTask instead of a Service for my Widget's background processing?



You don't say where you are using an AsyncTask. And I'm not sure whether
"widget" means View or "app widget".

:: insert grumble about Android confusing naming convention here ::

I am going to take a guess that you are trying to use an AsyncTask from
the AppWidgetProvider. That's a bit dangerous -- BroadcastReceivers like
an AppWidgetProvider are not supposed to run background threads
directly. I recommend using an IntentService for app widget updates.

If that's not what you are trying to do, I apologize for guessing
incorrectly, and please respond on-thread with more details.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.0 Available!

-- 

3. Can I use an AsyncTask instead of a Service for my Widget's background processing?

4. How to have a notification icon with image + text

5. Continuous Speech Recognition?

6. Kernel module deployment

7. Intermezzo dulu ah boss ....