Go to file
Leo Lin 1842d6567e update to 1.0.4 2015-03-12 21:25:40 +08:00
SampleApp update to 1.0.4 2015-03-12 21:25:40 +08:00
ShortcutBadger update to 1.0.4 2015-03-12 21:25:40 +08:00
ShortcutBadger-aar/me/leolin/ShortcutBadger update to 1.0.4 2015-03-12 21:25:40 +08:00
gradle/wrapper update to 1.0.4 2015-03-12 21:25:40 +08:00
screenshots Update aar version to 1.0.2. 2014-11-17 00:00:37 +08:00
src/main/java/com/shortcutBadger/impl merge conflict 2015-03-04 10:07:56 +08:00
.gitignore Remove temp files 2015-03-05 19:17:56 +01:00
LICENSE Modify LICENSE 2014-06-12 09:54:28 +08:00
README.md update to 1.0.4 2015-03-12 21:25:40 +08:00
ShortcutBadger-aar-1.0.4.zip update to 1.0.4 2015-03-12 21:25:40 +08:00
build.gradle merge conflict 2015-03-04 10:07:56 +08:00
gradlew New configuration added to build project using gradle build system 2014-10-09 19:51:48 +04:00
gradlew.bat New configuration added to build project using gradle build system 2014-10-09 19:51:48 +04:00
proguard-rules.pro Gradle version updated 2015-01-29 16:37:06 +03:00
settings.gradle Change package from com.shortcutbadger to me.leolin 2014-10-12 09:14:19 +08:00

README.md

ShortcutBadger:

The ShortcutBadger makes your Android App showing the count of unread messages as a badge on your App shortcut!

Currently support launchers:

Android native Launcher(Not support Android L)
ScreenShot

Sony Home Launcher
ScreenShot

Samsung Touchwiz
ScreenShot

LG Launcher
ScreenShot

HTC Launcher
ScreenShot

Nova launcher with TeslaUnread,Apex launcher,Adw Launcher provided by notz
Solid launcher provided by MajeurAndroid

HOW TO USE


1. Download the ShortcutBadger-aar.zip and put it into your project.
2. Add the repositories path in your build.gradle.

    repositories {
        jcenter()
        maven {
            url 'file://'+project.rootDir+"/ShortcutBadger-aar"
        }
    }


3. Add dependencies for Shortcutbadger

    dependencies {
        compile 'me.leolin:ShortcutBadger:1.0.4@aar'
    }


4. Add the codes below:

    int badgeCount = 1;
    try {
        ShortcutBadger.setBadge(getApplicationContext(), badgeCount);
    } catch (ShortcutBadgeException e) {
        //handle the Exception
    }


5. If you want to remove the badge, just set the badgeCount as 0.



LICENSE


    Copyright 2014 Leo Lin
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
        http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.