package com.abler98.applite;
import android.app.*;
import android.os.*;
import android.view.*;
import android.widget.*;
public class MainActivity extends Activity
{
Button button_print;
EditText edit_text_toast;
/** Called when the activity is first created. */
Удалён
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
setTitle(\"AppLite - Главное меню\"
button_print = (Button) findViewById(R.id.button_print);
edit_text_toast = (EditText) findViewById(R.id.edit_text_toast);
}
Удалён
public void onClick(View v){
edit_text_toast.setText(null);
}
Удалён
public boolean onOptionsItemSelected(MenuItem item)
{
switch(item.getItemId()){
case 1:
Toast.makeText(this, \"Наш сайт: http://mast-wap.ru\", Toast.LENGTH_SHORT).show();
break;
case 2:
System.exit(0);
break;
}
// TODO: Implement this method
return super.onOptionsItemSelected(item);
}
}