zoheb hassan wrote:Hey Dani can you post the complete code
What for? It's pretty clear what's happening, is it not?
No Tim its not clear whats happening or going wrong over here, would you care to explain it
Joined: Sep 21, 2011
What's happening is that there's an exception, all the details of which can be found in the logcat output. So the next step is for dani alex to examine the logcat output, and -if further help is needed- post it here. For us to see the rest of the code doesn't help with that.
When you call finish(), you will be exiting the activity not force closing the activity.So i don't think the finish() method is the culprit here. We cannot comment on whats wrong until he posts the complete code or puts himself what was wrong.Let's wait for him to respond
Joined: Oct 14, 2011
Ok. So I fixed it. Not quite sure why this worked though.
If I put the editString = getText().toString() inside the onFocusChange for the edit text field, instead of the onclick of the button it works fine. Then I just have the button do it's own thing with the editString.
Thanks for the replys!
I am new at Android and just learning how to work with it. The debug and exception systems make sense now. It is actually quite lovely.