• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps My app freeze.

hfdjw

Newbie
My app freesze when I use this code:[HIGH]
mp.reset();
try {
mp.setDataSource("some url");
} catch (IllegalArgumentException e) {

e.printStackTrace();
} catch (IllegalStateException e) {

e.printStackTrace();
} catch (IOException e) {

e.printStackTrace();
}
try {
mp.prepare();
} catch (IllegalStateException e) {

e.printStackTrace();
} catch (IOException e) {

e.printStackTrace();
}
mp.start();
}[/HIGH]
How I can prevent this?
 
Back
Top Bottom