In your product definition you must specify that you need hdpi
resources by setting

PRODUCT_LOCALES += hdpi

Xav

On Mon, Feb 22, 2010 at 11:36 PM, Xinyu Chen <[email protected]> wrote:
> Hi Xav
>
> Yes, I built it as part of platform.
> Where's the product configuration for density you mentioned here?
> How can I change it?
>
> Thanks
>
> On Feb 23, 3:16 pm, Xavier Ducrohet <[email protected]> wrote:
>> How do you build the app? Are you building it as part of the platform?
>> If so, you product configuration may not include the hdpi resources.
>> I'd check there first.
>>
>> Xav
>>
>>
>>
>>
>>
>> On Mon, Feb 22, 2010 at 10:32 PM, Xinyu Chen <[email protected]> wrote:
>> > Rob
>>
>> > Thanks for reply.
>> > But adding split.density=true did not let it generate separate .apk
>> > for each density.
>> > After running: aapt dump badging to this apk file, it dumps:
>>
>> > package: name='com.cooliris.media' versionCode='30682'
>> > versionName='1.1.30682'
>> > application: label='Gallery' icon='res/drawable/icon.png'
>> > launchable activity name='com.cooliris.media.Gallery'label='Gallery'
>> > icon=''
>> > sdkVersion:'5'
>> > targetSdkVersion:'7'
>> > uses-permission:'android.permission.SET_WALLPAPER'
>> > uses-permission:'android.permission.WRITE_EXTERNAL_STORAGE'
>> > uses-permission:'android.permission.GET_ACCOUNTS'
>> > uses-permission:'android.permission.USE_CREDENTIALS'
>> > uses-permission:'android.permission.INTERNET'
>> > uses-permission:'android.permission.VIBRATE'
>> > uses-permission:'android.permission.WAKE_LOCK'
>> > uses-permission:'android.permission.RECEIVE_BOOT_COMPLETED'
>> > uses-permission:'android.permission.READ_SYNC_SETTINGS'
>> > uses-permission:'android.permission.WRITE_SYNC_SETTINGS'
>> > uses-permission:'android.permission.MANAGE_ACCOUNTS'
>> > uses-permission:'android.permission.ACCESS_FINE_LOCATION'
>> > uses-permission:'android.permission.ACCESS_COARSE_LOCATION'
>> > main
>> > app-widget
>> > other-activities
>> > other-receivers
>> > other-services
>> > supports-screens: 'normal' 'large'
>> > locales: '--_--' 'da' 'ja' 'nb' 'de' 'el' 'nl' 'pl' 'ko' 'fr' 'tr'
>> > 'cs' 'es' 'it' 'pt' 'ru' 'sv' 'zh_CN' 'es_US' 'pt_PT' 'zh_TW'
>> > densities: '160'
>>
>> > The densities is 160, does that mean only mdpi can be used?
>> > BTW: the anyDensity attribute in AndroidManifest.xml is "true"
>>
>> > On Feb 23, 12:00 pm, Bob Kerns <[email protected]> wrote:
>> >> The aapt command has a -c option which governs which configurations to
>> >> include (default = everything). Since the Gallery comes with specific
>> >> devices, it wouldn't surprise me if it's configured to only include
>> >> assets targeting a specific platform.
>>
>> >> Check your default.properties file for split.density=true, which
>> >> should generate a separate .apk for each density.
>>
>> >> On Feb 22, 6:21 pm, Xinyu Chen <[email protected]> wrote:
>>
>> >> > Hi all
>>
>> >> > I have built android 2.1 on freescale's i.MX platform.
>> >> > But after running Gallery3D, it will crash with the log of failed to
>> >> > load resource.
>> >> > I found that the whole drawable-hdpi/ (it really contains in the
>> >> > Gallery3D source code res/) is not in the apk package, and cause lack
>> >> > of drawable-hdpi/icon_cancel.png. The apk only contains drawable-mdpi/
>> >> > and drawable/.
>> >> > My question is why the drawable-hdpi/ resource is dropped when
>> >> > building apk? Per my understanding is that, which drawable-* resource
>> >> > loading is determined on runtime, and all the drawable-* should be in
>> >> > the apk package.
>> >> > Could anybody help? Thanks.
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.> To post to this group, send email 
>> > [email protected]
>> > To unsubscribe from this group, send email 
>> > to>[email protected]
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> Xavier Ducrohet
>> Android SDK Tech Lead
>> Google Inc.
>>
>> Please do not send me questions directly. Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to