Emulator not starting, NAND could not write error

by alexmat » Wed, 29 Apr 2009 15:04:39 GMT

Sponsored Links
 I'm running eclipse 3.4, adt 0.9 and sdk 1.5. Just trying to run the
hello world app I get the following:

Automatic Target Mode: launching new emulator with compatible AVD
Launching a new emulator with Virtual Device 'my_avd'
NAND: could not write file /tools/android-sdk-linux_x86-1.5_r1/
platforms/android-1.5/images//system.img, File exists



Other Threads

1. Need Help in Android developement

Hi,android developers
i have created progress bar now i just want to allot time for same(Ex.
and user must able to see the time while running the progress bar.
so how to achieve this?can you please help me.

--Onkar Dhane.
Software Developer
Alphabricks Technology Pvt. Ltd.


2. Custom Drawable in OverlayItem in wrong location

I submitted this question earlier, but it hasn't been posted.  I
thought I'd re-submit it with more information.  This code is using
the Google APIs (level 8).

When I update the OverlayItem to use a custom drawable the Canvas
object seems to draw the pixels in the wrong location.  In this
example I'm trying to draw a circle in Louisiana.  When viewing the
entire map the circle is drawn off the map.  As you zoom into New
Orleans you'll see the circle approach the appropriate latitude and
longitude.  The hot spot seems to be in the correct location, no
matter where the circle is being drawn.

If, in the draw method, the canvas restore method is called the circle
draws in the correct location.

Also If the custom drawable is not used, the icon is drawn in the
correct location.

Below is the code showing this behavior.  I tried adding "setBounds"
and "boundCenterBottom", since other people seemed to indicate that
resolved their problems with drawing in the "wrong location". Though
to be honest I'm not sure why those calls are needed.

public class MapsActivity extends MapActivity
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState)
        MapView mapView = (MapView) findViewById(R.id.mapView);

        // Itemized Overlay
        List<Overlay> mapOverlays = mapView.getOverlays();
        Drawable defaultIcon =
        MyItemizedOverlay itemizedoverlay = new
MyItemizedOverlay(defaultIcon, this);

        // Overlay Item
        GeoPoint pt = new GeoPoint(30000000, -90000000);
        OverlayItem item = new OverlayItem(pt,"New Orleans",

        // Custom Drawable
        CustomDrawable customDrawable = new CustomDrawable(pt,

        boolean showProblem = true;
        if (showProblem)

        // Add item we want to overlay

        // Add overlay

    protected boolean isRouteDisplayed()
        return false;
public class MyItemizedOverlay extends ItemizedOverlay<OverlayItem>
    private ArrayList<OverlayItem> mOverlays = new

    private Context mContext;

    public MyItemizedOverlay(Drawable defaultMarker, Context context)
        mContext = context;

    public void addOverlay(OverlayItem item)

    public void removeOverlay(OverlayItem item)

    public void removeOverlay(int item)

    protected OverlayItem createItem(int i)
        OverlayItem item = mOverlays.get(i);
        Drawable drawable = item.getMarker(0);

        if (drawable != null)
            int w = drawable.getIntrinsicWidth();
            int h = drawable.getIntrinsicHeight();

            drawable.setBounds(0, 0, w, h);


        return item;

    public void draw(android.graphics.Canvas canvas, MapView mapView,
            boolean shadow)
        if (shadow)

        super.draw(canvas, mapView, shadow);

    public int size()
        return mOverlays.size();

    protected boolean onTap(int index)
        OverlayItem item = mOverlays.get(index);
        AlertDialog.Builder dialog = new

        return true;

public class CustomDrawable extends ShapeDrawable
    private int radius = 10;
    private GeoPoint point = null;
    private MapView mapView = null;

    public CustomDrawable(GeoPoint point, MapView mapView)
        this.point  = point;
        this.mapView  = mapView;

    public void draw(Canvas canvas)
        // TODO This (somewhat) fixes projection problem?

        Projection projection = mapView.getProjection();

        Point pt = projection.toPixels(point, null);

        canvas.drawCircle(pt.x, pt.y, radius,

    public int getIntrinsicHeight()
        return 2 * radius;

    public int getIntrinsicWidth()
        return 2 * radius;


3. How to open email in app with address

4. gtab 10 sdhkah keluar?

5. how to change the version of android application

6. Renderscript, YouTube example

7. reflection