Code example for Fragment

Methods: getActivityonActivityResult

     * information when a session is opened. If this method is overridden in subclasses, 
     * be sure to call {@code super.onActivityResult(...)} first. 
    public void onActivityResult(int requestCode, int resultCode, Intent data) { 
        super.onActivityResult(requestCode, resultCode, data); 
        sessionTracker.getSession().onActivityResult(this.getActivity(), requestCode, resultCode, data); 
    public void onDestroy() { 
     * Use the supplied Session object instead of the active Session. 
     * @param newSession the Session object to use