function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jwhartfieldjwhartfield 

Change login URL

I am using the mobile SDK for Android and want to use our new login page hosted on cloudforce.com (using the new Trialforce branding).  It looks like I need to do something to somehow override the 'getLoginUrl' method of theLoginActivity.java class.  I am using the Hybrid application template that Salesforce supplies in their SDK.

 

I'm not really an Android developer so I'm not sure how to do this.  I built the following class in the same folder that the VFConnectorApp.java class resides in (because that seems to do a similar override), but that didn't seem to change anything. How can I get my application to start using this new class?

public class LoginActivity extends com.salesforce.androidsdk.ui.LoginActivity {
/**
* Override this method to customize the login url.
* @return login url
*/
@Override
protected String getLoginUrl() {
return "https://sitename.cloudforce.com";
}
}