Wrox Programmer Forums
|
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 30th, 2010, 10:26 AM
Registered User
 
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default NullPointerException in BluetoothTexting app

Hi, great book first of all; one of the few definitive resources for the new additions to the API.

I'm having trouble running the BluetoothTexting app from chapter 13. I'm getting a NullPointerException at:

list.setAdapter(aa);

which would be where the pairable device id's would be loaded, right? I've tested this with other Bluetooth devices present, but nothing seems to work. Any suggestions?

Thanks!
 
Old April 7th, 2010, 10:22 AM
Reto's Avatar
Wrox Author
 
Join Date: Oct 2008
Posts: 61
Thanks: 1
Thanked 7 Times in 6 Posts
Default

A NPE at that line suggests that either the ArrayAdapter (aa) or the ListView (list) is null. I'd say the latter is the more likely scenario.

Could you include a full stacktrace from logcat for the error?
__________________
Reto Meier

Author, "Professional Android 4 Application Development", Wrox, ©2012, 2010, 2008
@retomeier
 
Old May 25th, 2010, 06:18 PM
Rab Rab is offline
Registered User
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Reto,

I have a similar problem. I get "The application BluetoothTexting (process com.paad.bluetoothtexting) has stopped unexpectedly. Please try again."

I am using a HTC Desire, but also see the problem when debugging on the PC.

I only have 1 device so can't test the application further. However have turned on my PC Bluetooth to see if the device detected the PC. It didn't seem to get that far.

If I comment out the line "setupListView();" then the problem goes away but this doesn't sound like a good idea.

