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

Adobe AIR Development

Reply
Developer
decibell
Posts: 73
Registered: ‎11-16-2010
My Device: Playbook
Accepted Solution

Playbook Home Screen

Does anyone know if this is built with a native sdk? or with the AIR sdk?

 

I'm currently trying to optimize my ScrollPane's animations' smoothness, so I'm just wondering if it is at all possible to get the Home Screen's buttery-smooth scrolling.

----------------------------
Let's turn things up...
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Playbook Home Screen

I believe it's mostly (or entirely) pure AIR code.  I base that belief on some inspection of the previous simulators, which were more amenable to exploring, and some public statements that I recall one or two RIM reps making.

 

It's possible it uses some unreleased classes that have been carefully optimized.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
tensioncore
Posts: 323
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition
My Carrier: Rogers

Re: Playbook Home Screen

[ Edited ]
The interface if I'm not mistaken is coded in C++ - the native code. Which we will not get an SDK for probably until after the Playbook gets released...Only "Select Partners" are getting the Native SDK early....
CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Please use plain text.
Developer
decibell
Posts: 73
Registered: ‎11-16-2010
My Device: Playbook

Re: Playbook Home Screen

As I figured, I'll poke around and see what I can find, but it looks like cosmetics will have to wait till a final, or near-final sdk...

 

Thanks everyone

----------------------------
Let's turn things up...
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Playbook Home Screen

@tensioncore, I'm curious on what you base the idea that it's C++, other than pure speculation.  I've seen nothing that suggests this would be the case, and as I said I'm fairly sure I've heard RIM people stating that almost everything we've seen, except the actual viewports for video, are done with AIR.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
tensioncore
Posts: 323
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition
My Carrier: Rogers

Re: Playbook Home Screen

[ Edited ]

Well the OS itself is C++, so to wouldn't the UI for the operating system also be C++? when we launch an application it can be WebWorks, AIR or soon to Java....an app exists in its own little world...

 

If the UI was AIR, that would mean the UI would be in a container within the OS to be able to render it as an AIR Application...

CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Playbook Home Screen

 


tensioncore wrote:

Well the OS itself is C++, so to wouldn't the UI for the operating system also be C++? when we launch an application it can be WebWorks, AIR or soon to Java....an app exists in its own little world...

 

If the UI was AIR, that would mean the UI would be in a container within the OS to be able to render it as an AIR Application...


 

Well, this could all get pretty muddled, but to answer this in the context of the original question, no, the Home Screen is not necessarily written in the same language as the OS itself.  The Home Screen is just an app that happens to be capable of triggering the launch of other programs.  Most of what it does is display icons and let you slide them around... nothing a regular app can't do.  Also, the Status Bar is (I'm pretty sure) just another AIR app, and the two of them seem to be integrated in some fashion graphically, though I'm not sure that means they're "composed" by the native "viewport" stuff, or somehow in the AIR runtime.

 

There's also a "launcher", which I think is the name for the thing that actually invokes the code for the apps that you tap on in the Home Screen.  I would expect that is more or less native code, or at the very least it would have to call some low-level native code using an extension/library, to set up a new process and invoke the AIR runtime (or Java runtime, when we have that, etc). 

 

Now the low-level stuff in QNX that handles the actual "viewports" is certainly not AIR... that's native code for sure.  But I don't believe it is doing any more than, roughly, letting you layer bitmaps on top of each other and slide them around.  It's certainly not what's drawing the little icons for your apps, or at least there's absolutely nothing that says you could do that only with C++ code just because QNX has some C++ code in it.  (Oh... and does it?  For all I know QNX is actually a C-based OS.  I haven't investigated that far myself.  C++ APIs available on top of C core?  Or C++ to the core? No idea, haven't taken 10s to do the search. :smileyhappy:  )


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
decibell
Posts: 73
Registered: ‎11-16-2010
My Device: Playbook

Re: Playbook Home Screen

So you're saying the Home Screen (with all the apps) is really 2 applications? I've always thought it was like Apple's SpringBoard.app, in which it has it's own "launcher" builtin.

----------------------------
Let's turn things up...
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Playbook Home Screen

Depending on what we call an application, it's two, or three, or more.  I think there are two "apps" in the sense of what we write, in the AIR SDK... you can see those listed in /apps/ if you connect with SSH or browse the filesystem.  There are certainly more than two processes running... dozens actually, though many are not related to the home screen.  Certainly more than two threads associated with those two apps.  This is quite a system!


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
decibell
Posts: 73
Registered: ‎11-16-2010
My Device: Playbook

Re: Playbook Home Screen

Well yea because AIR applications are JIT compiled, and require the OS to have flash support

----------------------------
Let's turn things up...
Please use plain text.