INNER CODE UNIT · Java
DebugDB
amitshekhariitbhu/Android-Debug-Database · debug-db-base/src/main/java/com/amitshekhar/DebugDB.java:39
public class DebugDB {
private static final String TAG = DebugDB.class.getSimpleName();
private static final int DEFAULT_PORT = 8080;
private static ClientServer clientServer;
private static String addressLog = "not available";
private DebugDB() {
// This class in not publicly instantiable
}
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);