After creating a switch something happen and i got the error. So i followed this thread: Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties however my app, that worked before started crashing:
06-14 16:50:34.563: W/dalvikvm(21199): threadid=1: thread exiting with uncaught exception (group=0x41745360)
06-14 16:50:34.563: E/AndroidRuntime(21199): FATAL EXCEPTION: main
06-14 16:50:34.563: E/AndroidRuntime(21199): java.lang.RuntimeException: Unable to get provider com.projectcaruso.naturalfamilyplaning.StatusProvider: java.lang.ClassNotFoundException: com.projectcaruso.naturalfamilyplaning.StatusProvider
06-14 16:50:34.563: E/AndroidRuntime(21199): at android.app.ActivityThread.installProvider(ActivityThread.java:4692)
06-14 16:50:34.563: E/AndroidRuntime(21199): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4319)
Manifest:
<provider android:name=".StatusProvider"
android:authorities="com.projectcaruso.naturalfamilyplaning"/>
Class:
public class StatusProvider extends ContentProvider {
The fix project properties set it to check-box enable project specific settings and 1.6 for compliance level.