Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p4a generates deprecated code under Android API 23 #864

Closed
hackalog opened this issue Aug 14, 2016 · 1 comment
Closed

p4a generates deprecated code under Android API 23 #864

hackalog opened this issue Aug 14, 2016 · 1 comment

Comments

@hackalog
Copy link

hackalog commented Aug 14, 2016

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.

@brussee
Copy link
Contributor

brussee commented Oct 18, 2016

This was already fixed in the service_only bootstrap: 6b30ca3

@tito tito closed this as completed in 3534a76 Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants