Android Debug Bridge (adb) is a client-server program with (adb) client and (adb) server components running on the development machine and a daemon process running on the emulator or device. Chances are that if the communication between any of the components fails or takes longer, a timeout migth be flagged. Causing a cancellation of app activity.
Solution (Eclipse IDE)
- Select & Right Click on Android Project
- Run Configurations
- Go to tab Target
- Enable option Wipe User Data on Emulator launch parameters
- Run Application
If you are using other IDE, you can restart your emulator using -wipe-data flag to delete all the temporary files that the emulator created in previous runs.
Labels: android, bug, emulator