I want to create one method and call the created Thread inside that method in my Android Application, I am new to Java as I had told before.
Can anybody giive me an example of how should I create a method and call a Thread inside that method!
Thanks,
david
I’m not sure I understand your question. You want to start a thread inside a method?
The simplest way is:
How you might want to do something in this thread, which can be done this way:
Of course these anonymous objects can be expanded into full-fledged ones.