i checked it but its peer to peer connection but i wanna just send a file to any device this device will not have my application it will just took the file
On Apr 30, 10:51 am, gjs <garyjamessi...@gmail.com> wrote: > Hi, > > Build bluetooth chat demo app from sdk & try connecting with that. > > Regards > > On Apr 30, 4:43 pm, hüseyin toplu <hsy...@gmail.com> wrote: > > > > > > > > > i found my problem problem have server code > > tmp = mAdapter.listenUsingRfcommWithServiceRecord(NAME_SECURE, > > MY_UUID_SECURE); > > } else { > > tmp = mAdapter.listenUsingRfcommWithServiceRecord( > > NAME_INSECURE, MY_UUID_INSECURE); > > } > > } catch (IOException e) {} > > > Problem is uuid because I dont know other device uuid.i dont send file > > to my application i wanna just send file over bluettooth to any device > > > i chanced this code with this > > m = mAdapter.getClass().getMethod("listenUsingRfcommOn", new Class[] > > { int.class }); > > tmp = (BluetoothServerSocket) > > m.invoke(mAdapter, 1); > > } catch (SecurityException e) { > > > > e.printStackTrace(); > > } catch (Exception e) { > > e.printStackTrace(); > > } > > it send java.lang.reflect.invocationtargetexception erorr please > > help :S -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en