Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26952] Android: Verify that Ti.UI.Android.openPreferences() works on Android Q

GitHub Issuen/a
TypeStory
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2019-08-16T21:03:02.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.3.0
ComponentsAndroid
Labelsandroid, preferences
ReporterJoshua Quick
AssigneeGary Mathews
Created2019-03-29T20:56:59.000+0000
Updated2019-08-16T21:03:06.000+0000

Description

Android Q is deprecating the "android.preference" library which Titanium's Ti.UI.Android.openPreferences() API uses. https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Android-method-openPreferences https://developer.android.com/preview/behavior-changes-all#preferences Google's docs suggests that "android.preference" library is deprecated, not removed. So, we should first check that the deprecated usage still works while targeting API Level 29. The best solution is to change Titanium to depend on the AndroidX libraries instead of the older Support libraries per [TIMOB-26472]. This is a much bigger change that effects all modules that we may want to defer to a later date.

Comments

  1. Gary Mathews 2019-08-16

    Confirmed the example for [Ti.UI.Android.openPreferences](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Android-method-openPreferences) functions as intended when built and ran targeting SDK API 29.

JSON Source