I'm developing an alarm app that uses a background service and I'd like an activity (module or page) to open when the alarm goes off. I searched the forum and found that StartActivity cannot be used with the background service unless it has a permission to draw on top of other applications. Well, I used that permission, but it still gives an error. The error is as follows:
Where am I going wrong?java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.WeakReference.get()' on a null object reference