B4A Tutorial [java] Libraries and multithreading - Erel    Nov 20, 2011   (3 reactions)   tags: Library, threading . You can submit Runnables to this pool by calling: BA.submitRunnable public static Future<?> submitRunnable(Runnable runnable, Object container, int TaskId) You should pass null and 0 to... {false}); } } } }; ba.submitRunnable(r.... A RejectedExecutionException will be raised if more tasks are submitted. Raising events on the main thread In..., container, TaskId, event, throwErrorIfMissingSub, params); Runnable runnable... Java Question TaskID / submitRunnable - wl    Jan 19, 2012 Hello,
I have been reading on how to create libraties for B4A and looking at some examples. I have two questions currently:
- TaskID: I see this is used a lot. Is it just used as an identifier that is passed to eventhandlers so the B4A developper can determine where exactly it came from ? (because of being able to run the same method multiple times at the same time) ?
- submitRunnable... Java Question BA.submitRunnable + XMLRPC - agraham (first post)    Apr 19, 2013 You should be using BA.submitRunnable not a Thread.... B4A Library AsyncTask - Informatix (first post)    Jan 29, 2018   (1 reaction) is there any difference between this library, CallSubExtended library and Thread library ? CallSubExtended uses internally BA.submitRunnable, which seems to be the function to use with B4A to run something in the background.... B4A Question anr error starting from android 6.0 - Informatix (first post)    Feb 5, 2018 I'm not familiar with the overlay library. I can say that you should avoid using additional threads in your code unless you don't have a choice. If you are reading the data from a database then you should use the async methods instead. CallSubExtended uses BA.SubmitRunnable to parallelize execution. It is very unlikely that the use of this library ends with an ANR. One of its goals is to avoid them. Without the code and without being able to reproduce the case, it's almost... B4A Library Threading library - agraham (first post)    Apr 19, 2013 I've told you. You don't want to do this. BA.SubmitRunnable is better for one off asynchronous stuff.... Java Question Help with threading and timeout in an existing B4A library - Kevin (first post)    Nov 7, 2013 Any thoughts from the Java gurus on this? Being that it uses the object wrapper I'm not sure whether I should use BA.submitRunnable in the wrapper class or the normal java "Runnable"... Java Question Event in java and use in the B4A - electro179 (first post)    Mar 28, 2013 Once every time you submit it.
this line : BA.submitRunnable(r, this,0); relaunchs the run() and howeve I send 10 messages to android I receive 1 message.
I initalize again I can receive ONE new message
thank you for you help... Java Question Trouble declaring a subclass that extends AsyncTask - thedesolatesoul (first post)    Aug 20, 2011 Hi Erel,
Can you give me an example of this?
I cannot find much documentation on submitrunnable?
And I do not understand how to use a runnable object.... Java Question event not raising - DonManfred (first post)    Jan 7, 2015 Read about the submitRunnable method.
Thanks for the hint!
A quick question ;-)
if i initialize a pdfrenderer mPdfRenderer = new PdfRenderer(pfd); and store this is a class-variable.. Then i just use the renderer methods to get the pagecount, render only page x...
Can i use the mPdfRenderer in a runable or do i need to create a new instance in the runable?... Page: 1   2   3   4   5   6   7   |