cancel
Showing results for 
Search instead for 
Did you mean: 

How to use SCC registered user credentials in Android native code?

midhun_vp
Active Contributor
0 Kudos

Hi ,

I developed an android native application that talk to SAP via SUP.

The credentials I am passing as input is the SCC username and password (supAdmin and s3pAdmin).

I want to connect to the Unwired server with the credentials of the registered user instead of the SCC login credentials.

The code I used now is :

try {

 

                                        ConnectionProperties connProps = app.getConnectionProperties();

                                        connProps.setServerName(HOST);

                                        connProps.setPortNumber(PORT);

  ApprovalDB.setApplication(app);

                                        LoginCredentials loginCredentials = new LoginCredentials(

                                                            USERNAME, PASSWORD);

                                        connProps.setLoginCredentials(loginCredentials);

 

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

                                                            app.registerApplication(600);

                                                  } else {

                                                            app.startConnection(600);

                                                  }

                                        } catch (Exception e) {

                                                  returnMsg = e.getMessage();

                                        }

Please give a solution.

SUP Ver2.1.3

Thanks

Midhun

Accepted Solutions (0)

Answers (2)

Answers (2)

rakshit_doshi
Active Contributor
0 Kudos

Hi Midhun,

This is a duplicate post created by you.

Please delete this to avoid confusion

http://scn.sap.com/thread/3293083

Thanks,

Former Member
0 Kudos

Are you able to register the application ?