01-18-2013 12:43 PM
I have created a progress toast dialog using dialog_create_progress_toast() and have followed all other steps from http://origin-developer.blackberry.com/native/refe
when setting value of toast using dialog_set_progress_toast_level() 0 is returned so no error.
Any ideas anybody please?
01-18-2013 02:32 PM
The Dialog Sample might be helpful: https://github.com/blackberry/NDK-Samples/tree/mas
01-18-2013 03:06 PM
Unfortunatly, there is nothing in that sample to do with progress toast dialog., i need more specific advice because I can actually show and hide the dialog but the control which is specific to progress toast (loading bar) isn't updating when i set it's value.
So currently for me Progress dialog isn't doing what it's meant to.
01-18-2013 03:21 PM
do you use dialog_set_progress_toast_state() ?
01-18-2013 03:28 PM
I have
dialog_progress_state_t di = DIALOG_PROGRESS_PLAY;
dialog_set_progress_toast_state(dialog, di);
but im not fully confident its correct as there is no other reference to this anywhere.
01-18-2013 03:32 PM
Looks correct.
Please file a bug.
01-18-2013 03:40 PM
ok will do - would it matter if im not calling bps_get_event by any chance?
01-18-2013 03:42 PM
no.
01-18-2013 04:17 PM - edited 01-18-2013 04:31 PM
Here's a sample showing a progress toast updating correctly:
https://github.com/jhoffmannrim/NDK-Samples/tree/p
Each time you swipe down the level will increase. If the toast is still showing, it will be updated live.
(edit: changed URL)
01-18-2013 04:22 PM
I had just found the reason why and then received the link to a working sample!
The problem was dialog_update(dialog); wasn't getting called after updating the value.
Thanks guys.