Code

Code

Update badge count in Android

Intent intent = new Intent("android.intent.action.BADGE_COUNT_UPDATE"); 

// package name setting 
intent.putExtra("badge_count_package_name", getComponentName().getPackageName()); 
intent.putExtra("badge_count_class_name", getComponentName().getClassName()); 

// badge count
intent.putExtra("badge_count", count);
sendBroadcast(intent);