android 2.1 using usb bluetooth

by WuZhenda » Thu, 30 Dec 2010 22:14:55 GMT

Sponsored Links
 Hi,all.I'm trying to use usb bluetooth in android 2.1.
I find I can use  "bttest enable", "bttest disable" ,and "scanetc bluztool
in adb mode,but when I try to set bluetooth ON,in the UI,

It didn't work,the logcat just show  "V/BluetoothEventRedirector( 2143):
Received android.bluetooth.adapter.action.STA

I have changed bluetooth.c  to avoid use  rfkill method.and modified
init.rc  like this:
anyone can give some advice
 mkdir /data/misc/bluetoothd 0777 bluetooth bluetooth

service dbus /system/bin/dbus-daemon --system --nofork
    socket dbus stream 660 bluetooth bluetooth
    user bluetooth
    group bluetooth net_bt_admin

service bluetoothd /system/bin/logwrapper /system/bin/bluetoothd -d -n
    socket bluetooth stream 660 bluetooth bluetooth
    socket dbus_bluetooth stream 660 bluetooth bluetooth
    # init.rc does not yet support applying capabilities, so run as root and
    # let bluetoothd drop uid to bluetooth with the right linux capabilities
    group bluetooth net_bt_admin misc

service hciattach /system/bin/logwrapper /system/bin/hciattach -l
    user root
    group bluetooth net_bt_admin misc

service hfag /system/bin/sdptool add --channel=10 HFAG
    user bluetooth
    group bluetooth net_bt_admin

service hsag /system/bin/sdptool add --channel=11 HSAG
    user bluetooth
    group bluetooth net_bt_admin

service opush /system/bin/sdptool add --channel=12 OPUSH
    user bluetooth
    group bluetooth net_bt_admin

service pbap /system/bin/sdptool add --channel=19 PBAP
    user bluetooth
    group bluetooth net_bt_admin


Other Threads

1. Spreadsheet View

I've been trying to make a layout that displays something like a mini
spreadsheet that's specialized for my app.  I would like it to have
headers for both rows and columns.  The row header can only pan left
and right.  The column header can only pan up and down.

Hard to explain in words, so I'll try a picture (must be seen in a
fixed pitch font):

Stays| ... T3 T4 T5 ...
Row 3| ... 32 31  7 ...
Row 4| ... 17 21  9 ...

If the user pushes the image up the screen, row 3 goes away and row 5
appears but the header row stays.  If the user pushes the image to the
left, column T3 goes away and column T6 appears and the header column

Having the "..." continuation hint would be nice, but is not

I would also like to be able to have more than 1 header row and column
(the ones that stay fixed). The info in the upper left quadrant of the
spreadsheet would always stay put.

It would be good to have the spreadsheet retain orientation in both
landscape and portrait to allow the user to choose if the rows or
columns would benefit from more display space.

A nice feature would be to let the user resize rows and/or columns.
This would be especially helpful for the fixed headers as display
space is at a premium.

I don't see anything that scrolls right or left nor anything that
would scroll both right/left and up/down as would be needed for the
lower right quadrant so I'm not even sure where to start.

I suspect nothing like this exists as a single view I can simple drop
into my xml, but how would I create such a thing by combining other
views?  Is there some other way through code to do his?

I'm new so simple hints are appreciated.  Thanks in advance.

- Mitch


2. Problems with the tutorials and SDK/Emulator 1.6

I have no idea what the problem is, but you should look at the output
from logcat.

This is where the relevant information regarding the app crashing is.


Xavier Ducrohet
Android SDK Tech Lead
Google Inc.


3. Help! I get this error message concerning the AVD

4. Cannot write SharedPreferences after update!! Help!

5. Agent/Actor programming on Android.

6. Tabview with same activity in tabs

7. AudioTrack question