Skip to content

p4a generates deprecated code under Android API 23 #864

@hackalog

Description

@hackalog

p4a is generating a deprecated call - setLatestEventInfo() in PythonService.java - when used with API 23:

-compile:  
    [javac] Compiling 23 source files to /home/hackalog/.local/share/python-for-android/dists/unnamed_dist_1/bin/classes 
    [javac] /home/hackalog/.local/share/python-for-android/dists/unnamed_dist_1/tmp-src/org/kivy/android/PythonService.java:96: error: cannot find symbol    
    [javac]         notification.setLatestEventInfo(context, serviceTitle, serviceDescription, pIntent);    
    [javac]                     ^   
    [javac]   symbol:   method setLatestEventInfo(Context,String,String,PendingIntent)  
    [javac]   location: variable notification of type Notification  
    [javac] Note: Some input files use or override a deprecated API.    
    [javac] Note: Recompile with -Xlint:deprecation for details.    
    [javac] 1 error 

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions