java – How much can you save in a Bundle when minimized?


I store data in the cache

protected void onSaveInstanceState(@NonNull Bundle outState) {
    outState.putSerializable(SHEDULE, shedule);
    outState.putSerializable(RING, ringShedule);
    //outState.putString(DOC, doc_);

doc_ stores a fairly long string that contains the html page. If you do not save it, then the entire cache will be loaded and the activity will be restored. If you save, then the activity will not be restored, but the main activity will be loaded. As I understand it, the application saves, but cannot recover this long line?


Due to the fact that Bundle's data fly over IPC, the limit on them is 1MB. According to the English-speaking answer

Scroll to Top