Creating a bluetooth server with reflection method android
<p>I need to have an android bluetooth server application. I've successfully created a client which use the reflection method like this:</p>

<pre><code>Method m = zee.getClass().getMethod("createRfcommSocket", new Class[] { int.class });
sock = (BluetoothSocket) m.invoke(device, 1);
</code></pre>

<p>But is there any way I can adapt this codesnippet so my device can act as a server instead of a client? </p>
