Runnable
Android code segment doesnt run without breakpoint (thread)
I have some code that will not run if I don\'t have a breakpoint. My speculation i开发者_StackOverflows that the code gets executed too quickly, and the time between me allowing a breakpoint to contin[详细]
2023-04-12 14:56 分类:问答How to keep one thread to call multiple JForms?
Let\'s say I have one thread running (I\'m creating many instances of this thread), and inside that I instantiate a JForm. While being inside that JForm, I call another JForm. Think of it as a multipl[详细]
2023-04-11 19:51 分类:问答How to make the image bounce horizontally?
I have an image(\"ball.gif\") that moves horizontally, the problem is how could I make the ball bounce when it reach the end of the size of the panel? I know this is not really difficult but I\'m just[详细]
2023-04-09 21:21 分类:问答Thread ending using java.util.concurrent API
I am working with threads, and decided to use the most modern API (java.util.concurrent package). Here\'s what I want to do (pseudocode):[详细]
2023-04-09 07:29 分类:问答Android 2.2 Implements Runnable Public void run() not being called
I have the following:- public class resApp extends MapActivity implements Runnable { public void run() {[详细]
2023-04-06 15:26 分类:问答How to implement a queue of runnables
I am trying to implement a queue of runnables to be executed one after another(meaning the next in the queue will execute after the other has completed) during an asynchronous task.I wrote a Manager t[详细]
2023-04-05 08:22 分类:问答How can I make sure a threadpool is finished?
The setup: I am in the process of changing the way a program works under the hood. In the current version works like this:[详细]
2023-04-04 02:48 分类:问答Should you synchronize the run method? Why or why not?
I have always thought that synchronizing the run method in a java class which implements Runnable is redundant. I am trying to figure out why people do this:[详细]
2023-04-03 08:43 分类:问答Java j2me get result from running Thread
Hej, I know how to pass parameters to a Runnable. But when my Thread has run, how to get the result of the process?[详细]
2023-04-01 21:04 分类:问答Force close when changing the resource of an ImageView
I having some problem with changing the resource of an imageview when i click an item. I know that any graphical updates should be done in the UI thread and I have tried two ways without success:[详细]
2023-03-30 16:25 分类:问答