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

Android Studio – How can I allow buttons in Android development to scale without changing their shape?

Say we got this button in a layout file, say app/res/layout/activity_main.xml: <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="50dp" android:background="@drawable/test" android:text="ok" /> Also say that @drawable/test is an SVG file (vector image) that gives a unique shape for the button as follows: The problem…

VIEW QUESTION
Back To Top
Search