RSS

Search Engine

Thursday, September 2, 2010

Goooogle Android Tutorials

Google has recently released the Android platform for developing mobile applications. The language used for developing Android programs is Java, but it is not Java Micro Edition. No wireless application developer can ignore Android. Google is the best known brand name, among the users of the web and Android comes from Google.

I am presenting this hands-on tutorial, as a sequel to my j2me series. Adequate knowledge of core-java ,especially Event-handling, Swing and inner-classes is assumed. Though Android does not make use of Swing, it uses similar ideas.

We can develop Android lessons and applications in Eclipse environment. Google have provided an Eclipse-plugin for Android. This is the popular method. Google has not given direct support to Netbeans. But some Netbeans users have developed a method for running Android in Netbeans . It is available at http://undroid.nolimit.cz/. You can find more screenshots and guidance in http://eppleton.com/blog/.

We can develop Android lessons without using either Eclipse or Netbeans. The necessary command-line tools have been provided by Google. I found that using these command-line tools is easier than either Eclipse or Netbeans method. So, I am basing all the following lessons on these tools. I think, most readers will agree with my view, after they try this method as well as Eclipse method. The Android site at 'code.google.com/android' has already given step-by-step instructions about Android in Eclipse. You can also get more details with screen shots from a wonderful website at www.tanguay.info/web/welcome.php titled 'Edward's Web Developer site'. He gives excellent guidance with plenty of screen shots

The Android site lacks clarity about the command-line method. Hence, I think I am adding something useful by writing on the command-line method instead of simply repeating the material in Android site.
Let us start from the beginning. The first step is downloading the Android SDK (version m5-rc14, Feb-12, 2008). Android was released in November, 2007 . It has been revised in the Feb-2008 version.Some of the earlier examples may not work in the newer version.

I am working in Windows-2000 and so I downloaded the windows version. The supported platform in Windows is either Windows-XP or Vista.(Mac OS 10 & Ubuntu Linux are the other platforms mentioned). However, it works well in my Win-2000. It is advisable to have at least 512MB memory. The android SDK is a zip file. I unzipped it to C:\unzipped\android and later, I copied that folder to D:\android. If you want, you can simply copy it to another drive like G:\android also. In the following lessons D:\android is used.

If you want to develop using Eclipse, you must have installed either Eclipse3.2 or Eclipse3.3(Europa). I have tested with Eclipse3.2. No problem.It works. But, we require ADT (ie) Android Development Tools plugin for Eclipse, if you are using Eclipse.You can get this plugin from http://code.google.com/android/adt_download.html. You have to be careful about the ADT version number.It is ADT-0.3.3.


As my present focus is on command-line method, let me begin straight away and give a simple demo.The procedure given here is common for all our experiments and so I will not be repeating it in each demo. So, please note it down carefully.

Demo 1 - TextBox

In my first demo, I will have a customary button and textbox ( called EditField in Android). When I click the button, I want the message "SUCCESS!" to be displayed in textbox. Just as an exercise, I am using two buttons and two textboxes.


The first step is to start the Emulator

cd to d:\android\tools

d:\android\tools>emulator

It will take a long time to get started. Do not be in a hurry. Wait till it gets fully started. And do not close that window carelessly by mistake. In that case, you will have to start it again and wait for a long time again. Finally, we get the emulator screen

The second step is to give the following command, from another command window.

d:\android\tools>

activityCreator --out demo mypack.mydemos.demo

This means that my project is 'demo' and my package is 'mypack.mydemos'. A number of folders are created automatically by this command:

  • tools\demo\src
  • tools\demo\bin
  • tools\demo\res.

We need to note the src and res folders carefully. We will place the java source file in src folder and main.xml file in res\layout, overwriting any files that are generated automatically. For the moment, we can think of the res\layout folder as the one which decides the gui design. As in asp.net, flex etc, the gui details are specified in xml file. But how shall we write the XML file? by hand? Not too difficult .But....luckily, there is an open-source gui designer named 'DroidDraw' available in http://www.droiddraw.org/ .It is a nice tool and if you like it, you can send your appreciation to brendan.d.burns@gmail.comThis e-mail address is being protected from spambots. You need JavaScript enabled to view it . He has given a simple tutorial too, on how to use this gui tool.

