既然是安卓開發,首先咱們要下載Android Studio.html
接着是從SAP官網下載SAP Cloud Platform的Android開發SDK:android
https://developers.sap.com/tr...app
https://developers.sap.com/to...測試
Android SDK安裝完畢後,使用項目建立嚮導新建一個項目:spa
使用SAP Cloud Platform mobile service上已經建立好的應用:com.sap.wizapp:3d
這個com.sap.wizapp的配置在SAP Cloud Platform的mobile services頁面裏打開以下:code
com.sap.edm.sampleservice.v2這個Destination提供了測試數據,包含product categories, product, supplier, customer和sales order等等。orm
完成項目建立嚮導。htm
SAP Cloud Platform Android SDK會自動給咱們建立一個模板應用:blog
點擊Run按鈕啓動應用:
選擇在模擬器上運行:
點擊Get Started,進入用戶登陸頁面:
輸入SAP Cloud Platform的用戶名和密碼:
建立本地Passcode:
以後看到destination指向的OData服務的entity:
選擇Products,能看到產品列表:
選中某個產品,進入其明細頁面。
要獲取更多Jerry的原創文章,請關注公衆號"汪子熙":