Back to project page fh-android-sdk.
The source code is released under:
Copyright (c) 2014 FeedHenry Ltd, All Rights Reserved. Please refer to your contract with FeedHenry for the software license agreement. If you do not have a contract, you do not have a license to use...
If you think the Android project fh-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.feedhenry.sdk.api; //from ww w . ja v a 2 s . c om import java.util.Properties; import org.apache.http.Header; import org.json.fh.JSONException; import org.json.fh.JSONObject; import android.content.Context; import android.util.Log; import com.feedhenry.sdk.FH; import com.feedhenry.sdk.FHRemote; import com.feedhenry.sdk.utils.FHLog; /** * The request for calling the initialization function */ public class FHInitializeRequest extends FHRemote { protected static String LOG_TAG = "com.feedhenry.sdk.FHInitializeRequest"; /** * Constructor * @param pProps the app configuration */ public FHInitializeRequest(Context context, Properties pProps) { super(context, pProps); } @Override protected String getPath() { return "app/init"; } @Override protected JSONObject getRequestArgs() { JSONObject reqData = new JSONObject(); try{ reqData = FH.getDefaultParams(); FHLog.v(LOG_TAG, "FH init request data : " + reqData.toString()); }catch(Exception e){ FHLog.w(LOG_TAG, "Failed to add data to initialise request"); FHLog.e(LOG_TAG, e.getMessage(), e); } return reqData; } @Override protected Header[] buildHeaders(Header[] pHeaders) throws Exception { return null; } }