I downloaded this software from the above site. I unzipped it. ( any folder). When we click on the icon, we get the screen as given below.

Droid Draw

Droid Draw

Drawing Canvas Area

Drawing Canvas Area

Toolbox & Blank Area

Toolbox & Blank Area

Thus we get a window, showing the drawing canvas on leftside and toolbox and a blank area in the rightside. ( for printing purpose, I have split them into two screens) as above.

From the toolbox, we learn that we are having controls like button,check,radio,spinner,edittext(textbox) and textview (label) etc. There is also a combo to choose layout, in the canvas screen. I am choosing 'absolute layout'. I simply drag and drop a button and an editview on the canvas.(Drag and drop, do not click and drop! It won't work).

You will notice a number of tabs in toolbox. Select 'properties' tab.. After clicking the button on the canvas, give the id property of button as @id/button1. Similarly, for editview as @id/text1. Also, button2 and text2 After this, just click the 'generate' button at the bottom of the blank window. We get the following XML file(main.xml) automatically generated.

  1. xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent" android:layout_height="wrap_content"
  4. android:padding="10px">
  5. <EditText android:id="@+id/text1" android:layout_width="fill_parent"
  6. android:layout_height="wrap_content" />
  7. <Button android:id="@+id/button1" android:layout_width="wrap_content"
  8. android:layout_height="wrap_content" android:layout_below="@id/text1"
  9. android:layout_alignParentRight="true" android:layout_marginLeft="10px"
  10. android:text="click" />
  11. <EditText android:id="@+id/text2" android:layout_width="fill_parent"
  12. android:layout_height="wrap_content" android:layout_below="@id/button1" />
  13. <Button android:id="@+id/button2" android:layout_width="wrap_content"
  14. android:layout_height="wrap_content" android:layout_below="@id/text2"
  15. android:layout_alignParentRight="true" android:layout_marginLeft="10px"
  16. android:text="click" />
  17. RelativeLayout>

We can now create our java source file. The code refers to main.xml for id of the controls.
(d:\android\mydemos\ex1\demo.java).This is our work folder.

  1. package mypack.mydemos;


  2. import android.app.Activity;
  3. import android.os.Bundle;
  4. import android.view.View;
  5. import android.widget.*;


  6. public class demo extends Activity
  7. {

  8. Button button1,button2;
  9. EditText text1,text2;

  10. @Override

  11. public void onCreate(Bundle icicle)
  12. {
  13. super.onCreate(icicle);
  14. setContentView(R.layout.main);
  15. text1= (EditText) findViewById(R.id.text1);
  16. button1 = (Button) findViewById(R.id.button1);

  17. text2= (EditText) findViewById(R.id.text2);
  18. button2 = (Button) findViewById(R.id.button2);
  19. button1.setOnClickListener(new clicker());
  20. button2.setOnClickListener(new clicker());
  21. }

  22. //-----------------------------------

  23. class clicker implements Button.OnClickListener
  24. {
  25. public void onClick(View v)
  26. {
  27. if(v==button1){text1.setText("welcome"); }
  28. if(v==button2){text2.setText("hello"); }
  29. }

  30. }

  31. }

The Android documentation and sample programs use anonymous inner class. I think it is quite unnecessary and is very tedious to follow. Instead, I have used user-defined 'clicker'. This makes the code cleaner and more readable. This is just like any Swing program. In Android Terminology, an Activity is like a frame in swing (a screen). Just like ActionListener, here also we have, OnClickListener. I am not going into detailed theory now. I just want to show how to develop and run a program first. Theory will follow later.

We have to copy this file(demo.java) to D:\android\tools\demo\src\mypack\mydemos

Go to d:\android\tools\demo

Give path= c:\winNT\system32;c:\jdk1.5\bin;e:\ant1.6\bin

(carefully note that this will not work with jdk1.4.2. It requires jdk1.5).

Secondly, how about the reference to Ant? Ant is a famous build tool from Apache Software foundation. Android requires the latest version of Ant for Windows(ie) Ant1.6. Do I have to know how to write the Ant's build.xml file? NO. It is automatically created by the command.

So, I downloaded ant1.6 from the Apache website. It is a compact zip file. I have unzipped it and placed it as E:\ant1.6). Now use the command 'ant'

