GithubHelp home page GithubHelp logo

andreiciubotariu / contact-notifier Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 6.72 MB

Android app: set a custom LED colour, ringtone, and vibrate pattern for incoming SMS.

License: Apache License 2.0

Java 100.00%

contact-notifier's People

Contributors

andreiciubotariu avatar levymatthew avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

contact-notifier's Issues

NullPointerException: PendingIntent.getActivity()

Application version: 2.2.0
Android version: Android 4.2
Device: Smart 401

Stack Trace:

java.lang.RuntimeException: Unable to start receiver com.ciubotariu_levy.lednotifier.messages.MessageReceiver: java.lang.NullPointerException
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2557)
    at android.app.ActivityThread.access$1500(ActivityThread.java:162)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:194)
    at android.app.ActivityThread.main(ActivityThread.java:5371)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:525)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
    at android.app.PendingIntent.getActivity(PendingIntent.java:253)
    at android.app.PendingIntent.getActivity(PendingIntent.java:220)
    at com.ciubotariu_levy.lednotifier.messages.MessageReceiver.generateNotificationIfNeeded(MessageReceiver.java:102)
    at com.ciubotariu_levy.lednotifier.messages.MessageReceiver.onReceive(MessageReceiver.java:77)
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2550)
    ... 10 more

NPE when choosing Ringtone

Application version: 2.2.0
Android version: Android 5.1
Device: A1P (ailsa)

User Message

trying to tie my contacts with a certain notifier tone.

Trace:

java.lang.RuntimeException: Unable to resume activity {com.ciubotariu_levy.lednotifier/com.ciubotariu_levy.lednotifier.ui.activity.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=131073, result=-1, data=Intent { (has extras) }} to activity {com.ciubotariu_levy.lednotifier/com.ciubotariu_levy.lednotifier.ui.activity.MainActivity}: java.lang.NullPointerException: Attempt to read from field 'android.widget.Button com.ciubotariu_levy.lednotifier.ui.widget.AbstractContactViewBinder$ContactHolder.chooseRingtoneButton' on a null object reference
    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2986)
    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392)
    at android.app.ActivityThread.access$800(ActivityThread.java:151)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5254)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=131073, result=-1, data=Intent { (has extras) }} to activity {com.ciubotariu_levy.lednotifier/com.ciubotariu_levy.lednotifier.ui.activity.MainActivity}: java.lang.NullPointerException: Attempt to read from field 'android.widget.Button com.ciubotariu_levy.lednotifier.ui.widget.AbstractContactViewBinder$ContactHolder.chooseRingtoneButton' on a null object reference
    at android.app.ActivityThread.deliverResults(ActivityThread.java:3574)
    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2972)
    ... 11 more
Caused by: java.lang.NullPointerException: Attempt to read from field 'android.widget.Button com.ciubotariu_levy.lednotifier.ui.widget.AbstractContactViewBinder$ContactHolder.chooseRingtoneButton' on a null object reference
    at com.ciubotariu_levy.lednotifier.ui.widget.AbstractContactViewBinder.onRingtoneSelected(AbstractContactViewBinder.java:260)
    at com.ciubotariu_levy.lednotifier.ui.widget.AbstractContactViewBinder.onResult(AbstractContactViewBinder.java:284)
    at com.ciubotariu_levy.lednotifier.ui.fragment.AbstractContactsFragment.onActivityResult(AbstractContactsFragment.java:118)
    at android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:165)
    at android.app.Activity.dispatchActivityResult(Activity.java:6236)
    at android.app.ActivityThread.deliverResults(ActivityThread.java:3570)
    ... 12 more

No-notification detection activated when sms app is foreground

  • Most messaging apps should do this. Tested with Google Messenger
  • Have messaging app in foreground
  • Receive messages
  • Messaging app will not generate notification

No-notification detection is activated. Unwanted behaviour. Should possibly check if phone is unlocked before doing notification send logic.

Vibrate not always working

Email report:

My phone:
Verizon Galaxy Note 4
Messaging app: simplytext (all notifications turned off)
OS: Lollipop 5.0.1

The vibrate function doesn't always work for some contacts despite trying to save the vibrate pattern again.

New messages use same sound and vibrate pattern as previous messages

Email report:

Verizon Galaxy Note 4
Messaging app: simplytext (all notifications turned off)
OS: Lollipop 5.0.1

If I haven't read a text message, and another appears, any new messages will use the same text tone and vibrate pattern as the previous message (bill sends me message, then frank sends me message. Both messages have bill's tone and vibrate).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.