yumna, welcome to
Java Ranch!
Have you looked at the log file in the phone to see if there is a stack trace there? Apps such as LogcatVW can show you the log. Or you can connect the phone to the SDK on your PC and use the SDK tools to examine the logs. That will at least tell you which line of code is causing the issue.
By the way, I moved your sources to attached files - lengthy, unformatted posts tend to scare off potential helpers...