Back to project page local-stories.
The source code is released under:
Apache License
If you think the Android project local-stories 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 no.hiof.stud.localstories; /*from w ww .j a va2 s . c om*/ import android.app.Activity; import android.content.pm.ActivityInfo; import android.os.Bundle; import android.view.Menu; import android.view.View; public class PlayAudio extends Activity{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.play_audio); // Restrict application to portrait view only setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.activity_event, menu); return true; } /** Called when the user clicks the Back button */ public void backButton(View view) { finish(); } }