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

App is getting crashed when I click send button #41

Open
akhilnaidu101 opened this issue Jul 16, 2020 · 18 comments
Open

App is getting crashed when I click send button #41

akhilnaidu101 opened this issue Jul 16, 2020 · 18 comments

Comments

@akhilnaidu101
Copy link

I created the CSV in the required format but when I click send it crashes. accessibility permission is also given. Android 10

@nikhilmuz
Copy link
Owner

nikhilmuz commented Jul 16, 2020 via email

@akhilnaidu101
Copy link
Author

I checked, still not working

@nikhilmuz
Copy link
Owner

nikhilmuz commented Jul 16, 2020 via email

@akhilnaidu101
Copy link
Author

Just tried. Same issue. here's brief: First time when I click send button the app closes and nothing happens and then I open it again it shows below not permitted :( and when I select file again and send it crashes.

@nikhilmuz
Copy link
Owner

not permitted :( this message appears while pinging with the network to check if the app is to the latest version. Also, I am unable to reproduce on Android 10 with the CSV in this repository. It would be better if I get relevant logcat from ADB.

@akhilnaidu101
Copy link
Author

ok, Check this out:
07-16 17:59:35.306 630 630 E AndroidRuntime: Process: ga.nikhilkumar.whatsappsender, PID: 630
07-16 17:59:35.306 630 630 E AndroidRuntime: java.lang.RuntimeException: Unable to start service ga.nikhilkumar.whatsappsender.WASenderFgSvc@16db8b9 with Intent { cmp=ga.nikhilkumar.whatsappsender/.WASenderFgSvc (has extras) }: java.lang.SecurityException: Permission Denial: startForeground from pid=630, uid=10754 requires android.permission.FOREGROUND_SERVICE
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4434)
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.ActivityThread.access$2100(ActivityThread.java:272)
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087)
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.os.Looper.loop(Looper.java:237)
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8016)
07-16 17:59:35.306 630 630 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
07-16 17:59:35.306 630 630 E AndroidRuntime: Caused by: java.lang.SecurityException: Permission Denial: startForeground from pid=630, uid=10754 requires android.permission.FOREGROUND_SERVICE
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2088)
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2056)
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2004)
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6985)
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.Service.startForeground(Service.java:707)
07-16 17:59:35.306 630 630 E AndroidRuntime: at ga.nikhilkumar.whatsappsender.WASenderFgSvc.onStartCommand(WASenderFgSvc.java:65)
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4416)
07-16 17:59:35.306 630 630 E AndroidRuntime: ... 8 more
07-16 17:59:35.306 630 630 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.server.am.ActivityManagerService.enforcePermission(ActivityManagerService.java:7440)
07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.server.am.ActiveServices.setServiceForegroundInnerLocked(ActiveServices.java:1354)
07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.server.am.ActiveServices.setServiceForegroundLocked(ActiveServices.java:1005)
07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.server.am.ActivityManagerService.setServiceForeground(ActivityManagerService.java:16562)
07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3202)
07-16 17:59:35.306 630 630 E AndroidRuntime:
07-16 19:37:19.500 11353 11353 E AndroidRuntime: FATAL EXCEPTION: main
07-16 19:37:19.500 11353 11353 E AndroidRuntime: Process: ga.nikhilkumar.whatsappsender, PID: 11353
07-16 19:37:19.500 11353 11353 E AndroidRuntime: java.lang.RuntimeException: Unable to start service ga.nikhilkumar.whatsappsender.WASenderFgSvc@9970408 with Intent { cmp=ga.nikhilkumar.whatsappsender/.WASenderFgSvc (has extras) }: java.lang.SecurityException: Permission Denial: startForeground from pid=11353, uid=10754 requires android.permission.FOREGROUND_SERVICE
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4434)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.ActivityThread.access$2100(ActivityThread.java:272)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.os.Looper.loop(Looper.java:237)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8016)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: Caused by: java.lang.SecurityException: Permission Denial: startForeground from pid=11353, uid=10754 requires android.permission.FOREGROUND_SERVICE
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2088)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2056)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2004)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6985)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.Service.startForeground(Service.java:707)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at ga.nikhilkumar.whatsappsender.WASenderFgSvc.onStartCommand(WASenderFgSvc.java:65)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4416)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: ... 8 more
07-16 19:37:19.500 11353 11353 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.server.am.ActivityManagerService.enforcePermission(ActivityManagerService.java:7440)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.server.am.ActiveServices.setServiceForegroundInnerLocked(ActiveServices.java:1354)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.server.am.ActiveServices.setServiceForegroundLocked(ActiveServices.java:1005)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.server.am.ActivityManagerService.setServiceForeground(ActivityManagerService.java:16562)
07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3202)
07-16 19:37:19.500 11353 11353 E AndroidRuntime:
07-16 19:37:20.770 14603 14603 E AndroidRuntime: FATAL EXCEPTION: main
07-16 19:37:20.770 14603 14603 E AndroidRuntime: Process: ga.nikhilkumar.whatsappsender, PID: 14603
07-16 19:37:20.770 14603 14603 E AndroidRuntime: java.lang.RuntimeException: Unable to start service ga.nikhilkumar.whatsappsender.WASenderFgSvc@c3f0d69 with Intent { cmp=ga.nikhilkumar.whatsappsender/.WASenderFgSvc (has extras) }: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND typ=text/plain flg=0x10000001 pkg=com.whatsapp.w4b clip={text/plain T:Enjoy} (has extras) }
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4434)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ActivityThread.access$2100(ActivityThread.java:272)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.os.Looper.loop(Looper.java:237)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8016)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND typ=text/plain flg=0x10000001 pkg=com.whatsapp.w4b clip={text/plain T:Enjoy} (has extras) }
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2071)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1717)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ContextImpl.startActivity(ContextImpl.java:1000)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ContextImpl.startActivity(ContextImpl.java:971)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.content.ContextWrapper.startActivity(ContextWrapper.java:389)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at ga.nikhilkumar.whatsappsender.WASenderFgSvc.send(WASenderFgSvc.java:117)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at ga.nikhilkumar.whatsappsender.WASenderFgSvc.onStartCommand(WASenderFgSvc.java:89)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4416)
07-16 19:37:20.770 14603 14603 E AndroidRuntime: ... 8 more

