I am using MAFLogon for my login screen in an application build for SAP Mobile on HANA Cloud Platform, using SAP SDK.
LogonUIFacade mLogonUIFacade = LogonUIFacade.getInstance();
//Initialize the Logon UI Facade
mLogonUIFacade.init(this, mContext, getString(R.string.HCPMS_APP_ID));
// Present the logon screen to the user
setContentView(mLogonUIFacade.logon());
// Hide the splash screen (do this at the end, so defaults are not reset)
mLogonUIFacade.showSplashScreen(false);
The code above creates a built-in login Activity. How can i create a custom Activity or customize this one? (change logo, colors etc)
Alas, the MAF Logon component is not designed to be customizable to the extent you require. Claudia Pacheco's blog post "Customizing MAF Logon Component in Android" nicely outlines the options you have. The issue with customization in terms of branding is that there may be no end to the requirements: Some are happy with a custom logo, others would require a totally different layout. Therefore you should implement your own login page and implement the communication on top of the
HttpConversationflow, as described in the documentation. I put together a little example for you, to get you started:res/layout/layout_main.xml
src/main/java/logon/example/com/basicauthconflow/MainActivity.java