Search code examples
androidcssdebuggingremote-debuggingweinre

Weinre does not find any target


Sorry for the newbie question, but I spent the whole day trying to figure out why the target list remains empty.

This is what I've done so far:

  • Launched the Weinre host, bounded to my desktop ip adress (192.168.0.38)
  • Checked it on Chrome : the host is bounded to 192.68.0.38:8080
  • Checked that the device is able to access to 192.168.0.38:8080/target/target-script-min.js#anonymous
  • White-listed both 192.168.0.38:8080 and 192.168.0.38 in config.xml
  • Added the script call in the index.html

Still the target list remains empty when I launch the app on the device from ADT...

What should I do next? Thanks!

___ EDIT

I tried the demo, and it's working! So what makes the difference between calling the script from a demo file, or from the application?


Solution

  • Finally, it's working!

    It seems I only had to wait a little bit after app initalization!??