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.carpark; /*from ww w. j a v a 2s . c om*/ import gidy.carpark.utils.CommonUtils; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; public class HomeScreen extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_home_screen); CommonUtils.initHebrewText(this,(Button)findViewById(R.id.JustParkedButton)); CommonUtils.initHebrewText(this,(Button)findViewById(R.id.WhereParkedButton)); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.home_screen, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); } public void justParked(View view){ Intent intent = new Intent(this, JustParkedActivity.class); startActivity(intent); } public void whereParked(View view){ Intent intent = new Intent(this, WhereParkedActivity.class); startActivity(intent); } public Context getAppContext(){ return this; } }