d:\android\tools\demo>ant

We will get a series of messages. If we had done the previous steps correctly, we will get the message 'BUILD SUCCESSFUL". Otherwise, we will get error messages, with line numbers where the errors occurred. We can correct them and build again.

The build process would have created a zip file named 'demo.apk' in demo\bin folder. All that remains now is to run the program in the emulator. As you remember, we have already started the emulator and it is running.

Now copy d:\android\tools\demo\bin\demo.apk to d:\android\tools. After copying, give the command as:

...\tools>adb install demo.apk

After giving this command. go to the emulator window. You will find a checkpattern displayed for a while. Then an additional button appears in the screen with caption 'demo'. Our program has been installed. We can test it by clicking on this 'demo'button.


You can execute the program 'demo' now. Two textboxes and two buttons will appear. Click on button1. 'welcome' will appear in text1. Click on button2.'how are you?' will appear in text2. The result is shown below.

That completes our first demo in android.

We will be following exactly same procedure for all our demos. We will hereafter, see xml file and java files only, for the various demos. After a few more demos, it will be enough if I give the imports, declaration, definition and event handler.

The Android SDK comes with a number of sample applications. Within the APIDemos folder, we have a folder named 'Views'. I read it as 'GUI'. It deals with layouts and controls and animations etc. There are a lot of demos. It may be confusing at first. Though, we may like to modify and simplify the code later, it is instructive to try each one of the sample programs by clicking on 'apidemos' button in the emulator screen and getting familiarity . I will list and give a brief comment on these, later.

Demo 2 - Spinner

As usual, the standard widgets are label(textview), textbox(edittext), combo(spinner), check, radio, ticker etc. I will now give a demo for spinner. I have provided a spinner, button and a text to display the selected item in edittext.

We can design our layout as before using DroidDraw and get the following main.xml.

(obtained by using DroidDraw).

  1. xml version="1.0" encoding="utf-8"?>
  2. <AbsoluteLayout android:id="@+id/widget0"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. xmlns:android="http://schemas.android.com/ apk/res/android">
  6. <Spinner android:id="@+id/spinner1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_x="70px" android:layout_y="42px">
  7. Spinner>
  8. <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="confirm" android:layout_x="70px" android:layout_y="112px"> Button>
  9. <EditText android:id="@+id/text1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="EditText" android:textSize="18sp" android:layout_x="70px" android:layout_y="182px">
  10. EditText>
  11. AbsoluteLayout>

The corresponding java source file is given below.

  1. package mypack.mydemos;

  2. import android.app.Activity;
  3. import android.os.Bundle;
  4. import android.widget.*;
  5. import android.view.View;

  6. public class demo extends Activity
  7. {
  8. Spinner spinner1;
  9. Button button1;
  10. EditText text1;

  11. @Override
  12. protected void onCreate(Bundle icicle)

  13. {
  14. super.onCreate(icicle);
  15. setTheme(android.R.style.Theme_Dark);
  16. setContentView(R.layout.main);
  17. spinner1 = (Spinner)
  18. findViewById (R.id.spinner1);
  19. button1 = (Button);
  20. findViewById (R.id.button1);
  21. text1 = (EditText)
  22. findViewById (R.id.text1);
  23. ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item, array);
  24. adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_ item);
  25. spinner1.setAdapter(adapter);
  26. button1.setOnClickListener( new clicker());
  27. }

  28. private static final String[] array = { "sunday", "monday", "tuesday", "wednesday",
  29. "thursday", "friday", "saturday" };

  30. class clicker implements Button.OnClickListener

  31. {
  32. public void onClick(View v)
  33. {
  34. String s = (String) spinner1.getSelectedItem();
  35. text1.setText(s);
  36. }

  37. }


  38. }

As before place demo.java in d:\android\tools\demo\src\mypack\mydemos. Place main.xml in d:\android\tools\demo\res\layout

