I am developing an application on Asha 202 which connects a spp bluetooth device. When the device is paired and comes active, the OS will prompt for connection. After I answered "Accept", the device is connected. But I am not able to get the StreamConnection in my application.
I have tried discoveryAgent.retrieveDevices(DiscoveryAgent.CACHED); and discoveryAgent.retrieveDevices(DiscoveryAgent.PREKNOWN);. Both returns null. I have also tried discoveryAgent.startInquiry(DiscoveryAgent.GIAC, discoveryListener); and discoveryAgent.startInquiry(DiscoveryAgent.LIAC, discoveryListener);. But I can't get anything neither.
Are there any ways to get those connected streams?