keymapperorg / KeyMapper

**DEVELOPMENT STOPPED**.📱 An Android app that change what the buttons do on your devices!
http://docs.keymapper.club
GNU General Public License v3.0
946 stars 147 forks source link

Crash: File manager can not be found when doing automatic backups #1183

Open andreyoleynik opened 8 months ago

andreyoleynik commented 8 months ago

Developer TODO (don't remove)

Discord message link/email recipient

Describe the bug When I press "Automatically back up mappings to a specified location" app crashes. After restart the app I can't start service again, only restart device.

To Reproduce Steps to reproduce the behavior:

Try to setup autosave. Also Can't save from main screen, but without exception. Load works good, see file chose dialog

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

See logcat: FATAL EXCEPTION: main Process: io.github.sds100.keymapper, PID: 7409 android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CREATE_DOCUMENT typ=todo/todo (has extras) } at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2058) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1716) at android.app.Activity.startActivityForResult(Activity.java:5283) at androidx.activity.ComponentActivity.startActivityForResult(SourceFile:2) at androidx.core.app.b$b.b(SourceFile:1) at androidx.core.app.b.y(SourceFile:1) at androidx.activity.ComponentActivity$b.f(SourceFile:1) at androidx.activity.result.ActivityResultRegistry$a.b(SourceFile:1) at androidx.fragment.app.Fragment$a.b(SourceFile:1) at androidx.activity.result.c.a(SourceFile:1) at io.github.sds100.keymapper.settings.MainSettingsFragment.populatePreferenceScreen$lambda$28$lambda$7$lambda$6(Unknown Source:34) at io.github.sds100.keymapper.settings.MainSettingsFragment.q(SourceFile:1) at io.github.sds100.keymapper.settings.r.a(SourceFile:1) at androidx.preference.Preference.c0(SourceFile:1) at androidx.preference.Preference.d0(SourceFile:1) at androidx.preference.Preference$a.onClick(Unknown Source:2) at android.view.View.performClick(View.java:7153) at android.view.View.performClickInternal(View.java:7126) at android.view.View.access$3500(View.java:803) at android.view.View$PerformClick.run(View.java:27540) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7422) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)

Smartphone (please complete the following information):

Additional context Loading dialog works good, but crashes on saving. Doesn't depend on how many file managers installed.

sds100 commented 1 week ago

I'm not able to reproduce this. I installed MiXplorer and I was able to select a location to save. Can you try the latest testing version because I changed something that may be indirectly related. You can read how to get this build here https://docs.keymapper.club/contributing/#becoming-a-tester.