Build using ant. Deploy demo.apk to the emulator exactly as in previous demo. The original demo gets overwritten. But, our work folder , where we have our xml and java files is d:\android\mydemos\ex1.They are intact. So, no problem..The current java and xml files are in d:\android\mydemos\ex2.

When we click on the spinner, we get the items displayed as drop-down. We select an item and confirm. The selected item appears in text1. I am not going to explain the code. It is simple enough, if we remember our core java.

Demo 3 - Ticker

The third demo is a 'ticker' having a textbox for entering the ticker's text, a ticker(timer) , two labels(editview) one for status and the other for diplaying the sliding message.

  1. <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android
  2. android:layout_width="fill_parent"
  3. android:layout_height="fill_parent"
  4. android:orientation="vertical">
  5. <EditText android:id="@+id/text1"
  6. android:layout_width="fill_parent"
  7. android:layout_height="wrap_content" />
  8. <Ticker android:id="@+id/ticker1"
  9. android:layout_width="fill_parent"
  10. android:layout_height="wrap_content"
  11. android:layout_marginTop="20dip" />
  12. <TextView android:id="@+id/label1"
  13. android:layout_width="wrap_content"
  14. android:layout_height="fill_parent" />
  15. Ticker>
  16. <TextView android:id="@+id/label2"
  17. android:layout_width="fill_parent"
  18. android:layout_height="wrap_content"
  19. android:layout_marginTop="20dip" />
  20. LinearLayout>

LinearLayout with vertical orientation is like FlowLayout but in a vertical direction.

  1. package mypack.mydemos;

  2. import android.app.Activity;
  3. import android.os.Handler;
  4. import android.os.Bundle;
  5. import android.view.View;
  6. import android.view.View.OnClickListener;
  7. import android.widget.*;
  8. import java.util.Map;

  9. public class demo extends Activity

  10. implements Ticker.TickerListener {
  11. Ticker ticker1;
  12. TextView label1, label2;
  13. EditText text1;

  14. @Override
  15. protected void onCreate(Bundle icicle) {
  16. super.onCreate(icicle);
  17. setContentView(R.layout.main);
  18. ticker1 = (Ticker) findViewById(R.id.ticker1);
  19. label1 = (TextView) findViewById(R.id.label1);
  20. label2 = (TextView) findViewById(R.id.label2);
  21. text1 = (EditText) findViewById(R.id.text1);
  22. ticker1.setTickerListener(this);
  23. text1.setOnClickListener(new clicker());
  24. }

  25. class clicker implements EditText.OnClickListener {
  26. public void onClick(View v) {

  27. label1.setText(text1.getText());
  28. ticker1.startTicker();
  29. label2.setText("Ticking...");
  30. }
  31. }

  32. public void onTickerFinished(Ticker view) {
  33. label2.setText("Done!");
  34. }

  35. }

Demo 4 - Checkbox

Copy this to tools\demo\res\layout\

  1. xml version="1.0" encoding="utf-8"?>
  2. <AbsoluteLayout android:id="@+id/widget1"
  3. android:layout_width="fill_parent" android:layout_height="fill_parent"
  4. xmlns:android="http://schemas.android.com/ apk/res/android">
  5. <CheckBox android:id="@+id/check1"
  6. android:layout_width="wrap_content"
  7. android:layout_height="wrap_content" android:text="java"
  8. android:layout_x="50px" android:layout_y="22px">
  9. CheckBox>

  10. <CheckBox android:id="@+id/check2"
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content" android:text="C#"
  13. android:layout_x="50px" android:layout_y="72px">
  14. CheckBox>

  15. <Button android:id="@+id/button1"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content" android:text="Confirm"
  18. android:layout_x="60px" android:layout_y="122px">
  19. Button>

  20. <EditText android:id="@+id/text1"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content" android:text="EditText"
  23. android:textSize="18sp" android:layout_x="60px"
  24. android:layout_y="202px">
  25. EditText>
  26. AbsoluteLayout>

