Bluetooth library leaves app on white screen when it turns on bluetooth

12 views
Skip to first unread message

Gareth Murfin

unread,
Dec 5, 2019, 6:27:31 AM12/5/19
to CodenameOne Discussions
The Bluetooth library leaves app on white screen when it turns on bluetooth, there seems to be no way to get around this, I need to quit app and reload to get past it. Has anyone managed to get around this?

Gareth Murfin

unread,
Dec 5, 2019, 8:18:23 AM12/5/19
to CodenameOne Discussions
 uitimer fixes it!.. 


        new UITimer(new Runnable() { //use this to fix the bug where it goes to a white screen when initialised.
                public void run()
                {   
                    if (USE_BLUETOOTH)
                    {
                        _("##### kicking off the bluetooth party! a #####");
                        //we want to show a dialog spinning while this happens,
                        //its already doing that from the form we made in the ui builder
                        startBluetooth(HobIncludeBluetoothConnect);
                    }
                }
        }).schedule(1000, false, f);
Reply all
Reply to author
Forward
0 new messages