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
sales force 250sales force 250 

Can we make a call from Salesforce Mobile SDK (Android Native) to Apex rest APi?

Hi,

My environment setup:
1. Created a connected app and this can be accessed from my Android App(Native)
Question:
Can we access a Apex rest endpoint from Android Native using Salesforce Mobile SDK(Forcedroid)?? If so, can anyone provide me an example?

I tried to create a RestRequest with the Apex rest endpoint as URL and tried to Call RestClient.sendAsync with that request method, but it didn;t work out. Can anyone help me with an example? Thanks!!
--Kay
Aram BharathiAram Bharathi
Hi Were you able to find answer for this?