I\'ve been really banging my head against the table trying to get the MediaPlayer class to try to play h.264-encoded videos on Android 2.1. My code is rather simple:
I know this may be too late. I managed to use video from resources as this:
MediaPlayer mp = ...; Uri uri = Uri.parse("android.resource://"+getPackageName()+"/" + R.raw.my_movie); mp.setDataSourceUri(this, uri);