Пример #1
0
  public String getServerConnectionString(int index) {

    ServiceRecord dbS = (ServiceRecord) serviceList.elementAt(index);
    String tempURL = dbS.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT, false);
    System.out.println("ServerConn:" + tempURL);
    // return the connection String
    return tempURL;
  }
Пример #2
0
 public String getServerFriendlyName(int index) throws IOException {
   ServiceRecord dbS = (ServiceRecord) serviceList.elementAt(index);
   return dbS.getHostDevice().getFriendlyName(true);
 }