Code example for MalformedURLException

Methods: toString

0
            Integer id = (Integer)client.call("login", db, user, pass);
            connection = new OpenErpConnect(server, port, db, user, pass, id);
        } catch (XMLRPCException e) {
            Log.d(CONNECTOR_NAME, e.toString());
        } catch (MalformedURLException e) {
            Log.d(CONNECTOR_NAME, e.toString());
        } catch (ClassCastException e) {
            Log.d(CONNECTOR_NAME, e.toString()); // Bad login or password
        } 
        return connection;
    } 
     
    /** 
     * Creates a new record for the given model width the values supplied, if 
     * you do not need the context, just pass null for it. 
     * Remember: In order to add different types in a Collection use Object, e.g. <br> 
     * <code> 
     * HashMap<String, Object> values = new HashMap<String, Object>(); <br> 
     * values.put("name", "hello"); <br> 
     * values.put("number", 10); <br> 
     * </code>