Creating a bluetooth server with reflection method android -


I need an Android Bluetooth server application. I have successfully created a client who uses the reflection method in this way:

  method m = zee.getClass (). GetMethod ("createRfcommSocket", new class [] {int.class}); Sock = (BluetoothSocket) m.invoke (device, 1);   

But can I customize this codecript so that my device works as a server rather than a customer?

If you are using two Android devices, then you can only create one subscribe, a normal one UUID is that most devices (like Bluetooth module) use. Sorry, for that you have to look for or look at my previous questions) But using UUID is very easy.

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -