Code example for Fragment

Methods: onDestroy

0
        sessionTracker.getSession().onActivityResult(this.getActivity(), requestCode, resultCode, data);
    } 
 
    @Override 
    public void onDestroy() { 
        super.onDestroy(); 
        sessionTracker.stopTracking();
    } 
 
    /** 
     * Use the supplied Session object instead of the active Session. 
     * 
     * @param newSession the Session object to use 
     */ 
    public void setSession(Session newSession) {
        if (sessionTracker != null) {
            sessionTracker.setSession(newSession);
        } 
    } 
 
    // METHOD TO BE OVERRIDDEN