To be copied to tools\demo\mypack\mydemos

  1. package mypack.mydemos;

  2. import android.app.Activity;
  3. import android.os.Bundle;
  4. import android.view.View;
  5. import android.widget.*;

  6. public class demo extends Activity

  7. {

  8. Button button1;
  9. CheckBox check1, check2;
  10. EditText text1;

  11. @Override
  12. public void onCreate(Bundle icicle)

  13. {
  14. super.onCreate(icicle);
  15. setContentView(R.layout.main);
  16. text1 = (EditText) this.findViewById(R.id.text1);
  17. check1 = (CheckBox) findViewById(R.id.check1);
  18. check2 = (CheckBox) findViewById(R.id.check2);

  19. button1 = (Button) findViewById(R.id.button1);
  20. button1.setOnClickListener(new clicker());

  21. }

  22. class clicker implements Button.OnClickListener

  23. {
  24. public void onClick(View v)

  25. {

  26. String r = "";
  27. if (check1.isChecked())
  28. {
  29. r = r + "java" + "\n";
  30. }
  31. if (check2.isChecked())
  32. {
  33. r = r + "c#";
  34. }
  35. text1.setText(r);
  36. }

  37. }

  38. }

This is just the usual Java code and needs very little explanation. The only difference is the way , the controls are defined ( through res\layout\xml file).

Demo 5 - RadioButtons

The next standard control is the RadioButton, within a RadioGroup.

To be placed in tools\demo\res\layout

  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. android:orientation="vertical" android:layout_width="fill_parent"
  3. android:layout_height="wrap_content">
  4. <RadioGroup android:id="@+id/group1" android:layout_width="fill_parent"
  5. android:layout_height="wrap_content" android:orientation="vertical">
  6. <RadioButton android:id="@+id/radio1" android:text="madras"
  7. android:layout_width="wrap_content" android:layout_height="wrap_content" />
  8. <RadioButton android:id="@+id/radio2" android:text="bombay"
  9. android:layout_width="wrap_content" android:layout_height="wrap_content" />
  10. RadioGroup>
  11. <Button android:id="@+id/button1" android:layout_width="wrap_content"
  12. android:layout_height="wrap_content" android:text="Button" />
  13. <TextView android:id="@+id/label1" android:layout_width="wrap_content"
  14. android:layout_height="wrap_content" android:text="where" />
  15. <EditText android:id="@+id/text1" android:layout_width="wrap_content"
  16. android:layout_height="wrap_content" android:text="" android:textSize="18sp"
  17. android:layout_x="70px" android:layout_y="182px" />
  18. LinearLayout>

The following Java code should be placed in tools\demo\src\mypack\mydemo

  1. package mypack.mydemos;

  2. import android.app.Activity;

  3. import android.os.Bundle;

  4. import android.view.View;

  5. import android.widget.*;

  6. public class demo extends Activity

  7. {

  8. TextView label1;

  9. RadioGroup group1;

  10. RadioButton radio1, radio2;

  11. Button button1;

  12. EditText text1;

  13. @Override
  14. protected void onCreate(Bundle icicle)

  15. {

  16. super.onCreate(icicle);

  17. setContentView(R.layout.main);

  18. group1 = (RadioGroup)

  19. findViewById(R.id.group1);

  20. radio1 = (RadioButton)

  21. findViewById(R.id.radio1);

  22. radio2 = (RadioButton)

  23. findViewById(R.id.radio2);

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

  25. text1 = (EditText) findViewById(R.id.text1);

  26. text1.setText("radio");

  27. label1 = (TextView) findViewById(R.id.label1);

  28. label1.setText("where?");

  29. button1.setOnClickListener(new clicker());

  30. }

  31. // ...inner class ---follows ->

  32. class clicker implements Button.OnClickListener

  33. {

  34. public void onClick(View v)

  35. {

  36. if (v == button1)

  37. {

  38. if (radio1.isChecked())

  39. {
  40. text1.setText("madras");
  41. }

  42. if (radio2.isChecked())

  43. {
  44. text1.setText("bombay");
  45. }

  46. }

  47. }

  48. }

  49. // ----inner class ends here ---

  50. }

You would have observed that I am naming all my java files as 'demo.java'. May be confusing at first but I am doing so with a purpose. First of all, the emulator screen gets cluttered with too many buttons if we go on adding my examples. What I have done is :

I have created a folder as d:\android\mydemos.

