开发者

Android - Using bluetooth slows OS to complete crawl

I've been playing around with Bluetooth and built a test app that's almost identical to the functionality found here: http://developer.android.com/guide/topics/wireless/bluetooth.html#Manag开发者_如何学编程ingAConnection

I found that when I ran the app, I could talk to another BT device and communicate with it just fine. However, after closing the app my system would slow down to become almost unusable.

At this point, I started looking around at what resources weren't cleaned up. I overloaded the OnStop/onPause of my activity and in there I close my open socket. This had no effect...

So I'm wondering, is there something else I'm not properly closing or cleaning up that would be causing my AndroidOS to slowdown?


If you're using a Samsung device, there is a known bluetooth firmware bug for android 2.1 and lower. I have encountered this bug on the galaxy tab and galaxy ace. The workaround available is to disable and enable the bluetooth adapter when you have finished using it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