Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
contryboy
Posts: 68
Registered: ‎08-16-2012
My Device: BB10 Dev Alpha
Accepted Solution

Static asset selection does not work in 10.2

[ Edited ]

Dear there,

 

I have an application with Static asset selection, whose aset structions looks like this:

|----assets
|     |----720x720
|           |----ui1.qml
|----ui1.qml

The intention is that when run on 720x720 devices (q10/dac), should use the ui1.qml under folder "720x720".

Everything works fine when build in Momentics 10.1, but when build it in Momentics 10.2 golden, the built application does not work. Which means it always uses the ui1.qml under "assets" regardless of the resolution of the device.

 

Is there anything needs to be updated for the 10.2?

 

Thanks,

Dong 

 

Developer
contryboy
Posts: 68
Registered: ‎08-16-2012
My Device: BB10 Dev Alpha

Re: Static asset selection does not work in 10.2

Just fund a solution soon after I posted this: to add a entry in assets/device-assets.xml:

<target-device width="720" height="720" ppi="328" class="phone"/>

 Hope it helps some one as well.

 

Dong