CopyPastor

Detecting plagiarism made easy.

Score: 0.8808258827775717; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-04-29
by Damini Mehra

Original Post

Original - Posted on 2012-12-16
by fedepaol



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You can:
1. host the data in the container activity and access to that from the fragment
2. use a singleton object / some class hosted in the application class
But bear in mind that whenever your process get killed you will loose the data in any case. If you want the data to persist across multiple process spawn you need to store it into sqllite / some kind of persistence.
You can:
1. host the data in the container activity and access to that from the fragment 2. use a singleton object / some class hosted in the application class
But bear in mind that whenever your process get killed you will loose the data in any case. If you want the data to persist across multiple process spawn you need to store it into sqllite / some kind of persistence.

        
Present in both answers; Present only in the new answer; Present only in the old answer;