Uninstall from emulator doesn't work I'm doing my first steps with Android. I'm using a Mac, and no Eclipse.

I've installed my first toy application with 

adb install bin/*.apk

and verified that it existed in the emulator. Then I made some changes, reran the build, and tried to install again, which brought the error message

   pkg: /data/local/tmp/DefaultActivity-debug.apk


Failure [INSTALL_FAILED_ALREADY_EXISTS]

Fine, so I have to uninstall first. So I tried the following:

adb uninstall DefaultActivity
adb uninstall de.rf.DefaultActivity
adb uninstall DefaultActivity-debug
adb uninstall /data/local/tmp/DefaultActivity-debug.apk
adb uninstall de.rf

but all of them just brought the error message "Failure", with no further explanation.

It's not a really big problem, because I can simply restart the emulator and use "adb install ....", but I'm curious: How do I correctly use the "uninstall" command?

My activity looks like this:

package de.rf;
...
public class DefaultActivity extends Activity
{
  ...
}
You don't have to uninstall, when you install an app already installed, you have to use adb install -r. (for more help, juste type adb)

To uninstall an app, you have to use adb uninstall package-name (e.g. adb uninstall com.example.app).