I have created bootup Service
which listen for incoming messages in my application. Service is continuosly running in backgroung thought application is closed that is user goes offline. While user is offline and there is new message I have to show notifiacation on status bar or popup dialog(Here in this situaction service is not bound to any of Activity). I am facing following problems:
- While creating notification I am not getting Context and Activity.
- While I am displaying dialog from service class I am getting exception as
"Can't create handler inside thread that has not called Looper.prepare()".
I am new one for android services part and don't know hoe to solve this. Can anybody guide me how to do this? Is there any link which will guide me for this? I got stucked due to this problem. Help highly appreciated. Thanks.