Thursday, 29 August 2013

Android functions simultaneously

Android functions simultaneously

This is my code:
protected void loadvide(Chan channel) {
Rtmpdump dump = new Rtmpdump();
dump.parseString(channel.getUrl());
startActivity(new Intent(this,VideoViewDemo.class));
}
The code works, but I have a problem.
The problem is, when I execute the aplication, first execute this part to
my code:
Rtmpdump dump = new Rtmpdump();
dump.parseString(channel.getUrl());
and the second part: startActivity(new Intent(this,VideoViewDemo.class));
not work, because the second part begin work when finish the first part.
But I would like that when I start the application, the first and second
parts of the code are executed simultaneously.

No comments:

Post a Comment