The logcat trace shows:-
05-25 23:33:10.692: DEBUG/PowerManagerService(75): New lightsensor value:90, lcdValue:160
05-25 23:33:12.712: DEBUG/dalvikvm(485): GC freed 921 objects / 41544 bytes in 75ms
05-25 23:33:16.902: DEBUG/AndroidRuntime(8926): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
05-25 23:33:16.902: DEBUG/AndroidRuntime(8926): CheckJNI is OFF
05-25 23:33:16.902: DEBUG/dalvikvm(8926): Precise GC configured ON
05-25 23:33:16.902: DEBUG/dalvikvm(8926): creating instr width table
05-25 23:33:16.942: DEBUG/AndroidRuntime(8926): --- registering native functions ---
05-25 23:33:17.092: DEBUG/ddm-heap(8926): Got feature list request
05-25 23:33:17.282: DEBUG/AndroidRuntime(8926): Shutting down VM
05-25 23:33:17.282: DEBUG/dalvikvm(8926): DestroyJavaVM waiting for non-daemon threads to exit
05-25 23:33:17.282: DEBUG/dalvikvm(8926): DestroyJavaVM shutting VM down
05-25 23:33:17.282: DEBUG/dalvikvm(8926): HeapWorker thread shutting down
05-25 23:33:17.282: DEBUG/dalvikvm(8926): HeapWorker thread has shut down
05-25 23:33:17.292: DEBUG/jdwp(8926): JDWP shutting down net...
05-25 23:33:17.292: INFO/dalvikvm(8926): Debugger has detached; object registry had 1 entries
05-25 23:33:17.292: ERROR/AndroidRuntime(8926): ERROR: thread attach failed
05-25 23:33:17.292: DEBUG/dalvikvm(8926): VM cleaning up
05-25 23:33:17.302: DEBUG/dalvikvm(8926): LinearAlloc 0x0 used 652452 of 5242880 (12%)
05-25 23:33:17.502: DEBUG/AndroidRuntime(8935): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
05-25 23:33:17.502: DEBUG/AndroidRuntime(8935): CheckJNI is OFF
05-25 23:33:17.502: DEBUG/dalvikvm(8935): Precise GC configured ON
05-25 23:33:17.502: DEBUG/dalvikvm(8935): creating instr width table
05-25 23:33:17.542: DEBUG/AndroidRuntime(8935): --- registering native functions ---
05-25 23:33:17.622: DEBUG/ddm-heap(8935): Got feature list request
05-25 23:33:17.702: DEBUG/PackageParser(75): Scanning package: /data/app/vmdl18213.tmp
05-25 23:33:17.752: DEBUG/dalvikvm(283): GC freed 1754 objects / 105624 bytes in 111ms
05-25 23:33:17.772: INFO/PackageManager(75): /data/app/vmdl18213.tmp changed; unpacking
05-25 23:33:17.783: DEBUG/installd(59): DexInv: --- BEGIN '/data/app/vmdl18213.tmp' ---
05-25 23:33:17.802: DEBUG/dalvikvm(8941): creating instr width table
05-25 23:33:18.022: DEBUG/dalvikvm(8941): DexOpt: load 28ms, verify 43ms, opt 0ms
05-25 23:33:18.033: DEBUG/installd(59): DexInv: --- END '/data/app/vmdl18213.tmp' (success) ---
05-25 23:33:18.172: INFO/installd(59): move /data/dalvik-cache/data@[email protected]@classes.dex -> /data/dalvik-cache/data@[email protected]@classes.dex
05-25 23:33:18.172: DEBUG/PackageManager(75): New package installed in /data/app/com.paad.bluetoothtexting.apk
05-25 23:33:18.342: DEBUG/AndroidRuntime(8935): Shutting down VM
05-25 23:33:18.352: DEBUG/dalvikvm(8935): DestroyJavaVM waiting for non-daemon threads to exit
05-25 23:33:18.352: DEBUG/dalvikvm(8935): DestroyJavaVM shutting VM down
05-25 23:33:18.352: DEBUG/dalvikvm(8935): HeapWorker thread shutting down
05-25 23:33:18.352: DEBUG/dalvikvm(8935): HeapWorker thread has shut down
05-25 23:33:18.352: DEBUG/jdwp(8935): JDWP shutting down net...
05-25 23:33:18.352: INFO/dalvikvm(8935): Debugger has detached; object registry had 1 entries
05-25 23:33:18.352: DEBUG/dalvikvm(8935): VM cleaning up
05-25 23:33:18.372: ERROR/AndroidRuntime(8935): ERROR: thread attach failed
05-25 23:33:18.392: DEBUG/dalvikvm(8935): LinearAlloc 0x0 used 662412 of 5242880 (12%)
05-25 23:33:18.682: DEBUG/AndroidRuntime(8946): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
05-25 23:33:18.682: DEBUG/AndroidRuntime(8946): CheckJNI is OFF
05-25 23:33:18.682: DEBUG/dalvikvm(8946): Precise GC configured ON
05-25 23:33:18.682: DEBUG/dalvikvm(8946): creating instr width table
05-25 23:33:18.762: DEBUG/dalvikvm(75): GC freed 9376 objects / 547880 bytes in 244ms
05-25 23:33:18.772: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f060004
05-25 23:33:18.782: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f040000
05-25 23:33:18.782: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f050007
05-25 23:33:18.792: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f040000
05-25 23:33:18.792: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f0a0407
05-25 23:33:18.792: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f020003
05-25 23:33:18.792: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f040000
05-25 23:33:18.792: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f060000
05-25 23:33:18.792: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f020021
05-25 23:33:18.792: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f050001
05-25 23:33:18.792: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f080000
05-25 23:33:18.802: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f020047
05-25 23:33:18.802: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f020048
05-25 23:33:18.802: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f050002
05-25 23:33:18.802: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f020000
05-25 23:33:18.802: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f030001
05-25 23:33:18.802: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f060007
05-25 23:33:18.802: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f040000
05-25 23:33:18.802: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f050000
05-25 23:33:18.802: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f020005
05-25 23:33:18.802: WARN/ResourceType(75): Resources don't contain package for resource number 0x7f020004
05-25 23:33:18.822: DEBUG/BackupManagerService(75): Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.paad.bluetoothtexting flg=0x20000000 (has extras) }
05-25 23:33:18.822: VERBOSE/BackupManagerService(75): addPackageParticipantsLocked: com.paad.bluetoothtexting
05-25 23:33:18.822: DEBUG/AndroidRuntime(8946): --- registering native functions ---
05-25 23:33:18.832: VERBOSE/BackupManagerService(75): Adding 10 backup participants:
05-25 23:33:18.832: VERBOSE/BackupManagerService(75): PackageInfo{46a17e08 com.android.browser} agent=com.android.browser.BrowserBackupAgent uid=10046 killAfterRestore=true restoreNeedsApplication=false
05-25 23:33:18.832: VERBOSE/BackupManagerService(75): PackageInfo{469fedd8 com.android.mms} agent=com.android.mms.MmsBackupAgent uid=10052 killAfterRestore=true restoreNeedsApplication=false
05-25 23:33:18.832: VERBOSE/BackupManagerService(75): PackageInfo{46991cb8 com.htc.CustomizationSetup} agent=com.htc.CustomizationSetup.AccountBackupAgen t uid=10001 killAfterRestore=true restoreNeedsApplication=false
05-25 23:33:18.832: VERBOSE/BackupManagerService(75): PackageInfo{46958fd0 com.android.providers.telephony} agent=com.android.providers.telephony.MessageBacku pAgent uid=1001 killAfterRestore=false restoreNeedsApplication=false
05-25 23:33:18.832: VERBOSE/BackupManagerService(75): PackageInfo{4694af40 com.android.providers.settings} agent=com.android.providers.settings.SettingsBacku pAgent uid=1000 killAfterRestore=false restoreNeedsApplication=false
05-25 23:33:18.832: VERBOSE/BackupManagerService(75): PackageInfo{4692f538 com.htc.android.htcime} agent=com.htc.android.htcime.util.BackupAgent uid=10027 killAfterRestore=false restoreNeedsApplication=false
05-25 23:33:18.832: VERBOSE/BackupManagerService(75): PackageInfo{468507a0 com.android.providers.userdictionary} agent=com.android.providers.userdictionary.Diction aryBackupAgent uid=10026 killAfterRestore=false restoreNeedsApplication=false
05-25 23:33:18.832: VERBOSE/BackupManagerService(75): PackageInfo{4683bcf8 android} agent=com.android.server.SystemBackupAgent uid=1000 killAfterRestore=false restoreNeedsApplication=false
05-25 23:33:18.832: VERBOSE/BackupManagerService(75): PackageInfo{46814ba8 com.android.vending} agent=com.android.vending.VendingBackupAgent uid=10040 killAfterRestore=false restoreNeedsApplication=true
05-25 23:33:18.832: VERBOSE/BackupManagerService(75): PackageInfo{467c3e38 com.htc.provider.settings} agent=com.htc.provider.settings.BackupAgent uid=10001 killAfterRestore=false restoreNeedsApplication=false
05-25 23:33:18.962: DEBUG/PowerManagerService(75): New lightsensor value:40, lcdValue:160
05-25 23:33:18.982: DEBUG/ddm-heap(8946): Got feature list request
05-25 23:33:19.062: DEBUG/ActivityManager(75): Uninstalling process com.paad.bluetoothtexting
05-25 23:33:19.062: INFO/ActivityManager(75): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.paad.bluetoothtexting/.BluetoothTexting }
05-25 23:33:19.102: INFO/ActivityManager(75): Start proc com.paad.bluetoothtexting for activity com.paad.bluetoothtexting/.BluetoothTexting: pid=8954 uid=10077 gids={3002, 3001}
05-25 23:33:19.102: DEBUG/AndroidRuntime(8946): Shutting down VM
05-25 23:33:19.102: DEBUG/dalvikvm(8946): DestroyJavaVM waiting for non-daemon threads to exit
05-25 23:33:19.122: DEBUG/HtcWidgetScanner(372): action - android.intent.action.PACKAGE_ADDED
05-25 23:33:19.122: DEBUG/HtcWidgetScanner(372): packageUid - 10077
05-25 23:33:19.142: DEBUG/dalvikvm(8946): DestroyJavaVM shutting VM down
05-25 23:33:19.142: DEBUG/dalvikvm(8946): HeapWorker thread shutting down
05-25 23:33:19.142: DEBUG/dalvikvm(8946): HeapWorker thread has shut down
05-25 23:33:19.142: DEBUG/jdwp(8946): JDWP shutting down net...
05-25 23:33:19.142: INFO/dalvikvm(8946): Debugger has detached; object registry had 1 entries
05-25 23:33:19.142: DEBUG/dalvikvm(8946): VM cleaning up
05-25 23:33:19.152: ERROR/AndroidRuntime(8946): ERROR: thread attach failed
05-25 23:33:19.152: DEBUG/dalvikvm(8946): LinearAlloc 0x0 used 677996 of 5242880 (12%)
05-25 23:33:19.172: DEBUG/ddm-heap(8954): Got feature list request
05-25 23:33:19.192: WARN/ActivityThread(8954): Application com.paad.bluetoothtexting is waiting for the debugger on port 8100...
05-25 23:33:19.202: INFO/System.out(8954): Sending WAIT chunk
05-25 23:33:19.212: INFO/dalvikvm(8954): Debugger is active
05-25 23:33:19.252: WARN/ResourceType(442): getEntry failing because entryIndex 124 is beyond type entryCount 92
05-25 23:33:19.252: WARN/ResourceType(442): Failure getting entry for 0x7f02007c (t=1 e=124) in package 0: 0x80000001
05-25 23:33:19.252: DEBUG/PackageInstallationReceiver(283): Removing.../data/local/tmp/com.paad.bluetoothtexting.apk
05-25 23:33:19.383: ERROR/PackageInstallationReceiver(283): Remove /data/local/tmp/com.paad.bluetoothtexting.apk Fail!
05-25 23:33:19.393: WARN/System.err(283): java.io.IOException: Error running exec(). Commands: [/system/xbin/su, 0, /system/bin/rm, /data/local/tmp/com.paad.bluetoothtexting.apk] Working Directory: null Environment: null
05-25 23:33:19.403: INFO/System.out(8954): Debugger has connected
05-25 23:33:19.403: INFO/System.out(8954): waiting for debugger to settle...
05-25 23:33:19.422: WARN/System.err(283): at java.lang.ProcessManager.exec(ProcessManager.java: 196)
05-25 23:33:19.422: WARN/System.err(283): at java.lang.Runtime.exec(Runtime.java:225)
05-25 23:33:19.422: WARN/System.err(283): at java.lang.Runtime.exec(Runtime.java:313)
05-25 23:33:19.422: WARN/System.err(283): at java.lang.Runtime.exec(Runtime.java:246)
05-25 23:33:19.433: WARN/System.err(283): at com.htc.android.psclient.PackageInstallationReceiv er.removeTempPackageFile(PackageInstallationReceiv er.java:34)
05-25 23:33:19.433: WARN/System.err(283): at com.htc.android.psclient.PackageInstallationReceiv er.access$000(PackageInstallationReceiver.java:8)
05-25 23:33:19.442: WARN/System.err(283): at com.htc.android.psclient.PackageInstallationReceiv er$1.run(PackageInstallationReceiver.java:24)
05-25 23:33:19.442: WARN/System.err(283): Caused by: java.io.IOException: No such file or directory
05-25 23:33:19.462: WARN/System.err(283): at java.lang.ProcessManager.exec(Native Method)
05-25 23:33:19.462: WARN/System.err(283): at java.lang.ProcessManager.exec(ProcessManager.java: 194)
05-25 23:33:19.462: WARN/System.err(283): ... 6 more
05-25 23:33:19.522: DEBUG/RegisterService(344): insert plugin size 1
05-25 23:33:19.552: WARN/Addapter(159): info.icon:2130837538
05-25 23:33:19.552: WARN/Addapter(159): info.icon:2130837525
05-25 23:33:19.552: WARN/Addapter(159): info.icon:2130837504
05-25 23:33:19.552: WARN/Addapter(159): info.icon:2130837628
05-25 23:33:19.552: WARN/Addapter(159): info.icon:2130837509
05-25 23:33:19.552: WARN/Addapter(159): info.icon:2130837505
05-25 23:33:19.552: WARN/Addapter(159): info.icon:2130837550
05-25 23:33:19.552: WARN/Addapter(159): info.icon:2130837513
05-25 23:33:19.552: WARN/Addapter(159): info.icon:2130837850
05-25 23:33:19.552: WARN/Addapter(159): info.icon:2130837513
05-25 23:33:19.562: WARN/Addapter(159): info.icon:2130837513
05-25 23:33:19.562: WARN/Addapter(159): info.icon:2130837513
05-25 23:33:19.562: WARN/Addapter(159): info.icon:2130837513
05-25 23:33:19.562: DEBUG/Addapter(159): text : Get more HTC widgets
05-25 23:33:19.602: INFO/System.out(8954): waiting for debugger to settle...
05-25 23:33:19.643: DEBUG/RegisterService(344): insert plugin size 1
05-25 23:33:19.802: DEBUG/RegisterService(344): insert plugin size 1
05-25 23:33:19.802: INFO/System.out(8954): waiting for debugger to settle...
05-25 23:33:20.002: INFO/System.out(8954): waiting for debugger to settle...
05-25 23:33:20.202: INFO/System.out(8954): waiting for debugger to settle...
05-25 23:33:20.403: INFO/System.out(8954): waiting for debugger to settle...
05-25 23:33:20.611: INFO/System.out(8954): waiting for debugger to settle...
05-25 23:33:20.812: INFO/System.out(8954): waiting for debugger to settle...
05-25 23:33:21.014: INFO/System.out(8954): waiting for debugger to settle...
05-25 23:33:21.216: INFO/System.out(8954): waiting for debugger to settle...
05-25 23:33:21.418: INFO/System.out(8954): debugger has settled (1418)
05-25 23:33:26.183: DEBUG/PowerManagerService(75): New lightsensor value:90, lcdValue:160
05-25 23:33:29.092: WARN/ActivityManager(75): Launch timeout has expired, giving up wake lock!
05-25 23:33:29.192: WARN/ActivityManager(75): Activity idle timeout for HistoryRecord{4665cfd0 com.paad.bluetoothtexting/.BluetoothTexting}
05-25 23:33:33.360: DEBUG/PowerManagerService(75): New lightsensor value:40, lcdValue:160
05-25 23:33:34.272: DEBUG/dalvikvm(167): GC freed 461 objects / 18744 bytes in 78ms
05-25 23:33:39.282: DEBUG/dalvikvm(162): GC freed 31 objects / 1240 bytes in 90ms
05-25 23:33:42.722: DEBUG/PowerManagerService(75): New lightsensor value:90, lcdValue:160
05-25 23:33:44.312: DEBUG/dalvikvm(159): GC freed 7958 objects / 425424 bytes in 115ms
05-25 23:33:49.272: DEBUG/dalvikvm(3924): GC freed 45 objects / 2192 bytes in 74ms
05-25 23:33:50.914: DEBUG/PowerManagerService(75): New lightsensor value:40, lcdValue:160
05-25 23:33:53.073: INFO/BatteryStatsImpl(75): notePhoneSignalStrengthLocked: 4->3
05-25 23:34:20.082: INFO/BatteryStatsImpl(75): notePhoneSignalStrengthLocked: 3->4
05-25 23:34:26.082: INFO/BatteryStatsImpl(75): notePhoneSignalStrengthLocked: 4->3
05-25 23:34:46.762: DEBUG/PowerManagerService(75): New lightsensor value:90, lcdValue:160
05-25 23:35:05.172: DEBUG/dalvikvm(159): GC freed 467 objects / 24112 bytes in 79ms
05-25 23:37:31.182: DEBUG/dalvikvm(159): GC freed 28 objects / 1768 bytes in 83ms
05-25 23:39:02.104: INFO/BatteryStatsImpl(75): notePhoneSignalStrengthLocked: 3->4
05-25 23:39:07.192: DEBUG/dalvikvm(159): GC freed 27 objects / 1720 bytes in 75ms

