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
New Developer
Posts: 78
Registered: ‎04-17-2011
My Device: BlackBerry Z10 LE
My Carrier: Bell
Accepted Solution

Prompt Dialog not appearing on BBOS 10, works on OS2.1

Basically my app, after initialising all the BPS lib and screen context, etc, creates a Prompt Dialog box, then goes into the main app loop.

 

This works fine with OS2.1 on the PlayBook. Dialog appears and gets the user to input an IP address. Close on cancel, and continue on "Connect"

 

This doesn't work at all with BBOS 10. App opens, and sits there. Dialog doesn't appear. Changed it to appear on swipe_down. Swipe_down event triggers, but dialog doesn't appear.

 

Is there something that's changed between OS10 and 2.1? Might it have something to do with dialog group?

 

Tried setting a dialog_group_id but didn't do anything else. just made it work less in 2.1.

MaxxWares.com
Current apps:
-BBOS 10-
MaxxTransit - Coming soon
Developer
Posts: 30
Registered: ‎03-03-2012
My Device: Playbook
My Carrier: Blackberry

Re: Prompt Dialog not appearing on BBOS 10, works on OS2.1

I get exactly the same result, no prompt dialog using SDK 10.9.9.386 on BB10.

 

I've got 3 games I need this working for, including Great Big War Game.

 

Please address this ASAP.

 

Thanks,

 

Steve.

-------------------------------------------------------------
Steven Haggerty,
Rubicon Development ( http://www.rubicondev.com/ )
BlackBerry Development Advisor
Posts: 38
Registered: ‎10-26-2011
My Device: BlackBerry Bold 9900
My Carrier: Rogers

Re: Prompt Dialog not appearing on BBOS 10, works on OS2.1

During screen setup, you need to create a window group with screen_create_window_group() immediately after creating the window with screen_create_window().

New Developer
Posts: 78
Registered: ‎04-17-2011
My Device: BlackBerry Z10 LE
My Carrier: Bell

Re: Prompt Dialog not appearing on BBOS 10, works on OS2.1

That works. This should probably be mentioned in the dialog.h section somewhere.

 

Now my problem is that the cancel is greyed out until input is entered. If anything I'd want the OTHER button to be set like that rather than cancel.

MaxxWares.com
Current apps:
-BBOS 10-
MaxxTransit - Coming soon
Developer
Posts: 30
Registered: ‎03-03-2012
My Device: Playbook
My Carrier: Blackberry

Re: Prompt Dialog not appearing on BBOS 10, works on OS2.1

Yep, that works for me.

-------------------------------------------------------------
Steven Haggerty,
Rubicon Development ( http://www.rubicondev.com/ )
Trusted Contributor
Posts: 232
Registered: ‎11-19-2010
My Device: Z10, Playbook

Re: Prompt Dialog not appearing on BBOS 10, works on OS2.1

I'm using bbutil_init_egl to setup the screen and window.

 

I pass it the screen_cxt and creates a window using screen_create_window(&screen_win, screen_ctx),

but, it does not return the screen_win value to my program so how can I create a window_group?

Trusted Contributor
Posts: 232
Registered: ‎11-19-2010
My Device: Z10, Playbook

Re: Prompt Dialog not appearing on BBOS 10, works on OS2.1

Also, in dialog.h it says that the window group is optional:

 

The dialog_set_group_id() function sets the window group ID for an application modal dialog. Setting this property is optional.

Highlighted
BlackBerry Development Advisor
Posts: 38
Registered: ‎10-26-2011
My Device: BlackBerry Bold 9900
My Carrier: Rogers

Re: Prompt Dialog not appearing on BBOS 10, works on OS2.1


taylor-tomt wrote:

I'm using bbutil_init_egl to setup the screen and window.

 

I pass it the screen_cxt and creates a window using screen_create_window(&screen_win, screen_ctx),

but, it does not return the screen_win value to my program so how can I create a window_group?


Edit bbutil_init_egl() to call screen_create_window_group().