既然是安卓開發,首先我們要下載下傳Android Studio.
接着是從SAP官網下載下傳SAP Cloud Platform的Android開發SDK:
https://developers.sap.com/trials-downloads.html https://developers.sap.com/topics/cloud-platform-sdk-for-android.htmlAndroid SDK安裝完畢後,使用項目建立向導建立一個項目:
使用SAP Cloud Platform mobile service上已經建立好的應用:com.sap.wizapp:
這個com.sap.wizapp的配置在SAP Cloud Platform的mobile services頁面裡打開如下:
com.sap.edm.sampleservice.v2這個Destination提供了測試資料,包含product categories, product, supplier, customer和sales order等等。
完成項目建立向導。
SAP Cloud Platform Android SDK會自動給我們建立一個模闆應用:
點選Run按鈕啟動應用:
選擇在模拟器上運作:
點選Get Started,進入使用者登入頁面:
輸入SAP Cloud Platform的使用者名和密碼:
建立本地Passcode:
之後看到destination指向的OData服務的entity:
選擇Products,能看到産品清單:
選中某個産品,進入其明細頁面。
本文來自雲栖社群合作夥伴“汪子熙”,了解相關資訊可以關注微信公衆号"汪子熙"。