In mydemos folder, I have created subfolders such as (ex1,ex2 etc). But, within each folder, I have demo.java & main.xml.

This way, we can easily test each of our demos by uniform procedure. In my system, I had the problem of insufficient memory. And, by the above step, I was able to test all my programs by the same name.

Here is an important tip however, if you choose to name the source files and xml files differently and want to reduce the clutter.

Demo 6 - Gallery

Interestingly, there is a ready-made control in the toolbox, named 'gallery'. Let us now learn to use this control, though the syntax is a bit difficult. This time, we will need demo.java, main.xml and also another folder in tools\demo\res\drawable. This special folder is to be created by us. You can read 'img' instead of 'drawable'. So, we place all the image files to be displayed in the gallery, in this folder.

Let us as usual create the xml file by using DroidDraw as follows.

  1. xml version="1.0" encoding="utf-8"?>
  2. <Gallery xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/gallery" android:layout_width="fill_parent"
  4. android:layout_height="fill_parent" android:layout_alignParentBottom="true"
  5. android:layout_alignParentLeft="true" android:gravity="center_vertical"
  6. android:spacing="5" />

The following class is to be placed in tools\demo\mypack\mydemos

  1. package mypack.mydemos;

  2. import android.app.Activity;
  3. import android.content.Context;
  4. import android.os.Bundle;
  5. import android.view.View;
  6. import android.view.ViewGroup;
  7. import android.widget.*;
  8. import android.widget.AdapterView.OnItemClickListener;

  9. public class example extends Activity

  10. {

  11. @Override
  12. public void onCreate(Bundle icicle) {

  13. super.onCreate(icicle);
  14. setContentView(R.layout.main);
  15. Gallery gallery = (Gallery)
  16. findViewById(R.id.gallery);
  17. gallery.setAdapter(new ImageAdapter(this));
  18. gallery.setOnItemClickListener(new OnItemClickListener()
  19. {

  20. public void onItemClick(AdapterView parent,
  21. View v,
  22. int position,
  23. long id)

  24. {

  25. Toast.makeText(example.this, "" + position,
  26. Toast.LENGTH_SHORT).show();
  27. }

  28. });

  29. }

  30. public class ImageAdapter extends BaseAdapter
  31. {

  32. public ImageAdapter(Context c)
  33. {
  34. mContext = c;
  35. }

  36. public int getCount()
  37. {
  38. return mImageIds.length;
  39. }

  40. public Object getItem(int position)
  41. {
  42. return position;
  43. }

  44. public long getItemId(int position)
  45. {
  46. return position;
  47. }

  48. public View getView(int position, View
  49. convertView, ViewGroup parent)
  50. {
  51. ImageView i = new ImageView(mContext);
  52. i.setImageResource(mImageIds[position]);
  53. i.setScaleType(ImageView.ScaleType.FIT_XY);
  54. i.setLayoutParams(new Gallery.LayoutParams(160, 200));
  55. return i;
  56. }

  57. public float getAlpha(boolean focused, int offset)
  58. {
  59. return Math.max(0, 1.0f - (0.2f * Math.abs(offset)));
  60. }

  61. public float getScale(boolean focused, int offset)
  62. {
  63. return Math.max(0, 1.0f - (0.2f *
  64. Math.abs(offset)));
  65. }
  66. private Context mContext;
  67. private Integer[] mImageIds = {
  68. R.drawable.cindy,
  69. R.drawable.clinton,
  70. R.drawable.ford,
  71. R.drawable.cybil,
  72. R.drawable.demi,
  73. R.drawable.colin,
  74. R.drawable.david,
  75. R.drawable.drew
  76. };

  77. }

  78. }

How to uninstall an application from the emulator?

  • Make sure your emulator is running
  • Open a dos box in the android/tools folder d:\android\tools>adb shell
  • You will get the shell prompt
    #cd /data/app
    #ls
    (It will list all the *.apk installed in your emulator)
    # rm example.apk
    ( if you want to remove 'example')
    #exit
  • You will see the application getting removed from the emulator at the same moment

That completes the first part of my introductory tutorial on Android SDK.

0 comments:

Post a Comment