Skip to Content
0
Former Member
Apr 26, 2012 at 12:20 AM

Registering Android emulator to SCC without relayserver?

20 Views

Hi

I am trying to register Android Simulator to Sybase control center in manual mode using below code ,but I could not register devices , it keeps checking for relay server URL and throws an error unable to find good Relay server URL.

Is it mandatory to have relayserver setup to register even emulator to SCC, then how to bypass the error and register the device.

try {

/* STEP1:Initialize the App */

LiteUserManager.initInstance(getApplicationContext(), "FirstAPP");

/* STEP2:Provide SUP connection Settings and Register the User */

LiteUserManager usrMngr = LiteUserManager.getInstance();

// usrMngr.setConnectionProfile(Server_Host, Port, FormID/companyID);

if (!usrMngr.isRegistered()) {

usrMngr.setConnectionProfile(server, 80, "Company1");

// usrMngr.registerUser(userName, actCode);

usrMngr.registerUser("APPUSER", "123");

}

} catch (MessagingClientExceptione) {

e.printStackTrace();

}

Thanks

Santosh