Getting problems while client server connection through HTTPS and TLS with Android


Last Updated:

  1. jasanibarkha

    jasanibarkha New Member This Topic's Starter

    Joined:
    Mar 8, 2010
    Messages:
    1
    Likes Received:
    0
    Hi guys!!

    i'm trying to connect my android client with server using Https via TLS.everything works perfectly fine with HTTP but when i'm trying to connect my android client with server through Https,it gets connected with the server although not able to retrive the String at the client side which i'm writing on server's output stream.

    i'm pasting here my logcat details and client,server source.please help me to resolve this issue as soon as possible as it's urgent.

    here is my emulator's detail log,

    03-08 18:15:26.767: ERROR/mountd(19): could not read initial mass storage state
    03-08 18:15:26.777: INFO/DEBUG(20): debuggerd: Feb 5 2009 15:37:59
    03-08 18:15:27.077: ERROR/flash_image(28): can't find recovery partition
    03-08 18:15:27.777: DEBUG/AndroidRuntime(23): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
    03-08 18:15:27.797: DEBUG/AndroidRuntime(23): CheckJNI is ON
    03-08 18:15:27.877: DEBUG/RILD(22): overriding with -s /dev/socket/qemud_gsm
    03-08 18:15:28.246: DEBUG/AndroidRuntime(23): --- registering native functions ---
    03-08 18:15:28.526: INFO/(24): ServiceManager: 0xaab8
    03-08 18:15:28.545: INFO/AudioFlinger(24): AudioFlinger's main thread ready to run.
    03-08 18:15:28.577: INFO/CameraService(24): CameraService started: pid=24
    03-08 18:15:29.045: INFO/Zygote(23): Preloading classes...
    03-08 18:15:29.055: DEBUG/dalvikvm(23): GC freed 746 objects / 41232 bytes in 11ms
    03-08 18:15:29.167: DEBUG/dalvikvm(23): GC freed 302 objects / 18568 bytes in 5ms
    03-08 18:15:29.237: DEBUG/dalvikvm(23): GC freed 313 objects / 18936 bytes in 5ms
    03-08 18:15:29.337: DEBUG/dalvikvm(23): Trying to load lib /system/lib/libmedia_jni.so 0x0
    03-08 18:15:29.497: DEBUG/dalvikvm(23): Added shared lib /system/lib/libmedia_jni.so 0x0
    03-08 18:15:29.497: DEBUG/dalvikvm(23): Trying to load lib /system/lib/libmedia_jni.so 0x0
    03-08 18:15:29.497: DEBUG/dalvikvm(23): Shared lib '/system/lib/libmedia_jni.so' already loaded in same CL 0x0
    03-08 18:15:29.497: DEBUG/dalvikvm(23): Trying to load lib /system/lib/libmedia_jni.so 0x0
    03-08 18:15:29.497: DEBUG/dalvikvm(23): Shared lib '/system/lib/libmedia_jni.so' already loaded in same CL 0x0
    03-08 18:15:30.167: DEBUG/dalvikvm(23): GC freed 3725 objects / 181800 bytes in 18ms
    03-08 18:15:30.276: DEBUG/dalvikvm(23): GC freed 253 objects / 17216 bytes in 14ms
    03-08 18:15:30.356: DEBUG/dalvikvm(23): GC freed 403 objects / 23720 bytes in 15ms
    03-08 18:15:30.497: DEBUG/dalvikvm(23): GC freed 137 objects / 26664 bytes in 17ms
    03-08 18:15:30.737: DEBUG/dalvikvm(23): GC freed 740 objects / 46568 bytes in 25ms
    03-08 18:15:30.856: DEBUG/dalvikvm(23): GC freed 385 objects / 23912 bytes in 27ms
    03-08 18:15:30.936: DEBUG/dalvikvm(23): Trying to load lib /system/lib/libwebcore.so 0x0
    03-08 18:15:30.997: DEBUG/dalvikvm(23): Added shared lib /system/lib/libwebcore.so 0x0
    03-08 18:15:31.186: DEBUG/dalvikvm(23): GC freed 490 objects / 28192 bytes in 27ms
    03-08 18:15:31.305: DEBUG/dalvikvm(23): GC freed 298 objects / 21040 bytes in 30ms
    03-08 18:15:31.406: DEBUG/dalvikvm(23): GC freed 388 objects / 21072 bytes in 29ms
    03-08 18:15:31.696: DEBUG/dalvikvm(23): GC freed 1799 objects / 93696 bytes in 33ms
    03-08 18:15:31.897: DEBUG/dalvikvm(23): GC freed 611 objects / 45000 bytes in 31ms
    03-08 18:15:33.425: DEBUG/dalvikvm(23): GC freed 14561 objects / 508472 bytes in 59ms
    03-08 18:15:33.836: DEBUG/dalvikvm(23): GC freed 11255 objects / 474600 bytes in 54ms
    03-08 18:15:33.976: DEBUG/SSLSocketFactory(23): Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@40124320
    03-08 18:15:34.015: DEBUG/dalvikvm(23): GC freed 4474 objects / 191072 bytes in 47ms
    03-08 18:15:34.236: DEBUG/dalvikvm(23): GC freed 640 objects / 34288 bytes in 39ms
    03-08 18:15:34.336: DEBUG/dalvikvm(23): GC freed 570 objects / 29824 bytes in 40ms
    03-08 18:15:34.435: DEBUG/dalvikvm(23): GC freed 368 objects / 26208 bytes in 39ms
    03-08 18:15:34.447: INFO/Zygote(23): ...preloaded 854 classes in 5400ms.
    03-08 18:15:34.486: DEBUG/dalvikvm(23): GC freed 43 objects / 2424 bytes in 39ms
    03-08 18:15:34.486: INFO/Zygote(23): Preloading resources...
    03-08 18:15:34.537: DEBUG/dalvikvm(23): GC freed 6 objects / 8928 bytes in 39ms
    03-08 18:15:34.886: DEBUG/dalvikvm(23): GC freed 180 objects / 9312 bytes in 42ms
    03-08 18:15:34.957: DEBUG/dalvikvm(23): GC freed 123 objects / 4936 bytes in 41ms
    03-08 18:15:35.167: INFO/Zygote(23): ...preloaded 42 resources in 679ms.
    03-08 18:15:35.206: DEBUG/dalvikvm(23): GC freed 115 objects / 5496 bytes in 41ms
    03-08 18:15:35.257: DEBUG/dalvikvm(23): GC freed 181 objects / 7400 bytes in 41ms
    03-08 18:15:35.296: DEBUG/dalvikvm(23): GC freed 2 objects / 48 bytes in 42ms
    03-08 18:15:35.306: INFO/dalvikvm(23): Splitting out new zygote heap
    03-08 18:15:35.327: INFO/dalvikvm(23): System server process 46 has been created
    03-08 18:15:35.327: INFO/Zygote(23): Accepting command socket connections
    03-08 18:15:35.436: DEBUG/dalvikvm(46): Trying to load lib /system/lib/libandroid_servers.so 0x0
    03-08 18:15:35.587: DEBUG/dalvikvm(46): Added shared lib /system/lib/libandroid_servers.so 0x0
    03-08 18:15:35.597: INFO/sysproc(46): Entered system_init()
    03-08 18:15:35.606: INFO/sysproc(46): ServiceManager: 0xc8a20
    03-08 18:15:35.606: INFO/SurfaceFlinger(46): SurfaceFlinger is starting
    03-08 18:15:35.606: ERROR/MemoryHeapBase(46): error opening /dev/pmem: No such file or directory
    03-08 18:15:35.606: INFO/SurfaceFlinger(46): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
    03-08 18:15:35.606: ERROR/SurfaceFlinger(46): Couldn't open /sys/android_power/wait_for_fb_sleep or /sys/android_power/wait_for_fb_wake
    03-08 18:15:35.645: ERROR/GLLogger(46): couldn't load <libhgl.so> library (Cannot find library)
    03-08 18:15:35.656: INFO/SurfaceFlinger(46): EGL informations:
    03-08 18:15:35.656: INFO/SurfaceFlinger(46): # of configs : 4
    03-08 18:15:35.656: INFO/SurfaceFlinger(46): vendor : Google Inc.
    03-08 18:15:35.656: INFO/SurfaceFlinger(46): version : 1.2 Android META-EGL
    03-08 18:15:35.656: INFO/SurfaceFlinger(46): extensions: EGL_ANDROID_query_string_config EGL_ANDROID_swap_rectangle
    03-08 18:15:35.656: INFO/SurfaceFlinger(46): ext/config: EGL_ANDROID_swap_rectangle
    03-08 18:15:35.656: INFO/SurfaceFlinger(46): Client API: OpenGL ES
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): using (fd=21)
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): id =
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): xres = 320 px
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): yres = 480 px
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): xres_virtual = 320 px
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): yres_virtual = 960 px
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): bpp = 16
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): r = 11:5
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): g = 5:6
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): b = 0:5
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): width = 49 mm (165.877548 dpi)
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): height = 74 mm (164.756760 dpi)
    03-08 18:15:35.656: INFO/EGLDisplaySurface(46): refresh rate = 60.00 Hz
    03-08 18:15:35.667: INFO/SurfaceFlinger(46): OpenGL informations:
    03-08 18:15:35.667: INFO/SurfaceFlinger(46): vendor : Google Inc.
    03-08 18:15:35.667: INFO/SurfaceFlinger(46): renderer : Android PixelFlinger 1.0
    03-08 18:15:35.667: INFO/SurfaceFlinger(46): version : OpenGL ES-CM 1.0
    03-08 18:15:35.667: INFO/SurfaceFlinger(46): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_direct_texture GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
    03-08 18:15:35.686: INFO/sysproc(46): System server: starting Android runtime.
    03-08 18:15:35.686: INFO/sysproc(46): System server: starting Android services.
    03-08 18:15:35.686: INFO/SystemServer(46): Entered the Android system server!
    03-08 18:15:35.716: INFO/sysproc(46): System server: entering thread pool.
    03-08 18:15:35.737: ERROR/GLLogger(46): couldn't load <libhgl.so> library (Cannot find library)
    03-08 18:15:35.815: INFO/SystemServer(46): Starting Power Manager.
    03-08 18:15:35.906: INFO/SystemServer(46): Starting Activity Manager.
    03-08 18:15:36.037: INFO/SystemServer(46): Starting telephony registry
    03-08 18:15:36.047: INFO/SystemServer(46): Starting Package Manager.
    03-08 18:15:36.056: INFO/Installer(46): connecting...
    03-08 18:15:36.066: INFO/installd(27): new connection
    03-08 18:15:36.506: DEBUG/PackageManager(46): Scanning app dir /system/framework
    03-08 18:15:36.525: WARN/PackageParser(46): Bad element under <manifest>: eat-comment
    03-08 18:15:36.537: WARN/PackageParser(46): Bad element under <manifest>: eat-comment
    03-08 18:15:36.537: WARN/PackageParser(46): Bad element under <manifest>: eat-comment
    03-08 18:15:36.537: WARN/PackageParser(46): Bad element under <manifest>: eat-comment
    03-08 18:15:36.547: WARN/PackageParser(46): Bad element under <manifest>: eat-comment
    03-08 18:15:36.547: WARN/PackageParser(46): Bad element under <manifest>: eat-comment
    03-08 18:15:36.547: WARN/PackageParser(46): Bad element under <manifest>: eat-comment
    03-08 18:15:36.556: WARN/PackageParser(46): Bad element under <manifest>: eat-comment
    03-08 18:15:36.556: WARN/PackageParser(46): Bad element under <manifest>: eat-comment
    03-08 18:15:36.576: WARN/PackageParser(46): Bad element under <manifest>: eat-comment
    03-08 18:15:36.576: WARN/PackageParser(46): Bad element under <manifest>: eat-comment
    03-08 18:15:36.676: INFO/ARMAssembler(46): generated scanline__00000177:03545404_00001A04_00000000 [ 61 ipp] (86 ins) at [0x1c8e70:0x1c8fc8] in 7202889 ns
    03-08 18:15:37.145: DEBUG/dalvikvm(46): GC freed 5832 objects / 241208 bytes in 523ms
    03-08 18:15:37.185: INFO/ARMAssembler(46): generated scanline__00000177:03010104_00001A01_00000000 [ 40 ipp] (65 ins) at [0x1c8390:0x1c8494] in 864909 ns
    03-08 18:15:37.185: INFO/ARMAssembler(46): generated scanline__00000177:03545404_00000A01_00000000 [ 48 ipp] (72 ins) at [0x1c84c0:0x1c85e0] in 519803 ns
    03-08 18:15:37.217: DEBUG/PackageManager(46): Scanning app dir /system/app
    03-08 18:15:38.611: DEBUG/dalvikvm(46): GC freed 3837 objects / 217680 bytes in 120ms
    03-08 18:15:38.646: DEBUG/PackageManager(46): Scanning app dir /data/app
    03-08 18:15:38.985: WARN/PackageParser(46): Intent filter for activity ActivityIntentInfo{4346ed80 com.example.android.apis.media.MediaPlayerDemo_Audio} defines no actions
    03-08 18:15:38.985: WARN/PackageParser(46): Intent filter for activity ActivityIntentInfo{4346f8d8 com.example.android.apis.media.MediaPlayerDemo_Video} defines no actions
    03-08 18:15:39.106: DEBUG/PackageManager(46): Scanning app dir /data/app-private
    03-08 18:15:39.106: INFO/PackageManager(46): Time to scan packages: 2.675 seconds
    03-08 18:15:39.120: WARN/PackageManager(46): Unknown permission com.google.android.providers.gmail.permission.WRITE_GMAIL in package com.android.settings
    03-08 18:15:39.120: WARN/PackageManager(46): Unknown permission com.google.android.providers.gmail.permission.READ_GMAIL in package com.android.settings
    03-08 18:15:39.120: WARN/PackageManager(46): Unknown permission com.google.android.gtalkservice.permission.GTALK_SERVICE in package com.google.android.apps.maps
    03-08 18:15:39.597: DEBUG/dalvikvm(46): GC freed 3869 objects / 225432 bytes in 353ms
    03-08 18:15:39.626: INFO/SystemServer(46): Starting Content Manager.
    03-08 18:15:39.817: INFO/SystemServer(46): Starting System Content Providers.
    03-08 18:15:39.826: INFO/ActivityThread(46): Publishing provider settings: com.android.providers.settings.SettingsProvider
    03-08 18:15:39.846: INFO/ActivityThread(46): Publishing provider android.server.checkin: android.server.checkin.CheckinProvider
    03-08 18:15:39.846: INFO/ActivityThread(46): Publishing provider sync: android.content.SyncProvider
    03-08 18:15:39.856: INFO/SystemServer(46): Starting Battery Service.
    03-08 18:15:39.867: ERROR/BatteryService(46): Could not open '/sys/class/power_supply/usb/online'
    03-08 18:15:39.867: ERROR/BatteryService(46): Could not open '/sys/class/power_supply/battery/batt_vol'
    03-08 18:15:39.867: ERROR/BatteryService(46): Could not open '/sys/class/power_supply/battery/batt_temp'
    03-08 18:15:39.986: INFO/SystemServer(46): Starting Alarm Manager.
    03-08 18:15:40.006: INFO/SystemServer(46): Starting Sensor Service.
    03-08 18:15:40.006: INFO/SystemServer(46): Starting Window Manager.
    03-08 18:15:40.086: INFO/EventHub(46): New device: path=/dev/input/event0 name=qwerty2 id=0x10000 (of 0x1) index=1 fd=43 classes=0x7
    03-08 18:15:40.096: INFO/EventHub(46): New keyboard: publicID=65536 device->id=65536 devname='qwerty2 propName='hw.keyboards.65536.devname' keylayout='/system/usr/keylayout/qwerty.kl'
    03-08 18:15:40.127: INFO/SystemServer(46): Registering null Bluetooth Service (emulator)
    03-08 18:15:40.137: ERROR/EventHub(46): could not get driver version for /dev/input/mouse0, Not a typewriter
    03-08 18:15:40.137: ERROR/System(46): Failure starting core service
    03-08 18:15:40.137: ERROR/System(46): java.lang.SecurityException
    03-08 18:15:40.137: ERROR/System(46): at android.os.BinderProxy.transact(Native Method)
    03-08 18:15:40.137: ERROR/System(46): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
    03-08 18:15:40.137: ERROR/System(46): at android.os.ServiceManager.addService(ServiceManager.java:72)
    03-08 18:15:40.137: ERROR/System(46): at com.android.server.ServerThread.run(SystemServer.java:155)
    03-08 18:15:40.146: ERROR/AndroidRuntime(46): Crash logging skipped, no checkin service
    03-08 18:15:40.146: INFO/SystemServer(46): Starting Status Bar Service.
    03-08 18:15:40.166: ERROR/EventHub(46): could not get driver version for /dev/input/mice, Not a typewriter
    03-08 18:15:40.166: INFO/KeyInputQueue(46): Device added: id=0x0, name=qwerty2, classes=7
    03-08 18:15:40.166: INFO/KeyInputQueue(46): X: unknown values
    03-08 18:15:40.166: INFO/KeyInputQueue(46): Y: unknown values
    03-08 18:15:40.166: INFO/KeyInputQueue(46): Pressure: unknown values
    03-08 18:15:40.166: INFO/KeyInputQueue(46): Size: unknown values
    03-08 18:15:40.336: INFO/WindowManager(46): Input configuration changed: { scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/2 nav=3 orien=1 }
    03-08 18:15:40.507: ERROR/SystemServer(46): Failure starting StatusBarService
    03-08 18:15:40.507: ERROR/SystemServer(46): java.lang.NullPointerException
    03-08 18:15:40.507: ERROR/SystemServer(46): at com.android.server.status.StatusBarPolicy.updateBluetooth(StatusBarPolicy.java:762)
    03-08 18:15:40.507: ERROR/SystemServer(46): at com.android.server.status.StatusBarPolicy.<init>(StatusBarPolicy.java:285)
    03-08 18:15:40.507: ERROR/SystemServer(46): at com.android.server.status.StatusBarPolicy.installIcons(StatusBarPolicy.java:341)
    03-08 18:15:40.507: ERROR/SystemServer(46): at com.android.server.ServerThread.run(SystemServer.java:182)
    03-08 18:15:40.517: ERROR/AndroidRuntime(46): Crash logging skipped, no checkin service
    03-08 18:15:40.517: INFO/SystemServer(46): Starting Hardware Service.
    03-08 18:15:40.517: INFO/SystemServer(46): Starting NetStat Service.
    03-08 18:15:40.526: INFO/SystemServer(46): Starting Connectivity Service.
    03-08 18:15:40.626: DEBUG/WifiService(46): WifiService starting up with Wi-Fi disabled
    03-08 18:15:40.677: INFO/SystemServer(46): Starting Notification Manager.
    03-08 18:15:40.686: INFO/SystemServer(46): Starting Mount Service.
    03-08 18:15:40.697: INFO/SystemServer(46): Starting DeviceMemoryMonitor service
    03-08 18:15:40.706: DEBUG/MountListener(46): handleEvent ums_disconnected
    03-08 18:15:40.725: DEBUG/MountListener(46): handleEvent ums_disabled
    03-08 18:15:40.749: INFO/SystemServer(46): Starting Location Manager.
    03-08 18:15:40.757: DEBUG/LocationManagerService(46): Constructed LocationManager Service
    03-08 18:15:40.786: INFO/System.out(46): #### #### Setting locale to en_US
    03-08 18:15:40.815: DEBUG/libhardware(46): using QEMU GPS Hardware emulation
    03-08 18:15:40.827: ERROR/GpsLocationProvider(46): Could not open GPS configuration file /etc/gps.conf
    03-08 18:15:40.827: ERROR/GpsLocationProvider(46): java.io.FileNotFoundException: /etc/gps.conf
    03-08 18:15:40.827: ERROR/GpsLocationProvider(46): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:227)
    03-08 18:15:40.827: ERROR/GpsLocationProvider(46): at java.io.FileInputStream.<init>(FileInputStream.java:76)
    03-08 18:15:40.827: ERROR/GpsLocationProvider(46): at com.android.internal.location.GpsLocationProvider.<init>(GpsLocationProvider.java:179)
    03-08 18:15:40.827: ERROR/GpsLocationProvider(46): at com.android.server.LocationManagerService._loadProvidersNoSync(LocationManagerService.java:356)
    03-08 18:15:40.827: ERROR/GpsLocationProvider(46): at com.android.server.LocationManagerService.loadProvidersNoSync(LocationManagerService.java:340)
    03-08 18:15:40.827: ERROR/GpsLocationProvider(46): at com.android.server.LocationManagerService.loadProviders(LocationManagerService.java:333)
    03-08 18:15:40.827: ERROR/GpsLocationProvider(46): at com.android.server.LocationManagerService.<init>(LocationManagerService.java:447)
    03-08 18:15:40.827: ERROR/GpsLocationProvider(46): at com.android.server.ServerThread.run(SystemServer.java:235)
    03-08 18:15:40.837: ERROR/AndroidRuntime(46): Crash logging skipped, no checkin service
    03-08 18:15:40.847: DEBUG/GpsLocationProvider(46): enable
    03-08 18:15:40.877: DEBUG/GpsLocationProvider(46): GpsEventThread starting
    03-08 18:15:40.896: DEBUG/GpsLocationProvider(46): NetworkThread starting
    03-08 18:15:40.896: DEBUG/GpsLocationProvider(46): NetworkThread wait for network
    03-08 18:15:40.917: INFO/SystemServer(46): Starting Search Service.
    03-08 18:15:40.927: INFO/SystemServer(46): Starting Clipboard Service.
    03-08 18:15:40.946: INFO/SystemServer(46): Starting Checkin Service
    03-08 18:15:41.216: DEBUG/dalvikvm(46): GC freed 4349 objects / 264608 bytes in 104ms
    03-08 18:15:41.337: INFO/RecoverySystem(46): No recovery log file
    03-08 18:15:41.347: INFO/RecoverySystem(46): No recovery intent file
    03-08 18:15:41.405: WARN/CheckinService(46): No saved kernel log file
    03-08 18:15:41.437: INFO/SystemServer(46): Starting Wallpaper Service
    03-08 18:15:41.437: DEBUG/WallpaperService(46): WallpaperService startup
    03-08 18:15:41.446: INFO/SystemServer(46): Starting Audio Service
    03-08 18:15:41.667: INFO/SystemServer(46): Starting HeadsetObserver
    03-08 18:15:41.677: WARN/HeadsetObserver(46): This kernel does not have wired headset support
    03-08 18:15:41.696: INFO/WindowManager(46): Menu key state: 0
    03-08 18:15:41.696: DEBUG/PowerManagerService(46): system ready!
    03-08 18:15:41.726: DEBUG/ActivityManager(46): Start running!
    03-08 18:15:41.816: INFO/Zygote(46): Process: zygote socket opened
    03-08 18:15:41.856: INFO/ActivityManager(46): Start proc com.android.phone for added application com.android.phone: pid=82 uid=1001 gids={3001, 3003}
    03-08 18:15:41.927: INFO/ActivityManager(46): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.HOME} flags=0x10000000 comp={com.android.launcher/com.android.launcher.Launcher} }
    03-08 18:15:42.066: INFO/ActivityManager(46): Start proc android.process.acore for activity com.android.launcher/.Launcher: pid=88 uid=10005 gids={3003}
    03-08 18:15:42.339: INFO/jdwp(46): received file descriptor 60 from ADB
    03-08 18:15:42.366: INFO/jdwp(82): received file descriptor 13 from ADB
    03-08 18:15:42.427: WARN/System.err(82): Can't dispatch DDM chunk 46454154: no handler defined
    03-08 18:15:42.427: WARN/System.err(82): Can't dispatch DDM chunk 4d505251: no handler defined
    03-08 18:15:42.455: INFO/jdwp(88): received file descriptor 10 from ADB
    03-08 18:15:42.546: WARN/System.err(46): Can't dispatch DDM chunk 46454154: no handler defined
    03-08 18:15:42.546: WARN/System.err(46): Can't dispatch DDM chunk 4d505251: no handler defined
    03-08 18:15:42.597: WARN/System.err(88): Can't dispatch DDM chunk 46454154: no handler defined
    03-08 18:15:42.597: WARN/System.err(88): Can't dispatch DDM chunk 4d505251: no handler defined
    03-08 18:15:43.086: INFO/ActivityThread(88): Publishing provider com.android.googlesearch.SuggestionProvider: com.android.googlesearch.SuggestionProvider
    03-08 18:15:43.427: INFO/ActivityThread(82): Publishing provider mms-sms: com.android.providers.telephony.MmsSmsProvider
    03-08 18:15:43.517: INFO/ActivityThread(88): Publishing provider im: com.android.providers.im.ImProvider
    03-08 18:15:43.686: INFO/ActivityThread(82): Publishing provider mms: com.android.providers.telephony.MmsProvider
    03-08 18:15:43.736: INFO/ActivityThread(82): Publishing provider telephony: com.android.providers.telephony.TelephonyProvider
    03-08 18:15:43.866: INFO/ActivityThread(82): Publishing provider sms: com.android.providers.telephony.SmsProvider
    03-08 18:15:43.926: INFO/ActivityThread(88): Publishing provider contacts;call_log: com.android.providers.contacts.ContactsProvider
    03-08 18:15:43.967: INFO/ActivityThread(82): Publishing provider sim: com.android.phone.SimProvider
    03-08 18:15:44.346: DEBUG/AndroidRuntime(103): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
    03-08 18:15:44.377: DEBUG/AndroidRuntime(103): CheckJNI is ON
    03-08 18:15:44.905: DEBUG/AndroidRuntime(103): --- registering native functions ---
    03-08 18:15:44.915: INFO/jdwp(103): received file descriptor 20 from ADB
    03-08 18:15:45.877: DEBUG/dalvikvm(46): GC freed 5870 objects / 281088 bytes in 661ms
    03-08 18:15:45.986: DEBUG/PhoneApp(82): [PhoneIntfMgr] publish: com.android.phone.PhoneInterfaceManager@433db600
    03-08 18:15:46.087: DEBUG/dalvikvm(88): GC freed 2296 objects / 144720 bytes in 415ms
    03-08 18:15:46.446: DEBUG/PhoneApp(82): Resetting audio state/mode: IDLE
    03-08 18:15:47.636: DEBUG/dalvikvm(88): GC freed 533 objects / 46064 bytes in 247ms
    03-08 18:15:47.687: DEBUG/KeyguardViewMediator(46): pokeWakelock(5000)
    03-08 18:15:47.767: INFO/ActivityManager(46): Start proc com.android.mms for broadcast com.android.mms/.transaction.SmsReceiver: pid=128 uid=10011 gids={3003}
    03-08 18:15:47.866: INFO/ActivityManager(46): processNextBroadcast: waiting for ProcessRecord{434e3fc0 128:com.android.mms/10011}
    03-08 18:15:49.386: INFO/ActivityManager(46): Displayed activity com.android.launcher/.Launcher: 7424 ms
    03-08 18:15:49.585: INFO/ActivityManager(46): Start proc com.google.process.gapps for on-hold: pid=137 uid=10016 gids={3003}
    03-08 18:15:49.716: DEBUG/PackageParser(46): Scanning package: /data/app/vmdl44124.tmp
    03-08 18:15:49.956: INFO/SurfaceFlinger(46): Boot is finished (14351 ms)
    03-08 18:15:49.986: INFO/WindowManager(46): Input configuration changed: { scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/2 nav=3 orien=1 }
    03-08 18:15:50.467: DEBUG/dalvikvm(46): GC freed 5455 objects / 261808 bytes in 422ms
    03-08 18:15:51.056: INFO/ActivityManager(46): Stopping service: com.android.mms/.transaction.SmsReceiverService
    03-08 18:15:51.625: WARN/GoogleLoginService(137): Device has no accounts: sending Intent { action=android.accounts.LOGIN_ACCOUNTS_MISSING }
    03-08 18:15:51.835: DEBUG/PackageManager(46): Removing package com.android.test
    03-08 18:15:51.937: DEBUG/PackageManager(46): Activities: com.android.test.AndroidTestAPP
    03-08 18:15:51.937: DEBUG/PackageManager(46): Scanning package com.android.test
    03-08 18:15:51.937: INFO/PackageManager(46): /data/app/vmdl44124.tmp changed; unpacking
    03-08 18:15:52.007: INFO/ActivityManager(46): Stopping service: com.google.android.googleapps/.GoogleLoginService
    03-08 18:15:52.177: DEBUG/installd(27): DexInv: --- BEGIN '/data/app/vmdl44124.tmp' ---
    03-08 18:15:53.585: DEBUG/dalvikvm(151): DexOpt: load 158ms, verify 279ms, opt 1ms
    03-08 18:15:53.665: DEBUG/installd(27): DexInv: --- END '/data/app/vmdl44124.tmp' (success) ---
    03-08 18:15:53.835: DEBUG/PackageManager(46): Activities: com.android.test.AndroidTestAPP
    03-08 18:15:54.216: INFO/installd(27): move /data/dalvik-cache/data@app@vmdl44124.tmp@classes.dex -> /data/dalvik-cache/data@app@com.android.test.apk@classes.dex
    03-08 18:15:54.257: DEBUG/PackageManager(46): New package installed in /data/app/com.android.test.apk
    03-08 18:15:54.636: DEBUG/AndroidRuntime(103): Shutting down VM
    03-08 18:15:54.636: DEBUG/dalvikvm(103): DestroyJavaVM waiting for non-daemon threads to exit
    03-08 18:15:54.656: INFO/dalvikvm(103): DestroyJavaVM shutting VM down
    03-08 18:15:54.656: DEBUG/dalvikvm(103): HeapWorker thread shutting down
    03-08 18:15:54.656: DEBUG/ActivityManager(46): Uninstalling process com.android.test
    03-08 18:15:54.656: DEBUG/dalvikvm(103): HeapWorker thread has shut down
    03-08 18:15:54.665: DEBUG/jdwp(103): JDWP shutting down net...
    03-08 18:15:54.665: DEBUG/jdwp(103): +++ peer disconnected
    03-08 18:15:54.665: INFO/dalvikvm(103): Debugger has detached; object registry had 1 entries
    03-08 18:15:54.716: DEBUG/dalvikvm(103): VM cleaning up
    03-08 18:15:54.776: DEBUG/dalvikvm(103): LinearAlloc 0x0 used 529188 of 4194304 (12%)
    03-08 18:15:55.085: DEBUG/dalvikvm(88): GC freed 1708 objects / 97608 bytes in 410ms
    03-08 18:15:55.636: DEBUG/dalvikvm(46): GC freed 5136 objects / 256800 bytes in 560ms
    03-08 18:15:55.946: DEBUG/AndroidRuntime(159): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
    03-08 18:15:55.965: DEBUG/AndroidRuntime(159): CheckJNI is ON
    03-08 18:15:56.567: DEBUG/AndroidRuntime(159): --- registering native functions ---
    03-08 18:15:57.255: DEBUG/dalvikvm(82): GC freed 2759 objects / 169752 bytes in 466ms
    03-08 18:15:58.886: INFO/ActivityManager(46): Starting activity: Intent { flags=0x10000000 comp={com.android.test/com.android.test.AndroidTestAPP} }
    03-08 18:15:58.996: DEBUG/AndroidRuntime(159): Shutting down VM
    03-08 18:15:58.996: DEBUG/dalvikvm(159): DestroyJavaVM waiting for non-daemon threads to exit
    03-08 18:15:59.027: INFO/dalvikvm(159): DestroyJavaVM shutting VM down
    03-08 18:15:59.027: DEBUG/dalvikvm(159): HeapWorker thread shutting down
    03-08 18:15:59.037: DEBUG/dalvikvm(159): HeapWorker thread has shut down
    03-08 18:15:59.037: DEBUG/jdwp(159): JDWP shutting down net...
    03-08 18:15:59.066: DEBUG/dalvikvm(159): VM cleaning up
    03-08 18:15:59.076: ERROR/dalvikvm(159): pthread_setspecific failed, err=22
    03-08 18:15:59.107: DEBUG/dalvikvm(159): LinearAlloc 0x0 used 539556 of 4194304 (12%)
    03-08 18:15:59.207: INFO/jdwp(128): received file descriptor 24 from ADB
    03-08 18:15:59.207: INFO/ActivityManager(46): Start proc com.android.test for activity com.android.test/.AndroidTestAPP: pid=169 uid=10021 gids={3003}
    03-08 18:15:59.256: INFO/jdwp(137): received file descriptor 26 from ADB
    03-08 18:15:59.256: WARN/System.err(128): Can't dispatch DDM chunk 46454154: no handler defined
    03-08 18:15:59.286: WARN/System.err(128): Can't dispatch DDM chunk 4d505251: no handler defined
    03-08 18:15:59.375: WARN/System.err(137): Can't dispatch DDM chunk 46454154: no handler defined
    03-08 18:15:59.415: WARN/System.err(137): Can't dispatch DDM chunk 4d505251: no handler defined
    03-08 18:15:59.526: INFO/jdwp(169): received file descriptor 10 from ADB
    03-08 18:15:59.647: WARN/System.err(169): Can't dispatch DDM chunk 4d505251: no handler defined
    03-08 18:15:59.736: DEBUG/SystemClock(82): Setting time of day to sec=1268052347
    03-08 18:15:47.239: WARN/SystemClock(82): Unable to set rtc to 1268052347: Invalid argument
    03-08 18:15:47.859: DEBUG/PhoneApp(82): [CallNotifier] onMwiChanged(): false
    03-08 18:15:47.871: DEBUG/PhoneApp(82): [CallNotifier] onCfiChanged(): false
    03-08 18:15:48.129: INFO/ActivityManager(46): Displayed activity com.android.test/.AndroidTestAPP: 1613 ms
    03-08 18:15:48.609: WARN/ActivityManager(46): Timeout of broadcast BroadcastRecord{434c4440 android.intent.action.SCREEN_ON} - receiver=android.os.BinderProxy@43506098
    03-08 18:15:48.609: WARN/ActivityManager(46): Receiver during timeout: BroadcastFilter{43506300 ReceiverList{43506288 82 com.android.phone/1001 client 43506098}}
    03-08 18:15:48.630: INFO/ActivityManager(46): ANR (application not responding) in process: com.android.phone
    03-08 18:15:48.630: INFO/ActivityManager(46): Annotation: Broadcast of Intent { action=android.intent.action.SCREEN_ON flags=0x40000000 }
    03-08 18:15:48.630: INFO/ActivityManager(46): CPU usage:
    03-08 18:15:48.630: INFO/ActivityManager(46): Load: 1.94 / 0.45 / 0.15
    03-08 18:15:48.630: INFO/ActivityManager(46): CPU usage from 6302ms to 1125ms ago:
    03-08 18:15:48.630: INFO/ActivityManager(46): com.android.phone: 28% = 26% user + 1% kernel
    03-08 18:15:48.630: INFO/ActivityManager(46): system_server: 14% = 9% user + 4% kernel
    03-08 18:15:48.630: INFO/ActivityManager(46): adbd: 4% = 1% user + 3% kernel
    03-08 18:15:48.630: INFO/ActivityManager(46): android.process.acore: 4% = 3% user + 0% kernel
    03-08 18:15:48.630: INFO/ActivityManager(46): logcat: 0% = 0% user + 0% kernel
    03-08 18:15:48.630: INFO/ActivityManager(46): com.google.process.gapps: 0% = 0% user + 0% kernel
    03-08 18:15:48.630: INFO/ActivityManager(46): zygote: 0% = 0% user + 0% kernel
    03-08 18:15:48.630: INFO/ActivityManager(46): com.android.mms: 0% = 0% user + 0% kernel
    03-08 18:15:48.630: INFO/ActivityManager(46): +com.android.test: 0% = 0% user + 0% kernel
    03-08 18:15:48.630: INFO/ActivityManager(46): -sh: 0% = 0% user + 0% kernel
    03-08 18:15:48.630: INFO/ActivityManager(46): -app_process: 0% = 0% user + 0% kernel
    03-08 18:15:48.630: INFO/ActivityManager(46): TOTAL: 100% = 77% user + 21% kernel + 0% irq + 0% softirq
    03-08 18:15:48.630: INFO/ActivityManager(46): /proc/meminfo:
    03-08 18:15:48.630: INFO/ActivityManager(46): MemTotal: 94572 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): MemFree: 17592 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): Buffers: 0 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): Cached: 44396 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): SwapCached: 0 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): Active: 42304 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): Inactive: 27544 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): SwapTotal: 0 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): SwapFree: 0 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): Dirty: 0 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): Writeback: 0 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): AnonPages: 25468 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): Mapped: 21272 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): Slab: 2856 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): SReclaimable: 580 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): SUnreclaim: 2276 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): PageTables: 2024 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): NFS_Unstable: 0 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): Bounce: 0 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): CommitLimit: 47284 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): Committed_AS: 698180 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): VmallocTotal: 876544 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): VmallocUsed: 8380 kB
    03-08 18:15:48.630: INFO/ActivityManager(46): VmallocChunk: 859132 kB
    03-08 18:15:48.640: INFO/ActivityManager(46): Removing old ANR trace file from /data/anr/traces.txt
    03-08 18:15:48.640: INFO/Process(46): Sending signal. PID: 169 SIG: 3
    03-08 18:15:48.649: INFO/dalvikvm(169): threadid=7: reacting to signal 3
    03-08 18:15:48.661: INFO/Process(46): Sending signal. PID: 128 SIG: 3
    03-08 18:15:48.661: INFO/dalvikvm(128): threadid=7: reacting to signal 3
    03-08 18:15:48.661: INFO/Process(46): Sending signal. PID: 137 SIG: 3
    03-08 18:15:48.661: INFO/dalvikvm(137): threadid=7: reacting to signal 3
    03-08 18:15:48.670: INFO/Process(46): Sending signal. PID: 88 SIG: 3
    03-08 18:15:48.670: INFO/dalvikvm(88): threadid=7: reacting to signal 3
    03-08 18:15:48.670: INFO/Process(46): Sending signal. PID: 82 SIG: 3
    03-08 18:15:48.670: INFO/dalvikvm(82): threadid=7: reacting to signal 3
    03-08 18:15:48.670: INFO/Process(46): Sending signal. PID: 46 SIG: 3
    03-08 18:15:48.680: INFO/dalvikvm(46): threadid=7: reacting to signal 3
    03-08 18:15:48.729: INFO/dalvikvm(137): Wrote stack trace to '/data/anr/traces.txt'
    03-08 18:15:48.729: INFO/dalvikvm(169): Wrote stack trace to '/data/anr/traces.txt'
    03-08 18:15:48.770: INFO/dalvikvm(88): Wrote stack trace to '/data/anr/traces.txt'
    03-08 18:15:48.770: INFO/dalvikvm(46): Wrote stack trace to '/data/anr/traces.txt'
    03-08 18:15:48.811: INFO/dalvikvm(128): Wrote stack trace to '/data/anr/traces.txt'
    03-08 18:15:48.831: INFO/dalvikvm(82): Wrote stack trace to '/data/anr/traces.txt'
    03-08 18:15:48.889: WARN/ActivityManager(46): finishReceiver called but none active
    03-08 18:15:49.349: DEBUG/dalvikvm(46): GC freed 4863 objects / 359528 bytes in 111ms
    03-08 18:15:49.620: DEBUG/StatusBar(46): updateResources
    03-08 18:15:49.830: INFO/ActivityManager(46): Start proc com.android.alarmclock for broadcast com.android.alarmclock/.AlarmInitReceiver: pid=175 uid=10001 gids={}
    03-08 18:15:50.010: INFO/jdwp(175): received file descriptor 20 from ADB
    03-08 18:15:50.029: DEBUG/PhoneApp(82): [CallNotifier] onMwiChanged(): false
    03-08 18:15:50.050: DEBUG/PhoneApp(82): [CallNotifier] onCfiChanged(): false
    03-08 18:15:50.269: WARN/System.err(175): Can't dispatch DDM chunk 4d505251: no handler defined
    03-08 18:15:50.549: DEBUG/TelephonyProvider(82): Setting numeric '310260' to be the current operator
    03-08 18:15:50.571: INFO/ARMAssembler(46): generated scanline__00000077:03515104_00000000_00000000 [ 27 ipp] (41 ins) at [0x26b550:0x26b5f4] in 11147786 ns
    03-08 18:15:50.591: INFO/ActivityManager(46): processNextBroadcast: waiting for ProcessRecord{43507238 175:com.android.alarmclock/10001}
    03-08 18:15:50.739: INFO/ActivityThread(175): Publishing provider com.android.alarmclock: com.android.alarmclock.AlarmProvider
    03-08 18:15:51.020: DEBUG/MobileDataStateTracker(46): CONNECTED event did not supply interface name.
    03-08 18:15:51.031: DEBUG/MobileDataStateTracker(46): DNS server addresses are not known.
    03-08 18:15:51.060: ERROR/NetworkStateTracker(46): net.tcp.buffersize.unknown not found in system properties. Using defaults
    03-08 18:15:51.060: ERROR/NetworkStateTracker(46): Can't set tcp buffer sizes:java.io.FileNotFoundException: /sys/kernel/ipv4/tcp_rmem_min
    03-08 18:15:51.249: DEBUG/GpsLocationProvider(46): updateNetworkState available
    03-08 18:15:51.259: DEBUG/GpsLocationProvider(46): NetworkThread out of wake loop
    03-08 18:15:51.269: DEBUG/GpsLocationProvider(46): Requesting time from NTP server pool.ntp.org
    03-08 18:15:51.480: INFO/ActivityManager(46): Start proc com.google.android.apps.maps for broadcast com.google.android.apps.maps/com.google.android.maps.ff.FriendFinderReceiver: pid=186 uid=10000 gids={3003}
    03-08 18:15:51.509: DEBUG/SntpClient(46): round trip: 78 ms
    03-08 18:15:51.509: DEBUG/SntpClient(46): clock offset: 49416 ms
    03-08 18:15:51.509: DEBUG/GpsLocationProvider(46): calling native_inject_time: 1268052400852 reference: 39547 certainty: 39
    03-08 18:15:51.509: DEBUG/GpsLocationProvider(46): NetworkThread wait for 14400000ms
    03-08 18:15:51.590: INFO/jdwp(186): received file descriptor 10 from ADB
    03-08 18:15:51.661: WARN/System.err(186): Can't dispatch DDM chunk 46454154: no handler defined
    03-08 18:15:51.670: WARN/System.err(186): Can't dispatch DDM chunk 4d505251: no handler defined
    03-08 18:15:52.030: DEBUG/dalvikvm(46): GC freed 2359 objects / 126064 bytes in 232ms
    03-08 18:15:52.059: INFO/ActivityThread(186): Publishing provider com.google.android.maps.SuggestionProvider: com.google.android.maps.provider.MapsSuggestionProvider
    03-08 18:15:52.129: INFO/ActivityThread(186): Publishing provider com.google.android.maps.FriendsProvider: com.google.android.maps.ff.FriendsProvider
    03-08 18:15:52.139: INFO/ActivityThread(186): Publishing provider com.google.android.maps.SearchHistoryProvider: com.google.android.maps.provider.SearchHistoryProvider
    03-08 18:15:52.493: DEBUG/Maps.FriendFinder(186): Starting FriendView service
    03-08 18:15:52.679: INFO/ActivityManager(46): Start proc android.process.media for broadcast com.android.providers.downloads/.DownloadReceiver: pid=193 uid=10004 gids={1006, 3003, 2001}
    03-08 18:15:52.751: INFO/jdwp(193): received file descriptor 20 from ADB
    03-08 18:15:52.840: WARN/System.err(193): Can't dispatch DDM chunk 46454154: no handler defined
    03-08 18:15:52.840: WARN/System.err(193): Can't dispatch DDM chunk 4d505251: no handler defined
    03-08 18:15:52.960: INFO/ActivityThread(193): Publishing provider downloads: com.android.providers.downloads.DownloadProvider
    03-08 18:15:53.001: INFO/ActivityThread(193): Publishing provider drm: com.android.providers.drm.DrmProvider
    03-08 18:15:53.040: INFO/ActivityThread(193): Publishing provider media: com.android.providers.media.MediaProvider
    03-08 18:15:53.109: VERBOSE/MediaProvider(193): Attached volume: internal
    03-08 18:15:53.570: DEBUG/MediaScannerService(193): start scanning volume internal
    03-08 18:15:54.000: DEBUG/dalvikvm(46): GREF has increased to 201
    03-08 18:15:54.509: INFO/ActivityManager(46): Stopping service: com.android.mms/.transaction.TransactionService
    03-08 18:15:54.699: INFO/ActivityManager(46): Stopping service: com.android.providers.downloads/.DownloadService
    03-08 18:15:54.809: DEBUG/MediaScanner(193): prescan time: 828ms
    03-08 18:15:54.831: DEBUG/MediaScanner(193): scan time: 309ms
    03-08 18:15:54.841: DEBUG/MediaScanner(193): postscan time: 1ms
    03-08 18:15:54.850: DEBUG/MediaScanner(193): total time: 1138ms
    03-08 18:15:54.860: DEBUG/MediaScannerService(193): done scanning volume internal
    03-08 18:15:54.870: INFO/ActivityManager(46): Stopping service: com.android.providers.media/.MediaScannerService
    03-08 18:15:54.950: INFO/ActivityManager(46): Stopping service: com.android.mms/.transaction.SmsReceiverService
    03-08 18:15:59.389: DEBUG/dalvikvm(82): GC freed 3836 objects / 200328 bytes in 86ms
    03-08 18:16:05.229: DEBUG/dalvikvm(88): GC freed 2332 objects / 111488 bytes in 69ms
    03-08 18:16:10.260: DEBUG/dalvikvm(128): GC freed 2573 objects / 139104 bytes in 92ms
    03-08 18:16:52.901: DEBUG/KeyguardViewMediator(46): pokeWakelock(5000)
    03-08 18:17:03.559: INFO/global(169): Mar 8, 2010 6:17:03 PM java.io.BufferedReader <init>
    03-08 18:17:03.559: INFO/global(169): INFO: Default buffer size used in BufferedReader constructor. It would be better to be explicit if a 8k-char buffer is required.
    03-08 18:17:03.571: INFO/System.out(169): READ LINE...........null
    03-08 18:32:12.119: DEBUG/dalvikvm(82): GC freed 10113 objects / 561408 bytes in 78ms
    03-08 18:47:43.361: DEBUG/dalvikvm(82): GC freed 9650 objects / 540936 bytes in 83ms
    03-08 18:55:11.029: DEBUG/dalvikvm(46): GC freed 11302 objects / 463312 bytes in 127ms
    03-08 19:03:13.149: DEBUG/dalvikvm(82): GC freed 9296 objects / 524232 bytes in 87ms
    03-08 19:18:44.889: DEBUG/dalvikvm(82): GC freed 9298 objects / 524504 bytes in 83ms
    03-08 19:34:14.919: DEBUG/dalvikvm(82): GC freed 9296 objects / 524248 bytes in 76ms

    as we can see the line which is in bold shows my android client is getting the null value as a response from server however it gets connected with Server.

    >> Client Source :

    package com.mobhype.sdk;

    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.UnsupportedEncodingException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.UnknownHostException;
    import java.security.KeyManagementException;
    import java.security.NoSuchAlgorithmException;
    import java.security.SecureRandom;
    import javax.net.ssl.HttpsURLConnection;
    import javax.net.ssl.SSLContext;
    import javax.net.ssl.TrustManager;
    import android.app.Activity;


    public class MobHypeSDK extends Activity {

    /** Called when the activity is first created. */
    String token;
    String preservedToken;
    static String responseURL;
    static String line1 ;

    public static String requestToken() throws UnsupportedEncodingException
    {

    String httpsUrl = "https://192.168.1.106:1041";
    //String httpsUrl = "https://www.google.com";

    try {
    responseURL = readFromURL(httpsUrl);

    } catch (KeyManagementException e) {
    // TODO Auto-generated catch block

    e.printStackTrace();
    } catch (NoSuchAlgorithmException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (MalformedURLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (UnknownHostException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    return responseURL;


    }

    public String responseURL(String url)
    {
    try {
    String tkn = requestToken();
    responseURL = url+"&SecretToken="+tkn;
    } catch (UnsupportedEncodingException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }

    return responseURL;

    }


    public static String readFromURL( String httpsUrl) throws NoSuchAlgorithmException, KeyManagementException, MalformedURLException, UnknownHostException, IOException {

    // Variabeln
    TrustManager[] trustAllCerts;
    SSLContext sc;
    URL url;
    HttpsURLConnection connection;
    BufferedReader reader;
    StringBuffer str;
    String line;

    /*final HostnameVerifier DO_NOT_VERIFY = new HostnameVerifier() {

    public boolean verify(String arg0, SSLSession arg1) {
    // TODO Auto-generated method stub
    return false;
    }
    };
    */
    trustAllCerts = new TrustManager[] { new X509TrustManagerImpl() };

    // Let us create the factory where we can set some parameters for the connection
    sc = SSLContext.getInstance( "TLS" );
    sc.init( null, trustAllCerts, new SecureRandom() );

    // Create the socket connection and open it to the secure remote web server
    url = new URL( httpsUrl );
    HttpsURLConnection.setDefaultSSLSocketFactory( sc.getSocketFactory() );
    connection = (HttpsURLConnection)url.openConnection();


    connection.setHostnameVerifier(new HostnameVerifierImpl());
    // Make this URL connection available for input and output
    connection.setDoOutput(true);
    connection.setDoInput(true);
    connection.setDefaultUseCaches(false);

    // Login

    connection.connect();

    // vom Stream lesen und als String zur
     

    Advertisement

Share This Page

Loading...