INNER CODE UNIT · Java

initialize

amitshekhariitbhu/Android-Debug-Database · debug-db-base/src/main/java/com/amitshekhar/DebugDB.java:50

    public static void initialize(Context context, DBFactory dbFactory) {
        int portNumber;

        try {
            portNumber = Integer.valueOf(context.getString(R.string.PORT_NUMBER));
        } catch (NumberFormatException ex) {
            Log.e(TAG, "PORT_NUMBER should be integer", ex);
            portNumber = DEFAULT_PORT;
            Log.i(TAG, "Using Default port : " + DEFAULT_PORT);
        }

        clientServer = new ClientServer(context, portNumber, dbFactory);
        clientServer.start();
        addressLog = NetworkUtils.getAddressLog(context, portNumber);
        Log.d(TAG, addressLog);
    }

    public static String getAddressLog() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…