Snippets tagged “executorservice”
2 snippets use this tag.
- How can I fix 'android.os.NetworkOnMainThreadException'?Java
The android.os.NetworkOnMainThreadException is a runtime exception that is thrown when an application attempts to perform a networking operation on the main thread.
- How can I pass a parameter to a Java Thread?Java
To pass a parameter to a Java thread, you can use a Runnable object and pass the parameter to its constructor.