Here's Debug trace:-
BluetoothTexting [Android Application]
DalvikVM[localhost:8603]
Thread [<3> main] (Suspended (exception RuntimeException))
ActivityThread.performLaunchActivity(ActivityThrea d$ActivityRecord, Intent) line: 2596
ActivityThread.handleLaunchActivity(ActivityThread $ActivityRecord, Intent) line: 2621
ActivityThread.access$2200(ActivityThread, ActivityThread$ActivityRecord, Intent) line: 126
ActivityThread$H.handleMessage(Message) line: 1932
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123
ActivityThread.main(String[]) line: 4595
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 521
ZygoteInit$MethodAndArgsCaller.run() line: 860
ZygoteInit.main(String[]) line: 618
NativeStart.main(String[]) line: not available [native method]
Thread [<13> Binder Thread #2] (Running)
Thread [<11> Binder Thread #1] (Running)

Here's console trace:-
[2010-05-25 23:31:01 - BluetoothTexting] ------------------------------
[2010-05-25 23:31:01 - BluetoothTexting] Android Launch!
[2010-05-25 23:31:01 - BluetoothTexting] adb is running normally.
[2010-05-25 23:31:01 - BluetoothTexting] Performing com.paad.bluetoothtexting.BluetoothTexting activity launch
[2010-05-25 23:31:01 - BluetoothTexting] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2010-05-25 23:31:05 - BluetoothTexting] Uploading BluetoothTexting.apk onto device 'HT04MPL00559'
[2010-05-25 23:31:05 - BluetoothTexting] Installing BluetoothTexting.apk...
[2010-05-25 23:31:06 - BluetoothTexting] Success!
[2010-05-25 23:31:06 - BluetoothTexting] Starting activity com.paad.bluetoothtexting.BluetoothTexting on device
[2010-05-25 23:31:07 - BluetoothTexting] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.paad.bluetoothtexting/.BluetoothTexting }
[2010-05-25 23:31:07 - BluetoothTexting] Attempting to connect debugger to 'com.paad.bluetoothtexting' on port 8603


