Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm building an android application which makes REST callouts to Salesforce. I'm using standard Salesforce REST client, however I need to show a webview in android(Visualforce Page).

How do I hit the URL from the webview? I need a generic method to get the baseURL similar to URL.getSalesforceBaseUrl().toExternalForm(). Is there one similar to this that I can access from REST client(Android)?

Thanks in advance!

share|improve this question

If you are building a hybrid application built using the Mobile SDK, you can use the following in your the bootconfig.js file:

var startData = new SFHybridApp.RemoteAppStartData("/apex/BasicVFPage");

You can read more about this approach in the Mobile SDK Workbook.

If you are building a native Android app, I remember using this class before the Mobile SDK was introduced. I'm not sure if there's a wrapper for this in the Mobile SDK. If not, you can reuse some code from this project.

Hope this helps.

share|improve this answer
The class StaticInformation seems to populate the domain. But where do you populate it from? – Vignesh Feb 1 '13 at 12:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.