Skip to content

Instantly share code, notes, and snippets.

@kodeshpa
Created September 19, 2011 02:20
Show Gist options
  • Save kodeshpa/1225873 to your computer and use it in GitHub Desktop.
Save kodeshpa/1225873 to your computer and use it in GitHub Desktop.
Zubhium SDK integration
ZubhiumSDK sdk;
/** Called when the Zubhium action is completed*/
ZubhiumActionResponseListener zubhiumListener = new ZubhiumActionResponseListener() {
@Override
public void onZubhiumError(ZubhiumError e) {
Log.d("ZubhiumAndroidSDK","Error occurred");
}
@Override
public void onZubhiumActionCompleted() {
Log.d("ZubhiumAndroidSDK","Zubhium action completed successfully");
}
};
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
/**Get instance of your SDK. */
sdk = ZubhiumSDK.getZubhiumSDKInstance(this, zubhiumListener);
}
/*Now call following methods as per signatures of those methods*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment