javax.bluetooth.DiscoveryAgent

DiscoveryAgent.startInquiry(int accessCode, DiscoveryListener listener)

It is possible to start device discovery with accessCode parameter set to DiscoveryAgent.LIAC, but note that S60 devices can only be discovered with accessCode parameter set to DiscoveryAgent.GIAC. See the chapter about LocalDevice.setDiscoverable() for explanation.