This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
developers:peig-api:android [2018/07/10 07:43] dskrbek [Retrieve data when authenticated] |
developers:peig-api:android [2019/08/01 10:02] tjotov removed |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Developing Android application with ADUCID ====== | ====== Developing Android application with ADUCID ====== | ||
- | |||
- | //See [[https:// | ||
- | |||
Prerequisites: | Prerequisites: | ||
Line 108: | Line 105: | ||
< | < | ||
- | peigApi.aducidFullOperationGet(java.lang.String url, java.lang.String methodName, com.loopj.android.http.RequestParams parameters, android.os.Handler handler) | + | peigApi.aducidContent(java.lang.String url, java.lang.String methodName, android.os.Handler handler) |
</ | </ | ||
* **url** | * **url** | ||
- | * **methodName** - method path, e.g. /payment | + | * **methodName** - method path, e.g. /accountRemote |
- | * **parameters** | + | |
* **handler** | * **handler** | ||
==== Try to get data if not authenticated ==== | ==== Try to get data if not authenticated ==== | ||
Line 121: | Line 117: | ||
===== Advanced requests ===== | ===== Advanced requests ===== | ||
- | To accomplish a specific action like transaction use aducidFullOperation() | + | To accomplish a specific action like transaction use aducidFullOperationGet() or aducidFullOperationPost(). |
- | See DemoBank PaymentFragment.java example | ||
<code java> | <code java> | ||
- | aducidFullOperationPost(String url, String methodName,RequestParamsparameters, Handler handler) | + | peigApi.aducidFullOperationPost(String url, String methodName, |
</ | </ | ||
Line 136: | Line 131: | ||
<code java> | <code java> | ||
- | PapiResult | + | Handler handler = new Handler() { |
+ | @Override | ||
+ | public void handleMessage(Message msg) { | ||
+ | |||
+ | if (msg.getData() != null) { | ||
+ | com.aducid.peig.lib2.Result | ||
+ | // do something with result | ||
+ | } | ||
+ | } | ||
+ | } | ||
</ | </ | ||