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
cha runcha run 

Callback UR

Did any1 come across this link.


http://wiki.developerforce.com/index.php/Building_Android_Applications_with_the_Force.com_REST_API

Getting error as redirect mismatch in Android Emulator. can't know wt to do, help me out..

 

 

 

 

Cheers!

Best Answer chosen by Admin (Salesforce Developers) 
cha runcha run

Got the solution for this..

 

 

As iam using the desktop application, callback uri can be anything.

 

I used sfdc:sample as prescribed in the example provided in that link, and the same callback url placed in the code.

 

it's working fine now.

All Answers

forecast_is_cloudyforecast_is_cloudy

Where exactly are you getting the error? After you're directed to the standard login page in the Emulator and you enter your login credentials? What did you set as the 'Callback URL' when setting up the Remote Access Application in your Salesforce Org?

cha runcha run

Thanx for your reply...

 

 

I gave my calback URL as https://localhost:8080/rest/index.php

 

 

It's not working.

 

Whenever I execute the Android application, it redirects me to the Salesforce login page, hwne I eneter my username and password, it redirects again to a page with Approve or Deny button on it. And when I clicked on Approve button it shows redirect uri mismatch error on the emulator.

cha runcha run

Got the solution for this..

 

 

As iam using the desktop application, callback uri can be anything.

 

I used sfdc:sample as prescribed in the example provided in that link, and the same callback url placed in the code.

 

it's working fine now.

This was selected as the best answer
forecast_is_cloudyforecast_is_cloudy

Great to hear! Hopefully the REST API calls in the sample app also worked for you.