Backend exceptions should be catched

This commit is contained in:
mar-v-in 2014-03-10 14:04:05 +01:00
parent 2165785346
commit 67a4030078
3 changed files with 11 additions and 10 deletions

View file

@ -29,6 +29,8 @@ LOCAL_PACKAGE_NAME := UnifiedNlp
LOCAL_SDK_VERSION := current
LOCAL_PRIVILEGED_MODULE := true
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
include $(call all-makefiles-under,$(LOCAL_PATH))

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="org.microg.nlp"
<manifest
package="org.microg.nlp"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="14" />
@ -13,9 +14,7 @@
<application
android:icon="@drawable/nlp_app_icon"
android:label="@string/nlp_app_name">
<uses-library
android:name="com.android.location.provider"
android:required="false" />
<uses-library android:name="com.android.location.provider" />
<!-- Gingerbread / Ice Cream Sandwich -->
<service

View file

@ -73,7 +73,7 @@ public class BackendHelper implements BackendHandler {
try {
setLastLocation(backend.update());
provider.reportLocation(lastLocation);
} catch (RemoteException e) {
} catch (Exception e) {
Log.w(TAG, e);
unbind();
}