I am an Android beginner...

Can you help?

Last edited by Rab; May 25th, 2010 at 06:42 PM.. Reason: extra info
 
Old May 26th, 2010, 10:37 AM
Registered User
 
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solution for BluetoothTexting

Hey.

I was running into the same trouble as I tested the BluetoothTexting today. After reviewing the code I recognized that the ArrayList is never initialized and therefore causes a NullPointerException while initializing the ArrayAdapter. A quick and dirty workaround would be to change following line:

private ArrayList<BluetoothDevice> foundDevices;

into

private ArrayList<BluetoothDevice> foundDevices = new ArrayList<BluetoothDevice>();

Actually I had no second device to check if it really works but there is a good chance.
 
Old May 27th, 2010, 06:58 AM
Rab Rab is offline
Registered User
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, that fixed it. Perhaps earlier implementation of Android didn't show this issue when the code was written. Anyway, onwards & upwards.

I have another question, although its slightly beyond the scope of the book (struggling to find another forum to ask the question)...

I am looking to present the device (HTC Desire) to a PC as a Human Interface Device (HID).

I am using the BluetoothTexting as a starting point.

The idea is to use "socket = btserver.accept()" to open up a pipe to the PC, and then I implement the HID protocol across the pipe.

1st question - Is this a valid approach, or does the HID need implemented in the Android / Linux operating system?


I have changed the UUID to reflect its a HID ("00001124-0000-1000-8000-00805F9B34FB") and the PC is recognising it as a HID. Good start.

Using a breakpoint I have confirmed the "socket = btserver.accept()" is being reached.

However when I click on "Next" on the PC (to start "Registering a HID device ot this system. Please Wait.") the PC reports "Registration Failed".

Breakpoints after the "socket = btserver.accept()" show that the accept does not complete and instead timesout after the 120 seconds.

Any ideas?


Here's the relevant logcat trace:-

05-26 22:47:46.000: WARN/ActivityManager(75): Launch timeout has expired, giving up wake lock!
05-26 22:47:46.029: WARN/ActivityManager(75): Activity idle timeout for HistoryRecord{46525e78 com.paad.bluetoothtexting/.BluetoothTexting}
05-26 22:47:49.110: INFO//system/bin/btld(11841): ##### USerial_Ioctl: BT_Wake, 0x8003 ####
05-26 22:47:49.160: WARN/BTLD(11842): info:x0
05-26 22:47:49.160: INFO/BTL-IFS(11842): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 10 pbytes (hdl 14)
05-26 22:47:49.160: DEBUG/DTUN_HCID_BZ4(11855): dtun_dm_sig_link_up()
05-26 22:47:49.160: INFO/DTUN_HCID_BZ4(11855): dtun_dm_sig_link_up: dummy_handle = 272
05-26 22:47:49.160: DEBUG/ADAPTER(11855): adapter_get_device(00:1B:FB:CE:61:EF)
05-26 22:47:49.160: ERROR/BluetoothEventLoop.cpp(75): pollData[0] is revented, check next one
05-26 22:47:49.160: ERROR/BluetoothEventLoop.cpp(75): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/11855/hci0/dev_00_1B_FB_CE_61_EF
05-26 22:47:49.210: WARN/BTLD(11842): ccb timer ticks: 2147483648
05-26 22:47:50.640: INFO/BTL-IFS(11842): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 11 pbytes (hdl 14)
05-26 22:47:50.640: DEBUG/DTUN_HCID_BZ4(11855): dtun_dm_sig_link_down()
05-26 22:47:50.640: INFO/DTUN_HCID_BZ4(11855): dtun_dm_sig_link_down device = 0xfbb0 handle = 272 reason = 19
05-26 22:47:50.640: ERROR/BluetoothEventLoop.cpp(75): pollData[0] is revented, check next one
05-26 22:47:50.640: ERROR/BluetoothEventLoop.cpp(75): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/11855/hci0/dev_00_1B_FB_CE_61_EF
05-26 22:47:50.660: DEBUG/BluetoothA2dpService(75): Received intent Intent { act=android.bluetooth.device.action.ACL_DISCONNECT ED (has extras) }
05-26 22:47:51.217: INFO//system/bin/btld(11841): ##### USerial_Ioctl: BT_Sleep, 0x8004 ####



Thanks in advance,
Rab
 
Old May 27th, 2010, 12:52 PM
Registered User
 
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bluetooth Texting

Rab , have u checked the bluetooth texting code on real device. does it work or not? if i have one android device and other a nokia mobile or laptop will it work or not?
 
Old July 29th, 2011, 02:20 PM
Registered User
 
Join Date: Jul 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default getting java.lang.securityException

hi reto,

i am getting java.lang.SecurityException though i have created android bluetooth permissions as written in the book....i have copied the program word-to-word from the book...but the log cat which i am getting says:
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): FATAL EXCEPTION: main
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): java.lang.SecurityException: Permission Denial: starting Intent { act=android.bluetooth.adapter.action.REQUEST_DISCO VERABLE cmp=com.android.settings/.bluetooth.RequestPermissionActivity } from ProcessRecord{449e6718 10373:org.example1/10068} (pid=10373, uid=10068) requires android.permission.BLUETOOTH
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at android.os.Parcel.readException(Parcel.java:1247)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at android.os.Parcel.readException(Parcel.java:1235)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at android.app.ActivityManagerProxy.startActivity(Act ivityManagerNative.java:1298)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at android.app.Instrumentation.execStartActivity(Inst rumentation.java:1373)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at android.app.Activity.startActivityForResult(Activi ty.java:2817)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at org.example1.BluetoothTexting$2.onClick(BluetoothT exting.java:80)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at android.view.View.performClick(View.java:2408)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at android.view.View$PerformClick.run(View.java:8816)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at android.os.Handler.handleCallback(Handler.java:587 )
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at android.os.Handler.dispatchMessage(Handler.java:92 )
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at android.os.Looper.loop(Looper.java:123)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at android.app.ActivityThread.main(ActivityThread.jav a:4627)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at java.lang.reflect.Method.invokeNative(Native Method)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at java.lang.reflect.Method.invoke(Method.java:521)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:858)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:616)
07-29 23:16:19.256: ERROR/AndroidRuntime(10373): at dalvik.system.NativeStart.main(Native Method)
07-29 23:16:19.272: WARN/ActivityManager(1086): Force finishing activity org.example1/.BluetoothTexting
07-29 23:16:19.780: WARN/ActivityManager(1086): Activity pause timeout for HistoryRecord{44982578 org.example1/.BluetoothTexting}
07-29 23:16:20.389: DEBUG/dalvikvm(9659): GC_EXTERNAL_ALLOC freed 5301 objects / 248000 bytes in 100ms
07-29 23:16:20.475: DEBUG/dalvikvm(9659): GC_EXTERNAL_ALLOC freed 747 objects / 49360 bytes in 58ms
07-29 23:16:20.624: DEBUG/dalvikvm(9659): GC_EXTERNAL_ALLOC freed 37 objects / 1360 bytes in 111ms
07-29 23:16:20.811: DEBUG/dalvikvm(9659): GC_EXTERNAL_ALLOC freed 385 objects / 13488 bytes in 85ms
07-29 23:16:25.139: WARN/KeyCharacterMap(1086): Can't open keycharmap file
07-29 23:16:25.139: WARN/KeyCharacterMap(1086): Error loading keycharmap file '/system/usr/keychars/qtouch-touchscreen.kcm.bin'. hw.keyboards.65538.devname='qtouch-touchscreen'
07-29 23:16:25.139: WARN/KeyCharacterMap(1086): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
07-29 23:16:26.436: INFO/Process(10373): Sending signal. PID: 10373 SIG: 9
07-29 23:16:26.499: INFO/ActivityManager(1086): Process org.example1 (pid 10373) has died.
07-29 23:16:26.499: INFO/WindowManager(1086): WIN DEATH: Window{449acbe8 org.example1/org.example1.BluetoothTexting paused=false}
07-29 23:16:27.186: WARN/KeyCharacterMap(9659): Can't open keycharmap file
07-29 23:16:27.186: WARN/KeyCharacterMap(9659): Error loading keycharmap file '/system/usr/keychars/qtouch-touchscreen.kcm.bin'. hw.keyboards.65538.devname='qtouch-touchscreen'
07-29 23:16:27.186: WARN/KeyCharacterMap(9659): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
07-29 23:16:27.795: DEBUG/dalvikvm(9659): GC_FOR_MALLOC freed 9397 objects / 404200 bytes in 58ms
07-29 23:16:28.022: DEBUG/dalvikvm(9659): GC_EXTERNAL_ALLOC freed 5876 objects / 271776 bytes in 69ms
07-29 23:16:28.108: DEBUG/dalvikvm(9659): GC_EXTERNAL_ALLOC freed 1020 objects / 57264 bytes in 60ms
07-29 23:16:28.124: WARN/KeyCharacterMap(9659): Can't open keycharmap file
07-29 23:16:28.124: WARN/KeyCharacterMap(9659): Error loading keycharmap file '/system/usr/keychars/qtouch-touchscreen.kcm.bin'. hw.keyboards.65538.devname='qtouch-touchscreen'
07-29 23:16:28.124: WARN/KeyCharacterMap(9659): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
07-29 23:16:28.233: DEBUG/dalvikvm(9659): GC_EXTERNAL_ALLOC freed 429 objects / 15872 bytes in 43ms
07-29 23:16:28.366: INFO/ActivityManager(1086): Start proc com.google.android.voicesearch for broadcast com.google.android.voicesearch/.logging.LoggingReceiver: pid=10425 uid=10051 gids={3003}
07-29 23:16:28.538: INFO/ActivityThread(10425): Publishing provider com.google.android.voicesearch.VoiceSearchResultPr ovider: com.google.android.voicesearch.VoiceSearchResultPr ovider
07-29 23:16:29.374: WARN/KeyCharacterMap(9659): Can't open keycharmap file
07-29 23:16:29.374: WARN/KeyCharacterMap(9659): Error loading keycharmap file '/system/usr/keychars/qtouch-touchscreen.kcm.bin'. hw.keyboards.65538.devname='qtouch-touchscreen'
07-29 23:16:29.374: WARN/KeyCharacterMap(9659): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
07-29 23:16:29.819: INFO/ActivityManager(1086): No longer want com.android.providers.calendar (pid 10061): hidden #16
07-29 23:16:30.064: WARN/ActivityManager(1086): Activity destroy timeout for HistoryRecord{44982578 org.example1/.BluetoothTexting}
07-29 23:16:40.655: DEBUG/dalvikvm(9659): GC_EXPLICIT freed 565 objects / 27848 bytes in 76ms
07-29 23:17:30.038: INFO/power(1086): *** set_screen_state 0
07-29 23:17:30.054: DEBUG/SurfaceFlinger(1086): About to give-up screen, flinger = 0x120f38
07-29 23:17:30.069: DEBUG/Sensors(1086): using accelerometer (name=accelerometer)
07-29 23:17:30.100: DEBUG/WifiService(1086): ACTION_SCREEN_OFF
07-29 23:17:30.100: DEBUG/WifiService(1086): setting ACTION_DEVICE_IDLE timer for 120,000 ms
07-29 23:17:35.202: DEBUG/StatusBar(1086): DISABLE_EXPAND: yes
07-29 23:17:35.225: INFO/ActivityManager(1086): Start proc com.android.settings for broadcast com.android.settings/.widget.SettingsAppWidgetProvider: pid=10438 uid=1000 gids={3003, 3002, 3001}
07-29 23:17:35.327: DEBUG/GoogleLoginService(1219): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
07-29 23:17:35.436: DEBUG/skia(1086): purging 215K from font cache [8 entries]
07-29 23:17:35.530: INFO/ActivityManager(1086): No longer want com.google.android.gm (pid 10079): hidden #16
07-29 23:17:41.842: DEBUG/dalvikvm(1219): GC_EXPLICIT freed 755 objects / 39192 bytes in 77ms
07-29 23:18:16.788: ERROR/Tethering(1086): active iface (usb0) reported as added, ignoring
07-29 23:18:16.788: DEBUG/WifiService(1086): ACTION_BATTERY_CHANGED pluggedType: 2
07-29 23:19:30.116: INFO/wpa_supplicant(1163): CTRL-EVENT-STATE-CHANGE id=-1 state=8 BSSID=00:00:00:00:00:00
07-29 23:19:30.116: DEBUG/WifiService(1086): got ACTION_DEVICE_IDLE
07-29 23:19:30.124: VERBOSE/WifiMonitor(1086): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=8 BSSID=00:00:00:00:00:00]
07-29 23:19:30.139: VERBOSE/WifiStateTracker(1086): Changing supplicant state: SCANNING ==> DORMANT
07-29 23:19:30.155: DEBUG/WifiStateTracker(1086): Reset connections and stopping DHCP
07-29 23:19:30.456: INFO/wpa_supplicant(1163): CTRL-EVENT-STATE-CHANGE id=-1 state=8 BSSID=00:00:00:00:00:00
07-29 23:19:30.459: VERBOSE/WifiMonitor(1086): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=8 BSSID=00:00:00:00:00:00]
07-29 23:19:31.166: DEBUG/WifiStateTracker(1086): Disabling interface
07-29 23:19:31.166: DEBUG/NetworkStateTracker(1086): setDetailed state, old =SCANNING and new state=IDLE
07-29 23:19:31.202: INFO/wpa_supplicant(1163): CTRL-EVENT-DRIVER-STATE STOPPED
07-29 23:19:31.202: VERBOSE/WifiMonitor(1086): Event [CTRL-EVENT-DRIVER-STATE STOPPED]
07-29 23:19:31.210: VERBOSE/WifiStateTracker(1086): Changing supplicant state: DORMANT ==> DORMANT
07-29 23:19:31.210: DEBUG/ConnectivityService(1086): Dropping ConnectivityChange for WIFI: DISCONNECTED/IDLE
07-29 23:21:06.592: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:21:15.694: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:21:15.733: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:21:15.733: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:26:06.600: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:26:19.366: DEBUG/dalvikvm(9982): GC_EXPLICIT freed 348 objects / 19176 bytes in 99ms
07-29 23:26:24.335: DEBUG/dalvikvm(9776): GC_EXPLICIT freed 2994 objects / 158824 bytes in 68ms
07-29 23:28:25.210: INFO/EventLogService(1219): Aggregate from 1311960505044 (log), 1311960505044 (data)
07-29 23:28:30.288: DEBUG/dalvikvm(1219): GC_EXPLICIT freed 788 objects / 146720 bytes in 82ms
07-29 23:29:01.569: DEBUG/dalvikvm(10043): GC_FOR_MALLOC freed 13863 objects / 491328 bytes in 52ms
07-29 23:29:02.014: DEBUG/dalvikvm(10043): GC_FOR_MALLOC freed 16391 objects / 576312 bytes in 44ms
07-29 23:29:02.460: DEBUG/dalvikvm(10043): GC_FOR_MALLOC freed 15378 objects / 504416 bytes in 43ms
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): Error
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): java.net.UnknownHostException: api04.androidpit.info
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at java.net.InetAddress.lookupHostByName(InetAddress. java:513)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at java.net.InetAddress.getAllByNameImpl(InetAddress. java:278)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at java.net.InetAddress.getAllByName(InetAddress.java :242)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at org.apache.http.impl.conn.DefaultClientConnectionO perator.openConnection(DefaultClientConnectionOper ator.java:136)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at org.apache.http.impl.conn.AbstractPoolEntry.open(A bstractPoolEntry.java:164)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at org.apache.http.impl.conn.AbstractPooledConnAdapte r.open(AbstractPooledConnAdapter.java:119)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at org.apache.http.impl.client.DefaultRequestDirector .execute(DefaultRequestDirector.java:348)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at org.apache.http.impl.client.AbstractHttpClient.exe cute(AbstractHttpClient.java:555)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at org.apache.http.impl.client.AbstractHttpClient.exe cute(AbstractHttpClient.java:487)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at org.apache.http.impl.client.AbstractHttpClient.exe cute(AbstractHttpClient.java:465)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at de.androidpit.app.util.Communicator.executeQueryIn ternal(Communicator.java:273)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at de.androidpit.app.util.Communicator.executeQuery(C ommunicator.java:212)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at de.androidpit.app.services.UpdateCheckService.retr ieveUpdatesAndNotify(UpdateCheckService.java:143)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at de.androidpit.app.services.UpdateCheckService.run( UpdateCheckService.java:113)
07-29 23:29:02.585: ERROR/UpdateCheckService(10043): at java.lang.Thread.run(Thread.java:1096)
07-29 23:31:06.616: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:31:15.710: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:31:15.741: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:31:15.741: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:32:15.975: INFO/ActivityManager(1086): Start proc com.android.providers.calendar for content provider com.android.providers.calendar/.CalendarProvider2: pid=10455 uid=10005 gids={3003}
07-29 23:32:16.030: INFO/ActivityThread(10455): Publishing provider com.android.calendar: com.android.providers.calendar.CalendarProvider2
07-29 23:32:16.147: DEBUG/Calendar(10455): missed alarms found: 0
07-29 23:32:16.202: WARN/GDataClient(1219): Unable to execute HTTP request.java.net.UnknownHostException: android.clients.google.com
07-29 23:32:16.202: DEBUG/CalendarSyncAdapter(1219): Unable to get calendar accountsjava.net.UnknownHostException: android.clients.google.com
07-29 23:32:16.225: DEBUG/SyncManager(1086): failed sync operation authority: com.android.calendar account: Account {[email protected], type=com.google} extras: [] syncSource: 4 when: 126303278 expedited: false, SyncResult: stats [ numIoExceptions: 1]
07-29 23:32:16.249: INFO/ActivityManager(1086): No longer want com.facebook.katana (pid 9785): hidden #16
07-29 23:32:19.545: INFO/ActivityManager(1086): Start proc com.facebook.katana for service com.facebook.katana/.platform.FacebookSyncAdapterService: pid=10466 uid=10016 gids={3003, 1015}
07-29 23:32:19.631: INFO/ActivityThread(10466): Publishing provider com.facebook.katana.provider.NotificationsProvider : com.facebook.katana.provider.NotificationsProvider
07-29 23:32:19.702: INFO/ActivityThread(10466): Publishing provider com.facebook.katana.provider.UserValuesProvider: com.facebook.katana.provider.UserValuesProvider
07-29 23:32:19.710: INFO/ActivityThread(10466): Publishing provider com.facebook.katana.provider.FriendsProvider: com.facebook.katana.provider.FriendsProvider
07-29 23:32:19.717: INFO/ActivityThread(10466): Publishing provider com.facebook.katana.provider.MailboxProvider: com.facebook.katana.provider.MailboxProvider
07-29 23:32:19.725: INFO/ActivityThread(10466): Publishing provider com.facebook.katana.provider.UserStatusesProvider: com.facebook.katana.provider.UserStatusesProvider
07-29 23:32:19.725: INFO/ActivityThread(10466): Publishing provider com.facebook.katana.provider.PhotosProvider: com.facebook.katana.provider.PhotosProvider
07-29 23:32:20.233: DEBUG/dalvikvm(10466): GC_EXTERNAL_ALLOC freed 2902 objects / 188376 bytes in 47ms
07-29 23:32:20.342: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:32:20.366: DEBUG/SyncManager(1086): failed sync operation authority: com.android.contacts account: Account {[email protected], type=com.facebook.auth.login} extras: [] syncSource: 4 when: 126306892 expedited: false, SyncResult: stats [ numIoExceptions: 1]
07-29 23:32:20.397: INFO/ActivityManager(1086): No longer want com.android.defcontainer (pid 10315): hidden #16
07-29 23:32:21.116: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:32:22.194: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:32:25.436: DEBUG/dalvikvm(9776): GC_EXPLICIT freed 460 objects / 23888 bytes in 58ms
07-29 23:32:30.116: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:32:30.467: DEBUG/dalvikvm(1219): GC_EXPLICIT freed 700 objects / 33432 bytes in 91ms
07-29 23:32:52.272: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:33:00.210: DEBUG/dalvikvm(1086): GC_FOR_MALLOC freed 27965 objects / 1363112 bytes in 135ms
07-29 23:33:20.756: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:33:25.819: DEBUG/dalvikvm(10466): GC_EXPLICIT freed 5463 objects / 329544 bytes in 68ms
07-29 23:33:30.170: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:33:50.835: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:34:20.913: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:34:30.225: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:34:35.288: DEBUG/dalvikvm(10466): GC_EXPLICIT freed 3488 objects / 205848 bytes in 62ms
07-29 23:34:54.991: INFO/ActivityManager(1086): Start proc com.google.android.gm for service com.google.android.gm/.provider.MailSyncAdapterService: pid=10486 uid=10019 gids={3003, 1015}
07-29 23:34:55.108: INFO/ActivityThread(10486): Publishing provider gmail-ls: com.google.android.gm.provider.MailProvider
07-29 23:34:55.124: INFO/ActivityThread(10486): Publishing provider com.google.android.gm.attachmentspreviews: com.google.android.gm.AttachmentPreviewProvider
07-29 23:34:55.124: INFO/ActivityThread(10486): Publishing provider com.google.android.gmail.SuggestionProvider: com.google.android.gm.SuggestionsProvider
07-29 23:34:55.147: INFO/ActivityThread(10486): Publishing provider gmail-downloads: com.google.android.gm.downloadprovider.DownloadPro vider
07-29 23:34:55.460: INFO/Gmail(10486): calculateUnknownSyncRationalesAndPurgeInBackground : queueing
07-29 23:34:55.475: INFO/Gmail(10486): calculateUnknownSyncRationalesAndPurgeInBackground : running
07-29 23:34:55.538: INFO/Gmail(10486): getStartSyncRequest: handledServerOpId: 141557, upperFetchedConvoId: 1365217046169649152, lowerFetchedConvoId: 0, ackedClientOp: 0
07-29 23:34:55.600: DEBUG/dalvikvm(10486): GC_FOR_MALLOC freed 4588 objects / 233304 bytes in 53ms
07-29 23:34:55.819: DEBUG/SyncManager(1086): failed sync operation authority: gmail-ls account: Account {[email protected], type=com.google} extras: [] syncSource: 4 when: 126462317 expedited: false, SyncResult: stats [ numIoExceptions: 1]
07-29 23:34:55.842: INFO/ActivityManager(1086): No longer want com.android.voicedialer (pid 10323): hidden #16
07-29 23:35:05.139: DEBUG/dalvikvm(1219): GC_EXPLICIT freed 282 objects / 11168 bytes in 64ms
07-29 23:36:06.617: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:37:21.178: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:37:22.241: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:37:26.256: DEBUG/dalvikvm(10466): GC_EXPLICIT freed 1958 objects / 114696 bytes in 82ms
07-29 23:37:52.311: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:38:22.381: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:39:28.389: WARN/GDataClient(1219): Unable to execute HTTP request.java.net.UnknownHostException: android.clients.google.com
07-29 23:39:28.389: DEBUG/Sync(1219): Unable to process gdata feed: android.clients.google.com
07-29 23:39:28.397: DEBUG/SyncManager(1086): failed sync operation authority: subscribedfeeds account: Account {[email protected], type=com.google} extras: [] syncSource: 4 when: 126735664 expedited: false, SyncResult: stats [ numIoExceptions: 1]
07-29 23:39:33.420: DEBUG/dalvikvm(1219): GC_EXPLICIT freed 492 objects / 28488 bytes in 76ms
07-29 23:41:06.631: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:41:15.725: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:41:15.756: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:41:15.764: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:42:21.241: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:42:22.303: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:42:26.327: DEBUG/dalvikvm(10466): GC_EXPLICIT freed 3069 objects / 182328 bytes in 86ms
07-29 23:42:52.366: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:43:22.428: ERROR/HttpOperation(10466): Encountered exception: java.net.UnknownHostException: api.facebook.com
07-29 23:46:00.000: INFO/ActivityManager(1086): No longer want com.android.vending (pid 10329): hidden #16
07-29 23:46:00.014: INFO/ActivityManager(1086): No longer want com.svox.pico (pid 10338): hidden #17
07-29 23:46:05.155: DEBUG/dalvikvm(10381): GC_EXPLICIT freed 1506 objects / 109016 bytes in 74ms
07-29 23:46:06.639: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:46:10.147: DEBUG/dalvikvm(10392): GC_EXPLICIT freed 2261 objects / 147096 bytes in 62ms
07-29 23:51:06.647: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:51:15.741: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:51:15.772: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
07-29 23:51:15.772: DEBUG/SntpClient(1086): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org


Please please help me out!!!
Please





Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface between web app and win app alienaheart ASP.NET 2.0 Professional 4 August 4th, 2009 09:29 AM
Starting a console App from a vb.net windows app RobCarter Pro Visual Basic 2005 4 June 24th, 2009 09:20 AM
02 IN 01 Desktop App (App+Wind Handler) pk_ocp .NET Framework 2.0 0 February 26th, 2008 02:58 PM
Convert a VB.Net app to a web app? furjaw VB.NET 3 September 24th, 2007 12:27 PM
help with nullPointerException tomcat ajrobson Servlets 1 March 26th, 2007 01:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.