- Common ways to obtain Config$Builder
private void myMethod () {}
public static void main(String[] args) throws Exception { Config.Builder b = new Config.Builder(); b.resource(args[0]).port(8080).host("127.0.0.1"); Nettosphere s = new Nettosphere(b.build()); s.start(); String a = ""; logger.info("NettoSphere Server started"); logger.info("Type quit to stop the server"); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (!(a.equals("quit"))) { a = br.readLine(); } System.exit(-1); }
private void getImages() { Intent intent = new Intent(mContext, ImagePickerActivity.class); Config config = new Config.Builder() .setTabBackgroundColor(R.color.white) // set tab background color. Default white. .setTabSelectionIndicatorColor(R.color.blue) .setCameraButtonColor(R.color.green) .setSelectionLimit(2) // set photo selection limit. Default unlimited selection. .build(); ImagePickerActivity.setConfig(config); startActivityForResult(intent, INTENT_REQUEST_GET_IMAGES);}
public static void main(String[] args) throws Exception { Config.Builder b = new Config.Builder(); b.resource(args[0]).port(8080).host("127.0.0.1"); Nettosphere s = new Nettosphere(b.build()); s.start(); String a = ""; logger.info("NettoSphere Server started"); logger.info("Type quit to stop the server"); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (!(a.equals("quit"))) { a = br.readLine(); } System.exit(-1); }
new Config.Builder() .host(SERVER_HOST) .port(SERVER_PORT)
Config.Builder b = new Config.Builder(); b.resource("./app") .initParam(ApplicationConfig.WEBSOCKET_CONTENT_TYPE, "application/json")
Config.Builder b = new Config.Builder(); b.resource("./app") .initParam("com.twitter.consumer.key", key)