what is the same class of StreamConnection(javax.microedition.io.* ) fit for android?
<p>i got a API provided like below: </p>

<pre><code> public class HeadsetConnection extends Connection {
        private StreamConnection conn;
        private InputStream input;
        private OutputStream output;
    public boolean openConnection(String deviceID, int channel) throws IOException {
         String inURL = "btspp://" + deviceID + ":" + channel;

         conn = (StreamConnection)Connector.open(inURL);
            input = conn.openInputStream(); 
            output = conn.openOutputStream();

            return true;
        }
}
</code></pre>

<p>i don't know how to change this J2ME codes fit for Android? </p>
