CopyPastor

Detecting plagiarism made easy.

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

Possible Plagiarism

Plagiarized on 2019-09-30
by Pouria Hemati

Original Post

Original - Posted on 2011-10-26
by coder\_For\_Life22



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



When working with **fragments**, instead of using this or **refering** to the context, always use `getActivity()`. You should call
getActivity().finish();
to finish your activity from fragment.
When working with fragments, instead of using `this` or refering to the context, always use `getActivity()`. You should call
getActivity().finish();
to finish your activity from fragment.

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