I'm testing this code to share a file directly in Google Drive.
It works fine in Android 10, but in Android 13 I get this error message:
Do I need declare something in manifest in Android 13 to use the intent?
Google Drive is up to date in both devices and I can see the component string with QueryIntentActivities.
How can I fix it in Android 13?
Thanks in advance for any help.
B4X:
File.Copy(File.DirAssets, "1.pdf", Starter.Provider.SharedFolder, "1.pdf")
Dim sendIntent As Intent
sendIntent.Initialize(sendIntent.ACTION_SEND,"")
sendIntent.SetComponent("com.google.android.apps.docs/.common.shareitem.UploadMenuActivity")
sendIntent.PutExtra("android.intent.extra.STREAM", Starter.Provider.GetFileUri("1.pdf"))
StartActivity(sendIntent)
It works fine in Android 10, but in Android 13 I get this error message:
B4X:
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.apps.docs/com.google.android.apps.docs.common.shareitem.UploadMenuActivity}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared <intent-filter>?
Google Drive is up to date in both devices and I can see the component string with QueryIntentActivities.
How can I fix it in Android 13?
Thanks in advance for any help.