package com.anprosit.android.dagger.factory;

import android.content.Context;
import android.media.MediaPlayer;

/**
 * Created by Hirofumi Nakagawa on 13/09/06.
 */
public class MediaPlayerFactory {
	public MediaPlayer create(Context context, int resId) {
		return MediaPlayer.create(context, resId);
	}

	public MediaPlayer create() {
		return new MediaPlayer();
	}
}

package com.anprosit.android.dagger.factory;

import android.content.Context;
import android.media.MediaPlayer;
import android.net.Uri;

/**
 * @author hnakagawa
 */
public class MediaPlayerFactory {
	public MediaPlayer create(Context context, int resId) {
		return MediaPlayer.create(context, resId);
	}

	public MediaPlayer create(Context context, Uri uri) {
		return MediaPlayer.create(context, uri);
	}

	public MediaPlayer create() {
		return new MediaPlayer();
	}
}

Add factory method for media player