Android instance
Translation results:
Android is an open source, Linux-based mobile device operating system, mainly used in mobile devices, such as smartphones and tablets. Android is developed by the Open Handset Alliance, led by Google and other companies.
Android instancesyntax
The first step is to create a simple Android application through the Eclipse IDE. Follow the option File -> New -> Project and finally select Android New Application from the wizard list.
Android instanceexample
package com.example.helloworld; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; import android.support.v4.app.NavUtils; public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_main, menu); return true; }}