My application tries to connect my phone with all the nearby phones via Bluetooth. Whenever device inquiry is started (agent.startInquiry(DiscoveryAgent.GIAC,discoverer)), an array of Objects of type RemoteDevice is obtained.
When i try to get the Remote device's bluetooth friendly name using
String temp = rDevice.getFriendlyName(true);
An Exception is thrown saying "RNR Failed: Could not access Remote Device". But when i try to get the friendly name again and again, it migth work also.
Is there any way to resolve this?