Quantcast
Viewing all articles
Browse latest Browse all 3585

Re: Error using MAF Logon component

Hi Deepak ,

 

thes is my code ,

the error rise in init function .

 

public class MAFLogonActivity extends Activity implements LogonListener {

  private final String TAG = MAFLogonActivity.class.getSimpleName();

  private LogonUIFacade mLogonUIFacade;

  private Context mContext;

  private Activity act;

 

  @Override

  protected void onCreate(Bundle savedInstanceState) {

  // TODO Auto-generated method stub

  super.onCreate(savedInstanceState);

  // get an instance of the LogonUIFacade

    mLogonUIFacade = LogonUIFacade.getInstance();

    act = this;

  //prepare styling

    MAFSkinManager.getInstance(this).loadStyle("green",

    getResources().openRawResource(R.raw.styles_def));

  //reset MAFLogger

    MAFLogger.clearLogData();

    MAFLogger.logToAndroid(true);

 

 

    // set context reference

    mContext = this;

    this.showLogonScreen();

  }

    private void showLogonScreen() {

    //TODO 1-2 COMPLETE showLogonScreen in MAFLogonActivity ************

    // initialize the LogonUIFacade with context and application id

    // This example assumes “com.sap.flight” exists in

    // SMP 3.0 Management Cockpit

  // mLogonUIFacade.init(this, arg1, arg2);

 

///////////////    Error Is here    >>>>>

 

    mLogonUIFacade.init(this ,  mContext,"com.sap.flight");

 

    // ask LogonUIFacede to present the logon screen

    // set the resulting view as the content view for this activity

    setContentView(mLogonUIFacade.logon());

  }


Viewing all articles
Browse latest Browse all 3585

Trending Articles