// Path: app/src/main/java/com/haogefeifei/odoo/application/App.java
// public class App extends Application {
// 
//     public static final String TAG = "OdooApp";
// 
//     private static App application;
//     private static OdooConnect instanceConnect = OdooConnect.getInstanceApplication();
// 
//     public OdooConnect getInstanceConnect() {
//         return instanceConnect;
//     }
// 
//     public static App getInstance() {
//         return application;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         application = this;
// 
//         initMap();
//         initConnectConfig();
//     }
// 
//     private void initMap() {
// 
//         //在使用SDK各组件之前初始化context信息，传入ApplicationContext
//         //注意该方法要再setContentView方法之前实现
//         SDKInitializer.initialize(getApplicationContext());
//     }
// 
//     private void initConnectConfig(){
// 
//         OdooConnect connect = OdooConnect.getInstance();
//         connect.setHost("192.168.31.247");
//         connect.setPort(8069);
//         connect.setDb("odoo");
//     }
// }


import com.haogefeifei.odoo.application.App;
package com.haogefeifei.odoo.api;


/**
 * XmlRPC访问Odoo连接参数对象
 *
 * @author feifei
 */
public class OdooConnect {

    private static OdooConnect instance = new OdooConnect();

    public static OdooConnect getInstance() {

// Path: app/src/main/java/com/haogefeifei/odoo/application/App.java
// public class App extends Application {
// 
//     public static final String TAG = "OdooApp";
// 
//     private static App application;
//     private static OdooConnect instanceConnect = OdooConnect.getInstanceApplication();
// 
//     public OdooConnect getInstanceConnect() {
//         return instanceConnect;
//     }
// 
//     public static App getInstance() {
//         return application;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         application = this;
// 
//         initMap();
//         initConnectConfig();
//     }
// 
//     private void initMap() {
// 
//         //在使用SDK各组件之前初始化context信息，传入ApplicationContext
//         //注意该方法要再setContentView方法之前实现
//         SDKInitializer.initialize(getApplicationContext());
//     }
// 
//     private void initConnectConfig(){
// 
//         OdooConnect connect = OdooConnect.getInstance();
//         connect.setHost("192.168.31.247");
//         connect.setPort(8069);
//         connect.setDb("odoo");
//     }
// }


// Path: app/src/main/java/com/haogefeifei/odoo/api/OdooConnect.java
import com.haogefeifei.odoo.application.App;

package com.haogefeifei.odoo.api;


/**
 * XmlRPC访问Odoo连接参数对象
 *
 * @author feifei
 */
public class OdooConnect {

    private static OdooConnect instance = new OdooConnect();

    public static OdooConnect getInstance() {

        return App.getInstance().getInstanceConnect();