The most important suggestion I can give to you is to re-write your post in coherent English. Then follow the guidelines of http://www.catb.org/esr/faqs/smart-questions.html.
For once we see the errors in verb tense in your very sentence, we know that we cannot trust you to avoid making mistakes confusing 'this' and 'that' when you say 'that activity'. Especially since as written, what you say happens makes no sense. You can ALWAYS call 'finish()' on your own activity. You should not be calling it on another activity. You can also call Activity.finishActivity() to finish a 'child' activity, i.e. one that the current Activity opened as described at http://developer.android.com/reference/android/app/Activity.html#finishActivity%28int%29 On Sep 1, 3:57 am, vj <[email protected]> wrote: > when a call is coming , i overrided the incoming call screen , it > works fine , but when call is rejected(red button is pressed in > emulator) , i cant able to quit that activity. > > if i give finish() , itz not working , > if i give onDestroy, itz crashing out my phone , and itz forcing to > quit > > same happens when i close with , closeContextMenu and > activity.getApplication.onTerminate() > > can someone help me or atleast any suggestions ?? (i want to close > that activity when call is rejected) so that my screen behaves exactly > like how incoming call screen behaves ... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

