02-15-2013 02:13 PM
Hello,
I didn't catch whether the same BAR file will be for both Z10 and Q10 or whether I have to create two BAR files.
I guess that for Z10 I have to compile project using 10.0 SDK and for Q10 I have to use 10.1 SDK.
Are somewhere described best practices how to maintain such a project?
Tom
02-15-2013 02:37 PM
02-15-2013 02:43 PM
I'm posting this here because I blindly hope that BB is watching this forum.
I'm hoping they will write some article regarding this as it seems to be important.
I found that adapting existing apps from Z10 to Q10 will be a lot of work (as display of Q10 is really small comparing to Z10) so I would love to make it properly from beginning.
I also don't want to send wrong BAR into BB World as review takes so long.
So please BlackBerry cover this topic in documentation!
02-15-2013 04:04 PM
I wrote my app initially for the Z10 but it worked very good on the Q10 also. It's actually not that hard to create an app for both devices.
10.1 provides asset selectors which makes it easy to use other images if necessary.
http://developer.blackberry.com/cascades/documenta
Use 9-slicing if possible. For example, I use a background image for my listview with rounded corners. Because I used 9-slicing, this perfectly fits on the Q10 as well.
http://developer.blackberry.com/cascades/documenta
You can also take a look at the documentation. BlackBerry wrote an article on how to work with differend resolution devices.
http://developer.blackberry.com/cascades/documenta
02-15-2013 04:45 PM
The preferred approach is to have a single .bar file for both screen sizes. Using asset selectors is super easy and would be what I recomend.
If you want to have two seperate apps this is also possible. Selecting different device support in AppWorld is very straight forwards. Still there are a few things to take note of.
02-15-2013 04:58 PM
Although it is possible, I would not go for 2 different bar-files. Maybe BlackBerry will come with other devices and other screensizes. Then you have to create a separate app for that device again... More work right, programmers are lazy
. Try to make it as indepent as possible, BlackBerry offers us enough ways to do it effectively.
02-19-2013 04:29 AM
02-19-2013 02:19 PM