• Aram Bharathi
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi I have gone thro https://trailhead.salesforce.com/en/modules/mobile_sdk_native_android.

This links talks about how to use Mobile SDK with android app. But without using this heavy weight library we are able to use the REST API for our android app. But we are unable to get started with the APEX commands.

For example, how to do the following https://developer.salesforce.com/forums/ForumsMain?id=9060G0000005YKQ

User asked to use the sample APEX command. But we dont know how to do it.

Is it something like, if we use the Mobile SDK we can use the APEX commands directly? It is better if someone explains how to convert APEX function to REST API.
I need to call apex rest service from salesforce mobile sdk-android. I can execute the soql query by calling RestRequest.getRequestForQuery() method. How to call apex service from RestRequest class?
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