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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Do any native/OGL apps work in 1103?

Ok, then I have to mention that I am still building with Beta 3 (Build id: v201209241008) but device is upgraded to 1103.

New Contributor
Posts: 9
Registered: ‎12-01-2012
My Device: Playbook, Dev Alpha
My Carrier: ATT

Re: Do any native/OGL apps work in 1103?

The default C/OpenGL project will build and run fine on a dev alpha 1103, but an otherwise empty c++ project with that main.cpp will not.  At least not on mine or the app submission people when built from my machine.  This happens with tablet 2.1 or bb10 sdk, so it's probably the case with beta 3.

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Do any native/OGL apps work in 1103?

I'll risk to assume that application cannot properly function without window (and at the same time request screen events).

If you add this minimal init steps to your main():

    screen_context_t screen_cxt;
    screen_create_context(&screen_cxt, 0);
    screen_window_t screen_win;
    screen_create_window(&screen_win, screen_cxt);
    int rect[4] = { 0, 0, 0, 0 };
    screen_buffer_t screen_buf;
    screen_create_window_buffers(screen_win, 1);
    screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void **)&screen_buf);
    screen_post_window(screen_win, screen_buf, 1, rect, 0);
    screen_flush_context(screen_cxt, SCREEN_WAIT_IDLE);

 

you'll get NAVIGATOR_EXIT (and other navigator events).

By the way this part also does not look nice:

                } else if ((domain == navigator_get_domain())

                        && (NAVIGATOR_EXIT == bps_event_get_code(event))) {

                    exit_application = 1;

                }

Add break; after exit_application.

And final remark bps_get_event(&event, 0) will eat your CPU, in this particular example it is better to use bps_get_event(&event, -1))

 

New Member
Posts: 1
Registered: ‎12-14-2012
My Device: Dev Alpha
My Carrier: Telcel

Re: Do any native/OGL apps work in 1103?

you and resolved the conflict, help me please? I have the same problem
New Contributor
Posts: 9
Registered: ‎12-01-2012
My Device: Playbook, Dev Alpha
My Carrier: ATT

Re: Do any native/OGL apps work in 1103?

There were a couple things. 

 

1) 1103 has graphics bugs that are beyond my control. Some of these are fixed in the newest update. 

2) In the update released yesterday, the os still has bugs. I figured out that if I draw an empty frame before doing anything else, things mostly work.

 

This cost me a lot of time, and possibly enough of a setback to not make the built for blackberry deadline. I did eventually get a rim engineer to admit the 1103 problems were not on my end.