CopyPastor

Detecting plagiarism made easy.

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

Possible Plagiarism

Plagiarized on 2013-09-16
by Harish Godara

Original Post

Original - Posted on 2011-12-07
by Dmitry Stropalov



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

`finishActivity` is used to close another activity from current activity, for more info you can check official doc : [finishActivity][1] [1]: http://developer.android.com/reference/android/app/Activity.html#finishActivity%28int%29
So you have to use `finish()` instead of `finishActivity()` for current `Activity`
`finishActivity` is used to close another activity from current - [http://developer.android.com/reference/android/app/Activity.html#finishActivity(int)][1], so just change it to `finish();`

[1]: http://developer.android.com/reference/android/app/Activity.html#finishActivity%28int%29

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