Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/304.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java I';我正在使用SMP3 SP05开发android应用程序。应用程序注册已经完成。但是我不知道如何从后端读取数据 公共IRequest buildGETRequest(INetListener侦听器、字符串集合、int-topFilter、字符串_Java_Android_Sap Smp - Fatal编程技术网

Java I';我正在使用SMP3 SP05开发android应用程序。应用程序注册已经完成。但是我不知道如何从后端读取数据 公共IRequest buildGETRequest(INetListener侦听器、字符串集合、int-topFilter、字符串

Java I';我正在使用SMP3 SP05开发android应用程序。应用程序注册已经完成。但是我不知道如何从后端读取数据 公共IRequest buildGETRequest(INetListener侦听器、字符串集合、int-topFilter、字符串,java,android,sap-smp,Java,Android,Sap Smp,I';我正在使用SMP3 SP05开发android应用程序。应用程序注册已经完成。但是我不知道如何从后端读取数据 公共IRequest buildGETRequest(INetListener侦听器、字符串集合、int-topFilter、字符串筛选器){String query=”“; 如果(topFilter>0)查询=ODATA\u TOP\u FILTER+topFilter; 如果(!TextUtils.isEmpty(筛选器)){ 如果(!TextUtils.isEmpty

I';我正在使用SMP3 SP05开发android应用程序。应用程序注册已经完成。但是我不知道如何从后端读取数据 公共IRequest buildGETRequest(INetListener侦听器、字符串集合、int-topFilter、字符串筛选器){String query=”“; 如果(topFilter>0)查询=ODATA\u TOP\u FILTER+topFilter; 如果(!TextUtils.isEmpty(筛选器)){ 如果(!TextUtils.isEmpty(query))查询+=“&”; query+=ODATA_FILTER+FILTER;} IRequest请求=新的BaseRequest(); setListener(监听器); 请求设置优先级(IRequest.PRIORITY_HIGH); request.setRequestMethod(IRequest.request\u METHOD\u GET); 字符串endPointURL=mEndPoint+collection; //添加JSON格式 if(mIsJSONFormat){ endPointURL=endPointURL+“?”+ODATA_JSON_格式;} 如果(!TextUtils.isEmpty(查询)){ if(endPointURL.contains(“?”) endPointURL=endPointURL+“&”+查询; 其他的 endPointURL=endPointURL+“?”+query;} setRequestUrl(endPointURL); if(错配flogon){ Map headers=newhashmap(); headers.put(APP\u CONNECTION\u ID\u HEADER,msmpappcconnectionid); request.setHeaders(headers);} 返回请求;}
public IRequest buildGETRequest(INetListener listener,String collection,int topFilter,String filter) {      String query = "";
        if (topFilter>0) query = ODATA_TOP_FILTER + topFilter;
        if (!TextUtils.isEmpty(filter)){
            if (!TextUtils.isEmpty(query)) query += "&";
            query += ODATA_FILTER + filter; }
        IRequest request = new BaseRequest();
        request.setListener(listener);
        request.setPriority(IRequest.PRIORITY_HIGH);
        request.setRequestMethod(IRequest.REQUEST_METHOD_GET);
        String endPointURL = mEndPoint + collection;
        //Adding the JSON format
        if (mIsJSONFormat)      {
            endPointURL = endPointURL + "?" + ODATA_JSON_FORMAT;}
        if (!TextUtils.isEmpty(query))  {
            if(endPointURL.contains("?"))
                endPointURL = endPointURL + "&" + query;
            else
                endPointURL = endPointURL + "?" + query;}
        request.setRequestUrl(endPointURL);
        if (mIsMAFLogon) {
            Map<String,String> headers = new HashMap<String,String>();      
            headers.put(APP_CONNECTION_ID_HEADER, mSMPAppConnectionID);
            request.setHeaders(headers);}
        return request; }