You are on page 1of 8

AVD

AVD-Android Virtual Device. Is an emulator configuration. Consists of


1. A hardware profile 2. A mapping to a system image 3. Other options 4. A dedicated storage area on your development machine

Demo of creating AVD

New window opens

Click On New now again new window opens

Fill up all the information

You can see the created AVD name in the list

Calling the xml Component in java file


EditText et1=(EditText)findViewById(R.id.editText1);

TextView tv=(TextView)findViewById(R.id.textView1);

Button b1=(Button)findViewById(R.id.button1);

Performing Action on Button


We use here the ActionLisner for the button b1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub String s=et1.getText().toString(); tv.setText(s); } });

You might also like