I have an Android app which communicates with an accessory. I need to debug its communications, which means the USB port is already used. I have tried using wireless ADB, but it hasn’t been working for me (it’ll be working for a few seconds, then flake out a few seconds later and drop the connection,) so I’d like to know if anyone knows of a way to do this:
I’d like to display messages that I send to log in a toast automatically. I’m making the log messages from a class that can’t have a context, and thus can’t make toasts on its own. I’m hoping there’s some easy way I can make it so my main activity just listens for messages to logcat and puts them up in a toast.
Ideas?
Make an interface, make your application implement the interface.