amnesia wrote:I have an application where, when the user clicks a button it the main activity opens a subactivity, via onActivityResult(). Then when the user pushes KeyEvent.KEYCODE_CALL in the subactivity, it calls setResult() and finish(). In the main activity i have onActivityResult() Overriden, all it does is call finish(). At this point, it goes returns to the home screen.
When I run the application again, a blank view comes up, with a title bar and the name of the application in it. it sits there for a while, then pops up a dialog box saying:
Sorry! - Activity FooBar ( in application FooBar ) is not responding. I can click one of two buttons, "Force close" and "Wait".
If I choose "Wait" it waits for awhile and displays the same dialog box periodically.
If I choose "Force close" the activity dies. I can then start the main activity again and it works properly, then repeats this process. It doesn't seem like the orginal Activity is being completely killed. I call the application with startActivity() and get the same result.
Any ideas on what I am doing wrong? I have attached two classes and my manifest.
amnesia wrote:i comment out the powerUp and the unlock() phone methods and it work as expected. so now i know where the problem is occuring. thanks for the suggestion
Users browsing this forum: MSNbot Media and 10 guests