Runnable
Java Runnable Question
I\'m currently taking a course in Java and I\'ve run into some confusing code. Example: Runnable runnable = new Runnable()[详细]
2023-01-27 03:24 分类:问答Running multiple threads in Java
I\'m having a very weird problem.I\'m working on an assignment that involves building a simulation of figures moving on a 2d \"chessboard\". Each figure is represented by an object implementing the Ru[详细]
2023-01-26 07:02 分类:问答Handler Throwing NullPointerException After Several Hours
In my application, I have a service that uses a handler to execute a runnable after a randomized amount of time.The program works fine - for a few hours.All of a sudden, the program will throw a nullp[详细]
2023-01-26 05:19 分类:问答Threading Problem with Java and Android
I\'m designing an app, which flicks through a series of pictures, like flicking through a photo album. Pretty standard stuff I\'m sure.[详细]
2023-01-26 02:19 分类:问答Issue with Java threads, using Runnable or Thread
I\'m trying to implement multi-threading using merge sort.I have it making new threads at the point where it cuts an array in half.[详细]
2023-01-23 19:12 分类:问答Is this the best way to show content?
I\'m relatively new in Android\'s world and the UI/Thread model is still confusing. Here is what I am trying to do:[详细]
2023-01-23 11:52 分类:问答Cannot figure out the context when launching an Intent from within a thread completion method
I am trying to launch a new intent after I have loaded data.I am using a handler that calls a method when the thread is complete and then in this method I am trying to launch a new Intent but my app i[详细]
2023-01-18 10:16 分类:问答Help with implementing Runnable in Java
I\'m working on a java project with my team at work.To summarize, we have a main class that has a method that instant开发者_如何学Ciates and calls a \"Save\" class.This \"Save\" class saves files back[详细]
2023-01-17 09:00 分类:问答android:Handler from a Runnable throws Null Pointer Exception
I have a Thread that downloads data from internet public class Bp implements Runnable { Handler myHandler;[详细]
2023-01-16 16:33 分类:问答Is this thread safe?
I am writing an application for Android and am using worker threads to process certain information. Having read through my code I am now unsure if it is thread safe.[详细]
2023-01-15 09:47 分类:问答