Android App Troubleshooting: The Emulator Stalls during Start-Up - dummies

Android App Troubleshooting: The Emulator Stalls during Start-Up

By Barry Burd

When trying to run your Android program, if, after five minutes or so, you don’t see the Device Locked screen or the Android Home screen, try these solutions:

  • Close the emulator and launch the application again. (Or lather, rinse, repeat.)

    Sometimes, the second or third time’s a charm. On rare occasions, the first three attempts fail but the fourth attempt succeeds.

  • Start the emulator independently.

    That is, start the emulator without trying to run an Android project. Follow these four steps:

    1. From the Eclipse main menu, choose Window→Android Virtual Device Manager.

      The Android Virtual Device Manager window opens. It contains a list of AVDs that you’ve already created.

    2. In the Android Virtual Device Manager, select the AVD that you want to start.

    3. On the right side of the Android Virtual Device Manager, click Start.

      As a result, Eclipse displays the Launch Options dialog box.

    4. In the Launch Options dialog box, click Launch.

      In other words, accept the default options and fire up the emulator.

    When, at last, you see the new emulator’s Device Locked screen or Home screen, follow the steps you took when you ran your project for the first time.

    If these tricks don’t work to start the Android emulator, visit the Java Programming for Android Developers for Dummies web page for more strategies to try.

  • Run the app on a phone, a tablet, or another real Android device.

    Testing a brand-new app on a real device can be nerve wracking. But the Android sandbox is fairly safe for apps to play in. Besides, apps load quickly and easily on phones and tablets.