Sending a File using Bluetooth OBEX Object Push Profile (OPP)

前端 未结 4 1829
走了就别回头了
走了就别回头了 2020-11-29 01:32

Is there any way to send a file using the android bluetooth API using OBEX?

I need to send a file to a printer that supports OBEX OPP only.

I can send the fi

相关标签:
4条回答
  • 2020-11-29 02:03

    There are no public APIs for accessing OBEX. On why there are no APIs - Google knows best :)

    0 讨论(0)
  • 2020-11-29 02:10

    i think there is support in Android for OPP.There is a path in android/packages/apps/Bluetooth/...../opp/*.java

    If your version doesnot have this, i found a useful link that will help to use OBEX OPP in android. Android framework modification is needed here.

    http://i-miss-erin.blogspot.in/2009/10/how-to-have-obex-function-in-android.html

    0 讨论(0)
  • 2020-11-29 02:14

    I've written a sample application to test the answer provided. Unfortunately it doesn't work for me, so I think this question is not completely answered.

    0 讨论(0)
  • 2020-11-29 02:26

    Someone said that it works fine in some Samsung phones, but not work in other Samsung phones. Then I used "BluetoothShare" to write a simple test program, and ask my friends to borrow me phone to test...

    1. It can NOT work in HTC Incredible
    2. It can work in SonyEricsson Xperia arc S

    Therefore, I think that some phones are not compatible with these BluetoothShare codes...

    0 讨论(0)
提交回复
热议问题