Questions tagged [android-tiramisu]

For questions regarding programming about Android 13 (Tiramisu or Android T), the 2022 release of the AOSP (A.K.A Android Open Source Project)

This tag can include questions that are related to android 13 migration, API changes, etc.

Android Tiramisu is a successor of Android Snow Cone (Android 12), chosen according to the AOSP naming system (eg. in a alphabetical order).

If you are looking forward to learn more about this topic, here are some of the links to get you started -

About Android 13

Android 13 Migration Guide

Android 13 API changes and features

37 questions
126
votes
18 answers

onBackPressed() is deprecated. What is the alternative?

I have upgraded targetSdkVersion and compileSdkVersion to 33. I am now getting a warning telling me that onBackPressed is deprecated. I see suggestions to use android.window.OnBackInvokedCallback or androidx.activity.OnBackPressedCallback to handle…
Rumit Patel
  • 8,830
  • 18
  • 51
  • 70
44
votes
9 answers

getSerializableExtra and getParcelableExtra are deprecated. What is the alternative?

I have upgraded targetSdkVersion and compileSdkVersion to 33. I am now getting warnings telling me that the getSerializableExtra(name:) and getParcelableExtra(name:) methods are deprecated. I checked and confirmed from the documentation in the…
13
votes
4 answers

Android API 33 permissions are not granted

So as I read in the developer.android site the Android 13 brings new changes in the Permission field. I have a Chat application where I need to make calls, open the camera, record audio, read and write in the external storage. So in the SplashScreen…
james04
  • 1,580
  • 2
  • 20
  • 46
13
votes
1 answer

onBackPressedDispatcher.onBackPressed() vs backPressedCallback.handleOnBackPressed()

Since the old Activity.onBackPressed() becomes deprecated starting Android 33, what is the better way to call it programmatically? Example: override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { //…
10
votes
5 answers

Geocoder - getFromLocation() deprecated

I've received a message that this function (or it's constructor) has been deprecated. There's a new constructor of that function that accepts an additional parameter 'Geocoder.GeocodeListener listener' but that new constructor requires an API Level…
Stefan
  • 2,829
  • 5
  • 20
  • 44
6
votes
1 answer

Android Kotlin Geocoder DEADLINE_EXCEEDED on Android when getting location coordinates/adresses

In my android app i am trying to get the address from lat lng using the Geocoder using getFromLocation method and the GeocodeListener but sometimes the app is getting crashed Crash Log Caused by java.io.IOException: egma: DEADLINE_EXCEEDED: Deadline…
Chandra Shekhar
  • 3,550
  • 2
  • 14
  • 22
6
votes
2 answers

"Unsupported value: Tiramisu" while I try to set up the Android 13 SDK

I followed this page: https://developer.android.com/about/versions/13/setup-sdk to set up Android 13 SDK. In my build.gradle: android { compileSdkVersion("Tiramisu") defaultConfig { targetSdkVersion("Tiramisu") } } Then I got…
user1373996
5
votes
1 answer

getApplicationInfo(String,int) deprecated, What is the alternative?

I have upgraded targetSdkVersion and compileSdkVersion to 33. Now getting warning getApplicationInfo(String,int) is deprecated. It is suggested to use use getApplicationInfo(java.lang.String, android.content.pm.PackageManager.ApplicationInfoFlags)…
5
votes
1 answer

Will preventing AD_ID permission to be merged affect Firebase functionality?

So we were about to submit our app for review but we were stopped by Google's new requirement for apps targeting Android 13 and above, which basically tells developers to disclose the purpose of AD_ID permission in their app. The thing is, our app…
5
votes
1 answer

Unable to install app to device specified with targetSdkVersion:Tiramisu - Android

I am currently doing some testing on Android 13 Tiramisu and am having trouble getting the app to install on my device. I have installed Android Tiramisu Preview (Rev.4) in Android Studio. I created a sample app and configured it as follows //…
Peri
  • 253
  • 1
  • 2
  • 12
2
votes
1 answer

Is there a way to detect Network Connected and Disconnected events in Android 13?

I'm looking for a solution to detect Network Events in my Android project, specifically the Connected and Disconnected Events. With older Android versions, we were able to listen such events from Broadcast receivers. Work Manager has some…
2
votes
0 answers

Cannot migrate to Android 13

I'm trying to migrate my app to Android 13, but I can't manage to do so. I have the following contents in by main module gradle build file: android { // Android Build Settings compileSdk 33 buildToolsVersion "33.0.0" ndkVersion…
Arnyminer Z
  • 5,784
  • 5
  • 18
  • 32
2
votes
1 answer

Abnormal permission request behaviour on Android 13 Tiramisù

I have a method in order to show request permissions if needed static boolean requestPermission(int id, String... permissions) { System.out.println("REQUEST PERMISSION METHOD"); boolean granted = true; …
AndreaF
  • 11,975
  • 27
  • 102
  • 168
2
votes
1 answer

We recommend using a newer Android Gradle plugin to use compileSdkPreview = "Tiramisu"

I am using Android Studio Dolphin | 2021.3.1 Canary 8 for JEtpack Compose, OS: Windows 10 (latest version) My @Preview() stop working after I update my Android Studio: @Preview(showBackground = true) @Composable fun DefaultPreview() { …
1
vote
0 answers

startActivities to start a split screen is not working for Android 13 anymore

I used to launch split screen with two of my activities using the following code: @RequiresApi(28) fun launchSplitScreenMode(parent: FragmentActivity, intentTop: Intent, intentBottom: Intent) { with(parent) { …
M. Usman Khan
  • 3,689
  • 1
  • 59
  • 69
1
2 3