diff --git a/ExceptionHandlerLib/.settings/org.eclipse.jdt.core.prefs b/ExceptionHandlerLib/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..8000cd6 --- /dev/null +++ b/ExceptionHandlerLib/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,11 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/ExceptionHandlerLib/AndroidManifest.xml b/ExceptionHandlerLib/AndroidManifest.xml index c6a8319..2ad6726 100644 --- a/ExceptionHandlerLib/AndroidManifest.xml +++ b/ExceptionHandlerLib/AndroidManifest.xml @@ -4,7 +4,9 @@ android:versionCode="1" android:versionName="1.0" > - + @@ -14,7 +16,9 @@ android:configChanges="keyboard|keyboardHidden|orientation" > - + diff --git a/ExceptionHandlerLib/lint.xml b/ExceptionHandlerLib/lint.xml new file mode 100644 index 0000000..ee0eead --- /dev/null +++ b/ExceptionHandlerLib/lint.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/ExceptionHandlerLib/src/com/TwentyCodes/android/exception/ReportPostingService.java b/ExceptionHandlerLib/src/com/TwentyCodes/android/exception/ReportPostingService.java index 7a7074c..a615ed0 100644 --- a/ExceptionHandlerLib/src/com/TwentyCodes/android/exception/ReportPostingService.java +++ b/ExceptionHandlerLib/src/com/TwentyCodes/android/exception/ReportPostingService.java @@ -11,6 +11,7 @@ import java.io.IOException; import org.apache.http.client.ClientProtocolException; import android.annotation.SuppressLint; +import android.annotation.TargetApi; import android.app.Notification; import android.app.Notification.Builder; import android.app.NotificationManager; @@ -174,6 +175,7 @@ public class ReportPostingService extends Service { * (non-Javadoc) * @see android.app.Service#onStartCommand(android.content.Intent, int, int) */ + @TargetApi(5) @Override public int onStartCommand(Intent intent, int flags, int startId) { mStartId = startId;