skip to Main Content

Android Studio – How to solve queryIntentActivities deprecated in API 33

I am getting a strange behavior in Android Studio with API33. In the following code, Intent chooser = Intent.createChooser(sharingIntent, filename); List<ResolveInfo> resInfoList = context.getPackageManager().queryIntentActivities(chooser, android.content.pm.PackageManager.MATCH_DEFAULT_ONLY); I am getting queryIntentActivities(Intent,int) in PackageManager has been deprecated. In the docs, it says: This…

VIEW QUESTION
Back To Top
Search