I’m trying to add a Notification to my app.
The API level is 8, so, I need to use NotificationCompat instead of Notification, needn’t I?
this is my code:
NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this);
But, there is an error, “cannot be solved as a type”
Where is the mistake
Make sure your import statement is such for compatibility.