After the configuration, you need to invoke the establishSession method to establish the session with the UNICOM® Digital Transformation Toolkit (UDTT™) server. It returns true if the session is successfully established with the server. Following is the code example:
if (adapter==null){ adapter=new MobileAdapter();
if (adapter.establishSession()==false){ System.out.println("Establish session failed!"); adapter=null; }