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.starter; // w ww.j a v a2 s.c o m import com.feedhenry.sdk.FH; import com.feedhenry.sdk.FHActCallback; import com.feedhenry.sdk.FHResponse; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; public class FHStarterActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_fhstarter); //call FH.init to initialize FH service FH.init(this, new FHActCallback() { @Override public void success(FHResponse resp) { //NOTE: other FH methods can only be called after FH.init succeeds } @Override public void fail(FHResponse arg0) { } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_fhstarter, menu); return true; } }