Code example for Properties

Methods: put

0
		super.onCreate(savedInstanceState);
		tv = new TextView(this);
		tv.setText("Hello, Android");
		setContentView(tv);
 
		Properties prop = new Properties();
		prop.put("imsapi.userId", "sip:alice@domain.com");
		prop.put("imsapi.proxy", "192.168.2.155:5081");
		prop.put("imsapi.listeningPort", "5078");
		prop.put("imsapi.listeningIP", "127.0.0.1");
		prop.put("imsapi.protocol", "TCP");
		ImsManager manager = ImsManager.getInstance(prop);
		manager.setListener(new ImsManagerListener());
		 
		try { 
			manager.init();
		} catch (ImsException e) {
			e.printStackTrace();
		} 
	}