This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Android and the fly likes Uncaught handler: thread main exiting due to uncaught exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Uncaught handler: thread main exiting due to uncaught exception" Watch "Uncaught handler: thread main exiting due to uncaught exception" New topic
Author

Uncaught handler: thread main exiting due to uncaught exception

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

In this application I tried to read the contacts and store them in one file. But when I tried to run this application it gives me following error as.


My ReadSimContact contain following code




Manifest.xml contains



What is the problem in this code.


Life is easy because we write the source code.....
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

I created a new project in eclipse and used your code and it worked fine on Android 2.0 simulator (except for IOException because the required directories were not there)...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

I believe Ulf answered this question in this thread, if I am not mistaken.


[List of FAQs] | [Android FAQ] | [Samuh Varta]
 
 
subject: Uncaught handler: thread main exiting due to uncaught exception
 
Similar Threads
contacts doesn't display
How to find out programatically that file is already exist or not?
INSTALL_FAILED_OLDER_SDK
ERROR/AndroidRuntime(706): java.lang.RuntimeException: Unable to start activity
unable to create the service ,it gives null pointer exception