I'm having a bug report, for some android device with version 2.3.X :
android.app.RemoteServiceException: Bad notification for startForeground: java.lang.IllegalArgumentException
Here's my method...
final static int myID = 6785674; public void putServiceToForeground() { if (notif == null) { NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(MyApp.getAppContext()) .setContentTitle(""); notif = mBuilder.build(); notif.icon = R.drawable.pixel; } startForeground(myID, notif); }