Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

No network in android emulator

Ti SDK: 1.3.0
Android: API 2.2

Currently I am not able to access the network from the android emulator (note that I don't have the iphone emu installed in order to compare).

How should I go about resolving this? I have pasted my trace here : http://hals-paste.pastebin.com/EQj8nm9p , which contains a number of errors that may or may not need resolving. Although I have another issue which I will explain in another post, the emulator and apps work as expected in other respects. Any advice is appreciated.

I have searched the Q&A, but have not found any information about this issue, so I hope someone will kindly offer me some help.

Hal

PS. The Q&A formatting syntax for links does not seem to work. If I am doing it wrongly, please advise. Thanks!

— asked June 1st 2010 by Paul Dowsett
  • android
  • emulator
1 Comment
  • What browser were you using for the syntax? It's a popup so if you right-clicked on it, it may not work.

    — commented June 1st 2010 by Don Thorp

1 Answer

  • Accepted Answer

    This is a common problem with the emulator. Occasionally, it boots up in a weird state. It's not a Titanium issue, it's an Android adb issue. It may take a couple of tries, but do the following.

    1. Exit the emulator
    2. From the command line execute: adb kill-server
    3. Wait 5 - 10 seconds then execute: adb start-server

    You should see a message that the adb service is starting. If not, repeat 2-3. In some very rare cases, it's only happened twice all year to me, you'll just need to reboot your machine.

    — answered June 1st 2010 by Don Thorp
    permalink
    1 Comment
    • Thank you for your lightening fast answer Don.
      I tried your suggestion of using kill-server/start-server, but it did not fix it. I deleted the ~/,android folder in my profile, and rebooted, and then started Tidev and launched the app, and this time it worked.
      Thank you once again! :)

      — commented June 1st 2010 by Paul Dowsett
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.