• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

http connection problem

 
Regie Mon Averion
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a code below, this will be triggered when i press a button



I got this from a tutorial video and i was trying it out but i couldn't make it work
It will get the html code of a website then it will be copied into textview

Below is the error I get when I press the button

10-30 00:40:19.465: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
10-30 00:40:19.465: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
10-30 00:40:19.474: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
10-30 00:40:19.474: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
10-30 00:40:19.474: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
10-30 00:40:19.474: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
10-30 00:40:19.485: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
10-30 00:40:19.485: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
10-30 00:40:19.485: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
10-30 00:40:19.485: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
10-30 00:40:19.485: E/SoundPool(288): error loading /system/media/audio/ui/KeypressStandard.ogg
10-30 00:40:19.495: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
10-30 00:40:19.505: E/SoundPool(288): error loading /system/media/audio/ui/KeypressSpacebar.ogg
10-30 00:40:19.505: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
10-30 00:40:19.525: E/SoundPool(288): error loading /system/media/audio/ui/KeypressDelete.ogg
10-30 00:40:19.535: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
10-30 00:40:19.535: E/SoundPool(288): error loading /system/media/audio/ui/KeypressReturn.ogg
10-30 00:40:19.535: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
10-30 00:40:19.545: W/AudioService(288): onLoadSoundEffects(), Error -1 while loading samples
10-30 00:40:19.575: I/Choreographer(822): Skipped 36 frames! The application may be doing too much work on its main thread.

I'm new to java so I don't know what to do.

I already added the permission of internet.


 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hm, those messages don't seem related to the code at hand, and seem to originate elsewhere. Is this in the emulator or on an actual device?

Seeing an SSCCE (<-- that's a link) that demonstrates the issue (the layout file and the Activity code) would help.
 
Regie Mon Averion
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using http://developer.android.com/sdk/index.html and using the emulator.
 
Regie Mon Averion
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Get all the errors when I start the emulator

10-30 20:36:26.092: E/SurfaceFlinger(36): hwcomposer module not found
10-30 20:36:26.092: E/cutils-trace(36): Error opening trace file: No such file or directory (2)
10-30 20:36:27.081: E/SurfaceFlinger(36): ro.sf.lcd_density must be defined as a build property
10-30 20:36:27.391: E/cutils-trace(78): Error opening trace file: No such file or directory (2)
10-30 20:36:32.661: E/cutils-trace(37): Error opening trace file: No such file or directory (2)
10-30 20:36:36.511: E/logwrapper(225): executing /system/bin/ip failed: No such file or directory
10-30 20:36:36.540: E/logwrapper(226): executing /system/bin/ip failed: No such file or directory
10-30 20:36:36.590: E/logwrapper(227): executing /system/bin/ip failed: No such file or directory
10-30 20:36:36.620: E/logwrapper(228): executing /system/bin/ip failed: No such file or directory
10-30 20:36:36.670: E/logwrapper(229): executing /system/bin/ip failed: No such file or directory
10-30 20:36:36.681: E/logwrapper(230): executing /system/bin/ip failed: No such file or directory
10-30 20:36:36.700: E/logwrapper(231): executing /system/bin/ip failed: No such file or directory
10-30 20:36:39.110: E/BandwidthController(33): runIptablesCmd(): res=1 status=256 failed /system/bin/iptables -A bw_INPUT -m owner --socket-exists
10-30 20:36:39.180: E/BandwidthController(33): runIptablesCmd(): res=1 status=256 failed /system/bin/ip6tables -A bw_INPUT -m owner --socket-exists
10-30 20:36:39.180: E/Netd(33): Unable to bind netlink socket: No such file or directory
10-30 20:36:39.180: E/Netd(33): Unable to open quota2 logging socket
10-30 20:36:56.101: E/PowerManagerService-JNI(288): Couldn't load power module (No such file or directory)
10-30 20:36:56.801: E/SurfaceFlinger(36): ro.sf.lcd_density must be defined as a build property
10-30 20:37:04.970: E/SoundPool(288): error loading /system/media/audio/ui/Lock.ogg
10-30 20:37:04.970: E/SoundPool(288): error loading /system/media/audio/ui/Unlock.ogg
10-30 20:37:05.500: E/EventHub(288): could not get driver version for /dev/input/mouse0, Not a typewriter
10-30 20:37:05.500: E/EventHub(288): could not get driver version for /dev/input/mice, Not a typewriter
10-30 20:37:07.700: E/MobileDataStateTracker(288): default: Ignoring feature request because could not acquire PhoneService
10-30 20:37:07.700: E/MobileDataStateTracker(288): default: Could not enable APN type "default"
10-30 20:37:13.540: E/LocationManagerService(288): no geocoder provider found
10-30 20:37:13.600: E/LocationManagerService(288): no geofence provider found
10-30 20:37:17.341: E/BluetoothAdapter(387): Bluetooth binder is null
10-30 20:37:19.821: E/BluetoothAdapter(347): Bluetooth binder is null
10-30 20:37:19.821: E/BluetoothAdapter(347): Bluetooth binder is null
10-30 20:37:20.631: E/BluetoothAdapter(347): Bluetooth binder is null
10-30 20:37:22.551: E/BluetoothAdapter(387): Bluetooth binder is null
10-30 20:37:23.820: E/BluetoothAdapter(398): Bluetooth binder is null
10-30 20:37:26.270: E/BluetoothAdapter(347): Bluetooth binder is null
10-30 20:37:27.840: E/BluetoothAdapter(398): Bluetooth binder is null
10-30 20:37:29.121: E/BluetoothAdapter(288): Bluetooth binder is null
10-30 20:37:29.130: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
10-30 20:37:29.200: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
10-30 20:37:29.270: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
10-30 20:37:29.270: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
10-30 20:37:29.340: E/BluetoothAdapter(288): Bluetooth binder is null
10-30 20:37:29.450: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
10-30 20:37:29.480: E/SoundPool(288): error loading /system/media/audio/ui/KeypressStandard.ogg
10-30 20:37:29.650: E/SoundPool(288): error loading /system/media/audio/ui/KeypressSpacebar.ogg
10-30 20:37:29.710: E/SoundPool(288): error loading /system/media/audio/ui/KeypressDelete.ogg
10-30 20:37:29.710: E/SoundPool(288): error loading /system/media/audio/ui/KeypressReturn.ogg
10-30 20:37:35.751: E/BluetoothAdapter(347): Bluetooth binder is null
10-30 20:37:44.421: E/ActivityManager(288): ANR in com.android.systemui
10-30 20:37:44.421: E/ActivityManager(288): Reason: Executing service com.android.systemui/.SystemUIService
10-30 20:37:44.421: E/ActivityManager(288): Load: 5.43 / 1.5 / 0.51
10-30 20:37:44.421: E/ActivityManager(288): CPU usage from 3884ms to -12119ms ago:
10-30 20:37:44.421: E/ActivityManager(288): 27% 288/system_server: 18% user + 8.5% kernel / faults: 3577 minor 3 major
10-30 20:37:44.421: E/ActivityManager(288): 25% 36/surfaceflinger: 22% user + 3.3% kernel / faults: 374 minor
10-30 20:37:44.421: E/ActivityManager(288): 10% 461/android.process.acore: 6% user + 4.1% kernel / faults: 2626 minor 11 major
10-30 20:37:44.421: E/ActivityManager(288): 7.1% 417/com.android.launcher: 5.3% user + 1.8% kernel / faults: 1641 minor 4 major
10-30 20:37:44.421: E/ActivityManager(288): 6.9% 398/com.android.phone: 4.7% user + 2.1% kernel / faults: 1368 minor 3 major
10-30 20:37:44.421: E/ActivityManager(288): 6.3% 347/com.android.systemui: 4.1% user + 2.1% kernel / faults: 1356 minor 3 major
10-30 20:37:44.421: E/ActivityManager(288): 4.3% 78/bootanimation: 3.5% user + 0.8% kernel
10-30 20:37:44.421: E/ActivityManager(288): 3.7% 493/android.process.media: 1.6% user + 2.1% kernel / faults: 2616 minor 15 major
10-30 20:37:44.421: E/ActivityManager(288): 1.6% 37/zygote: 1.5% user + 0.1% kernel / faults: 135 minor
10-30 20:37:44.421: E/ActivityManager(288): 1.4% 46/adbd: 0.1% user + 1.2% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.7% 482/app_process: 0.6% user + 0.1% kernel / faults: 251 minor
10-30 20:37:44.421: E/ActivityManager(288): 0.1% 30/servicemanager: 0% user + 0.1% kernel / faults: 6 minor
10-30 20:37:44.421: E/ActivityManager(288): 0.2% 39/mediaserver: 0% user + 0.1% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.2% 374/com.android.inputmethod.latin: 0.1% user + 0% kernel / faults: 81 minor 1 major
10-30 20:37:44.421: E/ActivityManager(288): 0.2% 449/com.android.music: 0% user + 0.1% kernel / faults: 186 minor
10-30 20:37:44.421: E/ActivityManager(288): 0.1% 286/logcat: 0.1% user + 0% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0% 35/rild: 0% user + 0% kernel / faults: 8 minor
10-30 20:37:44.421: E/ActivityManager(288): 0% 1//init: 0% user + 0% kernel / faults: 9 minor
10-30 20:37:44.421: E/ActivityManager(288): +0% 513/com.android.defcontainer: 0% user + 0% kernel
10-30 20:37:44.421: E/ActivityManager(288): 100% TOTAL: 71% user + 28% kernel + 0.4% softirq
10-30 20:37:44.421: E/ActivityManager(288): CPU usage from 9987ms to 11690ms later:
10-30 20:37:44.421: E/ActivityManager(288): 30% 36/surfaceflinger: 25% user + 4.8% kernel / faults: 46 minor
10-30 20:37:44.421: E/ActivityManager(288): 24% 66/SurfaceFlinger: 21% user + 2.4% kernel
10-30 20:37:44.421: E/ActivityManager(288): 1.2% 76/EventThread: 0% user + 1.2% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.6% 36/Binder_2: 0.6% user + 0% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.6% 74/VSyncThread: 0% user + 0.6% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.6% 117/Binder_3: 0% user + 0.6% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.6% 498/Binder_4: 0.6% user + 0% kernel
10-30 20:37:44.421: E/ActivityManager(288): 27% 288/system_server: 17% user + 10% kernel / faults: 182 minor
10-30 20:37:44.421: E/ActivityManager(288): 6.4% 295/Compiler: 4.2% user + 2.1% kernel
10-30 20:37:44.421: E/ActivityManager(288): 6.4% 305/ActivityManager: 1.4% user + 5% kernel
10-30 20:37:44.421: E/ActivityManager(288): 5.7% 303/UI: 5% user + 0.7% kernel
10-30 20:37:44.421: E/ActivityManager(288): 1.4% 304/WindowManager: 0.7% user + 0.7% kernel
10-30 20:37:44.421: E/ActivityManager(288): 1.4% 443/Binder_7: 1.4% user + 0% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.7% 288/system_server: 0.7% user + 0% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.7% 300/Binder_2: 0.7% user + 0% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.7% 301/SensorService: 0% user + 0.7% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.7% 433/Binder_5: 0.7% user + 0% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.7% 527/Binder_8: 0% user + 0.7% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.7% 531/Binder_A: 0.7% user + 0% kernel
10-30 20:37:44.421: E/ActivityManager(288): 21% 398/com.android.phone: 14% user + 6.4% kernel / faults: 245 minor 2 major
10-30 20:37:44.421: E/ActivityManager(288): 9.1% 398/m.android.phone: 7.3% user + 1.8% kernel
10-30 20:37:44.421: E/ActivityManager(288): 6.4% 410/Compiler: 2.7% user + 3.6% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.9% 405/GC: 0% user + 0.9% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.9% 444/RILReceiver: 0.9% user + 0% kernel
10-30 20:37:44.421: E/ActivityManager(288): 12% 347/com.android.systemui: 11% user + 1.7% kernel / faults: 215 minor
10-30 20:37:44.421: E/ActivityManager(288): 9.4% 347/ndroid.systemui: 8.6% user + 0.8% kernel
10-30 20:37:44.421: E/ActivityManager(288): 0.8% 356/Compiler: 0.8% user + 0% kernel
10-30 20:37:44.421: E/ActivityManager(288): 3.9% 78/bootanimation: 3.3% user + 0.6% kernel
10-30 20:37:44.421: E/ActivityManager(288): 3.9% 88/BootAnimation: 3.3% user + 0.6% kernel
10-30 20:37:44.421: E/ActivityManager(288): 100% TOTAL: 74% user + 25% kernel
10-30 20:37:48.401: E/JavaBinder(288): !!! FAILED BINDER TRANSACTION !!!
10-30 20:37:48.541: E/JavaBinder(288): !!! FAILED BINDER TRANSACTION !!!
10-30 20:37:48.871: E/JavaBinder(288): !!! FAILED BINDER TRANSACTION !!!
10-30 20:37:48.961: E/JavaBinder(288): !!! FAILED BINDER TRANSACTION !!!
10-30 20:37:48.970: E/JavaBinder(288): !!! FAILED BINDER TRANSACTION !!!
10-30 20:37:49.021: E/JavaBinder(288): !!! FAILED BINDER TRANSACTION !!!
10-30 20:37:49.091: E/JavaBinder(288): !!! FAILED BINDER TRANSACTION !!!
10-30 20:37:49.121: E/JavaBinder(288): !!! FAILED BINDER TRANSACTION !!!
10-30 20:37:57.060: E/BluetoothAdapter(563): Bluetooth binder is null
10-30 20:37:57.070: E/BluetoothAdapter(563): Bluetooth binder is null
10-30 20:37:57.460: E/BluetoothAdapter(563): Bluetooth binder is null
10-30 20:37:59.140: E/BluetoothAdapter(563): Bluetooth binder is null
10-30 20:38:00.731: E/BluetoothAdapter(563): Bluetooth binder is null
10-30 20:38:08.920: E/logwrapper(698): executing /system/bin/ip failed: No such file or directory
10-30 20:38:08.974: E/SecondaryTablController(33): ip route add failed: /system/bin/ip route add 10.0.2.2/32 via 0.0.0.0 dev eth0 table 60
10-30 20:38:08.992: E/ConnectivityService(288): Exception trying to add a route: java.lang.IllegalStateException: command '13 interface route add eth0 secondary 10.0.2.2 32 0.0.0.0' failed with '400 13 ip route modification failed (No such device)'
10-30 20:38:09.011: E/logwrapper(699): executing /system/bin/ip failed: No such file or directory
10-30 20:38:09.030: E/SecondaryTablController(33): ip route add failed: /system/bin/ip route add 0.0.0.0/0 via 10.0.2.2 dev eth0 table 60
10-30 20:38:09.051: E/ConnectivityService(288): Exception trying to add a route: java.lang.IllegalStateException: command '14 interface route add eth0 secondary 0.0.0.0 0 10.0.2.2' failed with '400 14 ip route modification failed (No such device)'
10-30 20:38:09.121: E/ConnectivityService(288): startUsingNetworkFeature took too long: 8050ms
10-30 20:38:10.431: E/BluetoothAdapter(387): Bluetooth binder is null
10-30 20:38:10.511: E/BluetoothAdapter(387): Bluetooth binder is null
10-30 20:38:11.901: E/SQLiteLog(621): (1) no such table: Account
10-30 20:38:27.193: E/cutils-trace(790): Error opening trace file: No such file or directory (2)
10-30 20:38:59.872: E/logwrapper(820): executing /system/bin/ip failed: No such file or directory
10-30 20:38:59.912: E/SecondaryTablController(33): ip route del failed: /system/bin/ip route del 10.0.2.2/32 via 0.0.0.0 dev eth0 table 60
10-30 20:38:59.932: E/logwrapper(821): executing /system/bin/ip failed: No such file or directory
10-30 20:38:59.942: E/SecondaryTablController(33): ip route del failed: /system/bin/ip route del 0.0.0.0/0 via 10.0.2.2 dev eth0 table 60
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the emulator have network connectivity at all? Can you use its browser to access www.google.com?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic