on 05-16-2012 9:09 AM
Hi Guys,
i have trouble with the registration of my Android-App to the SUP-Server.
The Code i use is mostly taken from the SUP101 Sample.
The error occurs at the code snippet below.
if (app.getRegistrationStatus() != RegistrationStatus.REGISTERED)
{
Log.d("Register", "App not registered");
connProps.setActivationCode("123");
app.registerApplication(TIMEOUT);
}
Is there a problem at the Backend-Site or is this an Application Error?
The exact Error Message in DDMS:
Thanks in advance.
Daniel
Hi Daniel,
The below mentioned URL might be helpful to figure out the problem
Hope that will help you.
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.
Hi Daniel,
The below mentioned URL might be helpful to figure out the problem
Hope that will help you.
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.
Hi Srinivas,
thanks for your Answer, i already read your blog post and it was very helpful especially the hint with the Activation Code.
I've also done Step 1-3 of your post Step 4 shouldn't be relevant because i don't use a relay Server at the moment.
But now i get this Error while trying to register the Application.
Which parts of the Activity or ...DB are responsible for the Activation.
Regards,
Daniel
Hi Srinivas,
thanks for your Answer, i already read your blog post and it was very helpful especially the hint with the Activation Code.
I've also done Step 1-3 of your post Step 4 shouldn't be relevant because i don't use a relay Server at the moment.
But now i get this Error while trying to register the Application.
Which parts of the Activity or ...DB are responsible for the Activation.
Regards,
Daniel
the Port in the Activity is "5001".
public class NewAndroActivity extends Activity {
private static final int REQUEST_DETAIL = 99;
private static String USERNAME = "user";
private static String PASSWORD = "pass"
private static String HOST = "myserver";
private static int PORT = 5001;
private static int TIMEOUT = 600;
...
If i change the Port to a wrong number i get an error message which says i have to verify my template.
So i guess the 5001 should be the right one.
The other point which confuses me is that the Device/Application is already registred but he runs into that if (app.getRegistrationStatus() != RegistrationStatus.REGISTERED).
I thought of that too, but the Activity runs into: app.getRegistrationStatus() != RegistrationStatus.REGISTERED.
I also tried to force app.startConnection(TIMEOUT), but then the DDMS claims that i have to register my Application first.
Now the error is more accurate: TM Error: InvalidValCode.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.