Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
I am extending a thread class and from that class I want to start an activity. How to do this? | ||||
You need to call
| |||
you can use Something like this.
| ||||
Well to start an activity of an class, a class should extends with activity according to me. But if you want to start activity with some threading function you can do these things. Instead of extends Thread, use implements Runnable. After that some class that have an Activity you just call the start thread and put your logic and that start Intent. I think this is the good solution for you. | ||||
default
.
stackoverflow.comm
No comments:
Post a Comment