on 05-11-2012 9:29 AM
Hi,
I want to register the device in SUP 2.1.2:
Application application = Application.getInstance();
application.setApplicationIdentifier("SimpleMBO");
//ApplicationCallback applicationCallback = new MyApplicationCallback();
//application.setApplicationCallback(applicationCallback);
application.setApplicationContext(SUPApplicationActivity.this);
ConnectionProperties connectionProperties = application.getConnectionProperties();
connectionProperties.setServerName(SERVERNAME);
connectionProperties.setPortNumber(PORT);
LoginCredentials loginCredentials = new LoginCredentials(USERNAME,USERPASSWORD);
connectionProperties.setLoginCredentials(loginCredentials);
MBOSimpleProjectDB.setApplication(application);
if (application.getRegistrationStatus() != RegistrationStatus.REGISTERED){
try {
application.registerApplication(100);
Log.d(tag, "Complete register");
} catch (Exception e) {
Log.d(tag, "Error register: " + e);
}
}
else {
try {
application.startConnection(100);
Log.d(tag, "Complete start");
} catch (Exception e) {
Log.d(tag, "Error start: " + e);
}
}
But I have error 'Could not connect to server. Verify Relay Server URL Template'.
I do not use Relay Server. Help me please.
Hi Pavel,
you could read more about it in one of my blog post http://scn.sap.com/community/mobile/blog/2012/05/02/sup-212-native-android-mbo-non-doe-based-approac...
I hope that will help you to some extent.
Regards,
Srinivas Divakarla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes you can solve this error..Its very simple..
Delete the application from your emulator if u are running on it. Delete the same device from the SCC.
If you are using a device then delete the application and restart the device and install again.
It will solve the error.
Let me know if the error still persists.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.