aaaaalbert / sensibility-testbed

1 stars 2 forks source link

`setLatestEventInfo` is deprecated #5

Closed aaaaalbert closed 7 years ago

aaaaalbert commented 8 years ago

Lest we forget to fix this as we phase out old Android versions as targets, InstallerService.java should stop using setLatestEventInfo which was deprecated a while ago. I currently set (i.e. hack) minSdkVersion to 11 to still get the app built.

See also

aaaaalbert commented 8 years ago

There are a ton of further deprecation warnings that I'll just paste here for later reference:

Information:Using javac 1.7.0_95 to compile java sources
Information:Module "app" was fully rebuilt due to project configuration/dependencies changes
Information:04.02.16 15:37 - Compilation completed successfully with 14 warnings in 5s 644ms
/media/sf_sensibility-buildbox32/SensibilityTestbed/sensibility-testbed/app/src/main/java/com/sensibility_testbed/AutostartListener.java
Warning:(39, 56) java: MODE_WORLD_WRITEABLE in android.content.Context has been deprecated
/media/sf_sensibility-buildbox32/SensibilityTestbed/sensibility-testbed/app/src/main/java/com/sensibility_testbed/ScriptActivity.java
Warning:(1030, 58) java: MODE_WORLD_WRITEABLE in android.content.Context has been deprecated
/media/sf_sensibility-buildbox32/SensibilityTestbed/sensibility-testbed/app/src/main/java/com/sensibility_testbed/InstallerService.java
Warning:(155, 15) java: onStart(android.content.Intent,int) in android.app.Service has been deprecated
Warning:(156, 10) java: onStart(android.content.Intent,int) in android.app.Service has been deprecated
Warning:(185, 17) java: setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent) in android.app.Notification has been deprecated
Warning:(310, 21) java: setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent) in android.app.Notification has been deprecated
Warning:(331, 39) java: getAvailableBlocks() in android.os.StatFs has been deprecated
Warning:(332, 28) java: getBlockSize() in android.os.StatFs has been deprecated
Warning:(479, 33) java: Notification(int,java.lang.CharSequence,long) in android.app.Notification has been deprecated
Warning:(485, 17) java: setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent) in android.app.Notification has been deprecated
/media/sf_sensibility-buildbox32/SensibilityTestbed/sensibility-testbed/app/src/main/java/com/sensibility_testbed/ScriptService.java
Warning:(373, 15) java: onStart(android.content.Intent,int) in android.app.Service has been deprecated
Warning:(385, 10) java: onStart(android.content.Intent,int) in android.app.Service has been deprecated
Warning:(431, 33) java: Notification(int,java.lang.CharSequence,long) in android.app.Notification has been deprecated
Warning:(438, 17) java: setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent) in android.app.Notification has been deprecated
lukpueh commented 7 years ago

Minor FYI: InstallerService.java has become obsolete. The entire installation workflow is handled in SensibilityActivity.java and will be streamlined with https://github.com/aaaaalbert/sensibility-testbed/issues/20.

aaaaalbert commented 7 years ago

Thanks for the confirmation, I had suspected this.

aaaaalbert commented 7 years ago

Closing!