2

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!

1 Answer 1

3

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.

1
  • The class StaticInformation seems to populate the domain. But where do you populate it from? Feb 1, 2013 at 12:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .