I have a service which connects to other devices wirelessly. When the service is enabled, I have an ongoing notification which states it is enabled.
After the servi
Try this
int id = (int) Calendar.getInstance().getTimeInMillis();
Use this id in the notify() method. Time of your Android System itself creates a unique ID