Summary
The application crashes when attempting to open the Folder Picker.
Environment
- App Version : v1.0.0+gh.r04 (1025)
- Build Type : OFFICIAL
- ABI : arm64-v8a
- Android SDK : 36
- Device : Xiaomi 23021RAA2Y
- OS : Android 16
Expected Behavior
The app should open the Android folder picker, or gracefully inform the user if the device does not support ACTION_OPEN_DOCUMENT_TREE.
Actual Behavior
The app crashes with ActivityNotFoundException.
Stacktrace
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE flg=0x43 xflg=0x4 }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2490)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:2025)
at android.app.Activity.startActivityForResult(Activity.java:6203)
at android.app.Activity.startActivityForResult(Activity.java:6160)
at com.tom.rv2ide.activities.FolderPickerActivity.onCreate(FolderPickerActivity.kt:25)
at android.app.Activity.performCreate(Activity.java:9428)
at android.app.Activity.performCreate(Activity.java:9371)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1537)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4703)
Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tom.rv2ide/com.tom.rv2ide.activities.FolderPickerActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE flg=0x43 xflg=0x4 }
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4721)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4950)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:222)
at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:136)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:106)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:83)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:3103)
at android.os.Handler.dispatchMessage(Handler.java:114)
at android.os.Looper.loopOnce(Looper.java:274)
at android.os.Looper.loop(Looper.java:369)
at android.app.ActivityThread.main(ActivityThread.java:10089)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:616)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1137)
Summary
The application crashes when attempting to open the Folder Picker.
Environment
Expected Behavior
The app should open the Android folder picker, or gracefully inform the user if the device does not support ACTION_OPEN_DOCUMENT_TREE.
Actual Behavior
The app crashes with ActivityNotFoundException.
Stacktrace