on-internet
← Community

Android Bluetooth Client Server Connection

Stack Overflow ·

I want to created simple Android bluetooth Client-Server program Server Code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); tv1=(TextView)findViewById(R.id.textView1); tv2=(TextView)findViewById(R.id.textView2); mBluetoothAdapter=BluetoothAdapter.getDefaultAdapter(); try { mBluetoothServerSocket=mBluetoothAdapter.listenUsingRfcommWithServiceRecord(name,uUID); mBluetoothAdapter.cancelDiscovery(); mBluetoothSocket=mBluetoothServerSocket.accept(); mInputStream=mBluetoothSocket.getInputStream(); //if(mInputStream.av

Comments

Sign in or sign up to comment and upvote.

No comments yet.