Ok,
I am working on an Android app that uses a service to collect & process GPS data. The service also creates a notification in the status bar. What I cannot figure out is how to have the notification open the main class when a user clicks on it. From what I’ve found online it shouldn’t be that hard to do, but I cannot get it to work. Does anyone have some suggestions on where to look?
Ok, I am working on an Android app that uses a service to collect
Share
This line of code is from http://developer.android.com/guide/topics/ui/notifiers/notifications.html.
Simply replace MyClass with your activity class – it will be launched when you click the notification.