Quantcast
Channel: SCN : Discussion List - SAP for Mobile
Viewing all articles
Browse latest Browse all 5806

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

$
0
0

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


Viewing all articles
Browse latest Browse all 5806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>