Code example for Service

Methods: stopForeground

            mCurrentService.startForeground(id, mNotification);
        public void stopForeground() 
    private class OldForegroundApi implements IRunForeground 
         * Get the new API through reflection because it's unavailable  
         * in honeycomb 
        private Method mSetForeground;
        public OldForegroundApi() throws SecurityException, NoSuchMethodException 
            mSetForeground = getClass().getMethod("setForeground",
Stop searching for code, let great code find you!  Add Codota to your java IDE