From 603cc62ef02bdc114a0adea814e57f747d551231 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Thu, 1 Aug 2013 02:30:58 +0200 Subject: [PATCH] Added sms notifications Added contact name lookup for sms and call notifications --- KdeConnect/KdeConnect.iml | 7 ++- KdeConnect/src/main/AndroidManifest.xml | 7 ++- .../org/kde/connect/BackgroundService.java | 32 ++++++---- .../java/org/kde/connect/ContactsHelper.java | 45 +++++++++++++ .../java/org/kde/connect/NetworkPackage.java | 8 ++- .../BasePackageInterface.java | 1 + ... => CallNotificationPackageInterface.java} | 7 ++- .../SmsNotificationPackageInterface.java | 63 +++++++++++++++++++ .../java/org/kde/connect/ServiceLauncher.java | 29 ++++++++- .../src/main/res/layout/activity_main.xml | 2 +- KdeConnect/src/main/res/values/strings.xml | 7 ++- KdeConnect/src/main/res/xml/settings.xml | 24 ++++--- 12 files changed, 197 insertions(+), 35 deletions(-) create mode 100644 KdeConnect/src/main/java/org/kde/connect/ContactsHelper.java rename KdeConnect/src/main/java/org/kde/connect/PackageInterfaces/{CallPackageInterface.java => CallNotificationPackageInterface.java} (91%) create mode 100644 KdeConnect/src/main/java/org/kde/connect/PackageInterfaces/SmsNotificationPackageInterface.java diff --git a/KdeConnect/KdeConnect.iml b/KdeConnect/KdeConnect.iml index ef070ffd..14b704c8 100644 --- a/KdeConnect/KdeConnect.iml +++ b/KdeConnect/KdeConnect.iml @@ -6,6 +6,7 @@