Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.