Back to project page rsmonitor-heartrate.
The source code is released under:
GNU General Public License
If you think the Android project rsmonitor-heartrate listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.renaultsport.heartrate; //from w ww.ja v a2s .co m import com.renaultsport.heartrate.utils.Constants; import android.app.Activity; import android.os.Bundle; import android.widget.MediaController; import android.widget.VideoView; public class ActivityVideoReader extends Activity { private String m_szPath = null; private VideoView m_VideoView = null; @Override public void onCreate (Bundle bundle) { super.onCreate (bundle); setContentView (R.layout.videoplayer); m_VideoView = (VideoView) findViewById (R.id.VideoPlayerView); m_szPath = getIntent ().getExtras ().getString (Constants.EXTRA_URL); m_VideoView.setMediaController (new MediaController (this)); m_VideoView.setVideoPath (m_szPath); m_VideoView.start (); } @Override public void onBackPressed () { m_VideoView.stopPlayback (); super.onBackPressed (); } }