@nikhilmuz
Copy link
Owner

Thanks for sharing will check it out in a while.

@akhilnaidu101
Copy link
Author

ok, Thank you

@nikhilmuz
Copy link
Owner

looks the app you are using is too old and ain't compiled from latest source at master branch.
ensure the following line is there in AndroidManifest.xml
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
and then compile the release build using gradle.

@akhilnaidu101
Copy link
Author

akhilnaidu101 commented Jul 17, 2020 via email

@tauseefshams
Copy link

tauseefshams commented Jul 17, 2020 via email

@alwinsajip
Copy link

HAVE YOU GOT THE LATEST APKs AND SOLVED YOUR PROBLEMS. I TOO HAVE THIS PROBLEM PLEASE CAN YOU HELP ME.

@ravi2143
Copy link

I have the same issue, but I solved by following sample csv file, and contact should be in number format.

@nikhilmuz
Copy link
Owner

nikhilmuz commented Oct 26, 2020 via email

@patelnisheet
Copy link

Can you please send me the latest compiled apk. Thank you.

On Fri, 17 Jul 2020, 12:20 am Nikhil Kumar, @.***> wrote: looks the app you are using is too old and ain't compiled from latest source at master branch. ensure the following line is there in AndroidManifest.xml and then compile the release build using gradle. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#41 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3YJD4IVUGY5P2BAMB5KPDR35DWTANCNFSM4O4AOPHQ .

Hey, have you checked latest version apk?
Would you mind to send it to me on nishitpatel2712@gmail.com

@ambtechfirebase
Copy link

i need a demo like these if you can make it i will paid you.
Mail me : ambtechfirebase@gmail.com

@daljeet175
Copy link

Mobile number : - 7717744914

Please resolve below issue this error comes when click the send button...........

java.lang.RuntimeException: Unable to start service ga.nikhilkumar.whatsappsender.WASenderFgSvc@10e9f78 with Intent { cmp=ga.nikhilkumar.whatsappsender/.WASenderFgSvc (has extras) }: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4017)
at android.app.ActivityThread.access$1800(ActivityThread.java:233)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1912)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:233)
at android.app.ActivityThread.main(ActivityThread.java:7225)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:962)
Caused by: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
at ga.nikhilkumar.whatsappsender.WASenderFgSvc.send(WASenderFgSvc.java:105)
at ga.nikhilkumar.whatsappsender.WASenderFgSvc.onStartCommand(WASenderFgSvc.java:88)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3984)
at android.app.ActivityThread.access$1800(ActivityThread.java:233) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1912) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loop(Looper.java:233) 
at android.app.ActivityThread.main(ActivityThread.java:7225) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:962) 
D/Parcel: Parcel 0x7c5b01cf00: freeing with 4014 capacity

@nikhilmuz
Copy link
Owner

nikhilmuz commented Oct 10, 2021 via email

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

7 participants