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

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -