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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to