Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.ringzero.standard.tuschapp;
- import android.media.MediaPlayer;
- import java.io.IOException;
- /**
- * Created by ford on 07.10.16.
- */
- public class TuschSpieler {
- private MediaPlayer mp;
- public TuschSpieler() {
- mp = new MediaPlayer();
- try {
- mp.setDataSource("http://carpelibrum.de/test/tada.mp3");
- } catch (IOException e) {
- e.printStackTrace();
- mp.prepare();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- @Override
- public void run() {
- mp.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement