Back to project page myAndroidApps.
The source code is released under:
This is my first GitHub try. Be gentle :)
If you think the Android project myAndroidApps 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 gidy.medappg.videoActivities; // w ww . j av a2s . co m import gidy.medappg.R; import android.net.Uri; import android.os.Bundle; import android.view.Menu; import android.widget.VideoView; public class UnconsciousNotBreathingVideoActivity extends VideoActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTheme(R.style.MedAppTheme); setContentView(R.layout.activity_unconscious_not_breathing_video); logger.debug("here"); VideoView v =(VideoView) findViewById(R.id.UnconsciousNotBreathingVideoView); String fileName = "android.resource://" + getPackageName() + "/" + R.raw.uncon_not_breathing_long; v.setVideoURI(Uri.parse(fileName)); v.start(); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.unconscious_not_breathing_video, menu); return true; } }