Back to project page field-data-app.
The source code is released under:
MIT License
If you think the Android project field-data-app 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 nz.cri.gns.springs.activity; //from ww w . jav a 2 s . co m import nz.cri.gns.springs.R; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; /** * Provides the application's main menu. * @author duncanw */ public class MainMenuActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_menu); findViewById(R.id.new_bio_sample_button) .setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(MainMenuActivity.this, BioSampleActivity.class); startActivity(intent); } }); findViewById(R.id.manage_bio_samples_button) .setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(MainMenuActivity.this, ManageBioSamplesActivity.class); startActivity(intent); } }); findViewById(R.id.settings_button) .setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(MainMenuActivity.this, SettingsActivity.class); startActivity(intent); } }); } }