ipack not compatible with sdk 23

17 views
Skip to first unread message

achi...@gmail.com

unread,
Jun 2, 2016, 7:12:12 AM6/2/16
to Tasker - Developers
Hi

I'm trying to compile a new ipack but I get the following error:
IpackReceiver.java:110: error: cannot find symbol
    [javac]                             not.setLatestEventInfo( c, title, TextUtils.isEmpty( text ) ? "" : text, pi );
    [javac]                                ^
    [javac]   symbol:   method setLatestEventInfo(Context,String,String,PendingIntent)
    [javac]   location: variable not of type Notification

Apparently setLatestEventInfo is deprecated in SDK 23.

Can anyone help with that?

Thanks

Pent

unread,
Jun 2, 2016, 9:58:32 AM6/2/16
to Tasker - Developers, achi...@gmail.com
Ack, progress, I hate it :-)

Compile with an earlier SDK version for now ?

Pent

achi...@gmail.com

unread,
Jun 2, 2016, 4:38:03 PM6/2/16
to Tasker - Developers, achi...@gmail.com
That caused me another problem.

Anyway, I've solved it. Replacing that line with :
NotificationCompat.Builder builder = new NotificationCompat.Builder(c)
 
.setContentTitle(title)
 
.setContentIntent(pi)
 
.setContentText(TextUtils.isEmpty( text ) ? "" : text);

did the job (though there is no backward compatibility this way...
Reply all
Reply to author
Forward
0 new messages