Skip to Content
author's profile photo Former Member
Former Member

SUP2.1.3 Android register Application error when 2nd time login

Hi All,

I success to login and sync the MBO to the simulator for the first time I launch the Android simulator on the debugging mode, but I encounter a problem when the second time I launch the Android simulator (using the existing android simulator, not launch the new simulator), the process register the application again and stopped there. May I know how to solve the problem?

if (app.getRegistrationStatus() != RegistrationStatus.REGISTERED)

{

app.registerApplication(TIMEOUT); <-- process stopped here

}

else

{

app.startConnection(TIMEOUT);

}

Thank you in advance.

Regards

Choong

@Midhun VP @Raja V

Please help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 19, 2013 at 07:49 AM

    It is common problem with the Android emmulator, for second time re-launch of the ADT what you have to do is you have re-register the SUP user, whereas from the device you will encounter the problem.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 19, 2013 at 07:04 AM

    What is the error you are getting?

    I code I followed is:

    try{

    app = Application.getInstance();

    if (app.getApplicationIdentifier() == null){

    app = Application.getInstance();

    app.setApplicationIdentifier("Manager");

    app.setApplicationContext(ServerSettingsScreen.this);

    }

    }catch (Exception e) {

    Toast.makeText(getBaseContext(),"ERROR-->"+e, Toast.LENGTH_SHORT).show();

    }catch (ExceptionInInitializerError e) {

    Toast.makeText(getBaseContext(),"ERROR-->"+e, Toast.LENGTH_SHORT).show();

    }

    --------------------------------------------------------------------------------------------------------

    try{

    if (app.getRegistrationStatus() != RegistrationStatus.REGISTERED) {

    app.registerApplication(600);

    } else {

    app.startConnection(600);

    }

    } catch (Exception e) {

    returnMsg = e.getMessage();

    }

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2013 at 05:24 AM

    HI,

    Latest update. The SUP android application able to run after I clean the application data in device everytime. I think there is some cache in the application to cause the SUP android application register fail.

    Please help.

    Regards,

    Choong

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.