I've written an android application with an addNotification() function in the main activity.
I'm wondering if it's possible to call this function from my pc using adb shell commands whilst the application is running?
Simple answer: No.
But you can use intent extras, or make another class file for that function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With