sql
php
c
xml
ajax
python
mysql
linux
ruby-on-rails
regex
visual-studio
eclipse
flash
html5
facebook
oracle
cocoa
tsql
apache
postgresql
So assuming your JBoss server is running on the same PC as your emulator, here are a few things you can check:
First off, make sure you have the Internet permission set in your AndroidManifest.xml as Thinksteep pointed out:
Internet
AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
Secondly, try changing the IP address in:
URL url = new URL("http://192.168.56.1:8080/hello");
To:
URL url = new URL("http://10.0.2.2:8080/hello");
Details here. Essentially what this is doing is that assuming you have your JBoss serving off localhost on your development machine (i.e. serving off 127.0.0.1), your emulator should be able to connect via this special IP address.
localhost
127.0.0.1