infinite - CodeNameOne InfiniteProgress Issue -


I am having problems with providing the next screen if infinite progress is used and if this piece of code is indexed Then I show the next screen where it displays a list.

  final form poList = (form) super.createContainer (getResourceFilePath (), "POList"); Connection request request = new connection request () {hashtable response = zero; Protected void readResponse (InputStream input) {// Read and Pars the feedback} Secure void postResponse () {if (response! = Null) {Get a sorted list from try {// response and fill the list to fill the list use it. Show (); } Hold (exception e) {e.printStackTrace (); }}}}; Request.setUrl (poListUrl); Request.setPost (wrong); Request.addRequestHeader ("Authority", "Bearer" + AccessToken); Request.setContentType ("text / xml"); / * If these three rows are commented then the next form is shown properly * / infinite progression ip = new infinite progress (); Dialog dlg = ip.showInifiniteBlocking (); Request.setDisposeOnCompletion (dlg); . NetworkManager.getInstance () addToQueue (request);  

You have a race condition between the disposal of infinite progress and the performance of the next form is .

  dlg.dispose ()  

; Get a sorted list from // response and use it to fill the list poList.show ();


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -