Issue
i was creating a persistent notification channel for my android app, since google announced that you cant be run your android app on the above version than oreo, so i installed all the latest sdk android api kit and now along with that i also need to create a persistant notification
but when i m creating a notification, and run this code, im getting this error, actually i want to show th full error
error: incompatible types: Intent cannot be converted to Intent[] PendingIntent pendingIntent = PendingIntent.getActivities(this,0, intent1, 0);
Solution
you should use PendingIntent.getActivity not PendingIntent.getActivities
Answered By - monterico
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.