Basic Application

Android take screenshot from code

Android java snippet to capture screenshot from code.

Introduction to Google Android Application Development

A software stack for mobile devices that includes an OS, middleware and key applications. The Android SDK includes tools like debugger, libraries, sample code and tutorials. Based on Linux and provides integration with other Google services (maps search etc). Android SDK has a wide range of built in features, and provides immense flexibility and opportunity to develop mobile applications.

Android HTML View

In android, we can use some HTML Tags for text.

Android Toast Example

Android allows us to display a message without any button like 'OK' or 'Cancel'.

Its helps us to display a short message in short time.

Toast Example :

[sourcecode language="java"]

Toast.makeText(Classname.this, "Your Toast Text", Toast.LENGTH_SHORT).show();


The output will look like

toastmeessage without any button.

Look at the

How to make a call to a phone number in android?

In Android, we can call any phone number by using Intent.ACTION_CALL. To call a phone number we need to access uses permission.

Here is the code that shows you how to call a particular phone number

[sourcecode language="java"]

public class ExampleApp extends Activity {
public void onCreate(Bundle savedInstanceState) {
startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:8304600889" )));


Here the sample phone number is '8304600889'.

Android Widgets

The Android widget package contains user interface elements to use on your application screen.

We can design our own widget by using extend view or a subclass.

The classes present under the Android widget package are:-

  • AbsListView
  • AbsListView.LayoutParams
  • AbsoluteLayout
  • AbsoluteLayout.LayoutParams
  • AbsSeekBar
  • AbsSpinner
  • AdapterView<T extends Adapter>
  • AdapterView.AdapterContextMenuInfo
  • AlphabetIndexer
  • AnalogClock
  • ArrayAdapter<T>
  • AutoCompleteTextVi

Building a Simple Android Application

In this tutorial we are going to seeĀ how to build a simple Android application...

The below video will explain the step by step process of how to create a simple Android application using Eclipse & how to run the application.

Syndicate content