Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Runnable

public interface Runnable

java.lang.Runnable
Known Indirect Subclasses


Represents a command that can be executed. Often used to run code in a different Thread.

Summary

Public methods

abstract void run()

Starts executing the active part of the class' code.

Public methods

run

Added in API level 1
void run ()

Starts executing the active part of the class' code. This method is called when a thread is started that has been created with a class which implements Runnable.

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.