Back to project page FoodFinderApp.
The source code is released under:
GNU General Public License
If you think the Android project FoodFinderApp 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 cs499.examples.semesterproject; // w ww. java2 s. c o m import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void startFoodOwnerActivity (View view) { Intent i = new Intent (MainActivity.this, FoodBankOwnerActivity.class); startActivity(i); } public void startOthersActivity (View view) { Intent i = new Intent (MainActivity.this, OtherOwnerActivity.class); startActivity(i); } /*public void startQueryActivity (View view) { Intent i = new Intent (MainActivity.this, QueryActivity.class); startActivity(i); }*/ public void startLoginActivity (View view) { Intent i = new Intent (MainActivity.this, LoginActivity.class); startActivity(i); } }