Skip to content

Instantly share code, notes, and snippets.

@olafleur
Created December 1, 2015 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olafleur/46ae54ed4557234d8785 to your computer and use it in GitHub Desktop.
Save olafleur/46ae54ed4557234d8785 to your computer and use it in GitHub Desktop.
@Override
protected void onBind() {
super.onBind();
asyncProvider.get(new AsyncCallback<MyBundle>() {
@Override
public void onFailure(Throwable caught) {
//Some error message
}
@Override
public void onSuccess(MyBundle result) {
firstService = result.getFirstService();
secondService = result.getSecondService();
}
});
//You can now use the objects that are behind the split point
secondService.functionCall();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment