Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nothing works #1

Open
EspoiRka opened this issue Jul 27, 2022 · 0 comments
Open

nothing works #1

EspoiRka opened this issue Jul 27, 2022 · 0 comments

Comments

@EspoiRka
Copy link

Hello. I was looking for an example of an application for sending files to a PC, I found this... I put the project in android studio, turn on debugging on my pixel 6 pro and get an error when I turn on device search.

Process: com.logigear.bluetooth_file_transfer, PID: 13128 java.lang.SecurityException: Permission Denial: starting Intent { act=android.bluetooth.adapter.action.REQUEST_DISCOVERABLE cmp=com.android.settings/.bluetooth.RequestPermissionActivity (has extras) } from ProcessRecord{b84bbba 13128:com.logigear.bluetooth_file_transfer/u0a304} (pid=13128, uid=10304) requires android.permission.BLUETOOTH_CONNECT at android.os.Parcel.createExceptionOrNull(Parcel.java:2426) at android.os.Parcel.createException(Parcel.java:2410) at android.os.Parcel.readException(Parcel.java:2393) at android.os.Parcel.readException(Parcel.java:2335) at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:2328) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1758) at android.app.Activity.startActivityForResult(Activity.java:5410) at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:597) at android.app.Activity.startActivityForResult(Activity.java:5368) at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:583) at android.app.Activity.startActivity(Activity.java:5754) at android.app.Activity.startActivity(Activity.java:5707) at com.logigear.bluetooth_file_transfer.MainActivity.enterScanningMode(MainActivity.kt:263) at com.logigear.bluetooth_file_transfer.MainActivity.onCreate$lambda-0(MainActivity.kt:126) at com.logigear.bluetooth_file_transfer.MainActivity.$r8$lambda$ACcRNjkcA5vExfAorDoDhAHnhXE(Unknown Source:0) at com.logigear.bluetooth_file_transfer.MainActivity$$ExternalSyntheticLambda0.onClick(Unknown Source:2) at android.view.View.performClick(View.java:7455) at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1119) at android.view.View.performClickInternal(View.java:7432) at android.view.View.access$3700(View.java:835) at android.view.View$PerformClick.run(View.java:28810) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7870) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) Caused by: android.os.RemoteException: Remote stack trace: at com.android.server.wm.ActivityTaskSupervisor.checkStartAnyActivityPermission(ActivityTaskSupervisor.java:1059) at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:983) at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:672) at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1243) at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1215)

It was android 12. Okay. I'm trying to run on android 9. Everything started, the search went. I didn't run it on my phone, but on a device to read the product... But also an android. And when you try to send a file, nothing is available in Explorer. Everything is gray. Ie, I turned on the search, found pixel 6 pro, chose to send a file and nothing...nothing can be selected. I chose a different transmission method, through a different conductor, and not the standard one. And I get this error when choosing.
E/AndroidRuntime: FATAL EXCEPTION: main Process: com.logigear.bluetooth_file_transfer, PID: 27374 java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=111, result=-1, data=Intent { act=android.intent.action.SEND dat=content://com.amaze.filemanager.debug/storage_root/storage/emulated/0/app-debug.apk typ=apk flg=0x1 }} to activity {com.logigear.bluetooth_file_transfer/com.logigear.bluetooth_file_transfer.FilePickerActivity}: java.lang.IllegalArgumentException: column '_data' does not exist. Available columns: [] at android.app.ActivityThread.deliverResults(ActivityThread.java:4391) at android.app.ActivityThread.handleSendResult(ActivityThread.java:4433) at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1836) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6702) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911) Caused by: java.lang.IllegalArgumentException: column '_data' does not exist. Available columns: [] at android.database.AbstractCursor.getColumnIndexOrThrow(AbstractCursor.java:340) at android.database.CursorWrapper.getColumnIndexOrThrow(CursorWrapper.java:87) at com.logigear.bluetooth_file_transfer.helper.FilePickerHelper$Companion.getDataColumn(FilePickerHelper.kt:86) at com.logigear.bluetooth_file_transfer.helper.FilePickerHelper$Companion.getPath(FilePickerHelper.kt:65) at com.logigear.bluetooth_file_transfer.FilePickerActivity.onActivityResult(FilePickerActivity.kt:86) at android.app.Activity.dispatchActivityResult(Activity.java:7454) at android.app.ActivityThread.deliverResults(ActivityThread.java:4384) at android.app.ActivityThread.handleSendResult(ActivityThread.java:4433)  at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)  at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)  at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1836)  at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loop(Looper.java:193)  at android.app.ActivityThread.main(ActivityThread.java:6702)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911) 

I don't understand anything about Kotlin and I don't speak English, but know that there is such a problem. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant