Code example for ListFragment

Methods: onActivityResult

0
 
    } 
 
    @Override 
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        try { 
            Method m = PreferenceManager.class.getDeclaredMethod("dispatchActivityResult", int.class, int.class, Intent.class);
            m.setAccessible(true);
            m.invoke(mPreferenceManager, requestCode, resultCode, data);
        } catch (Exception e) {
            e.printStackTrace();
        } 
    } 
 
    /** 
     * Returns the {@link PreferenceManager} used by this activity. 
     * 
     * @return The {@link PreferenceManager}. 
     */ 
    public PreferenceManager getPreferenceManager() {