Can I disable Android toasts?

My app requires connection to a wifi device. Since that wifi device does not provide internet connection, I keep seeing “No Internet Connection” toast on the bottom of the screen. Is there any way to disable that?

hey @aramsh, could you provide some piece of code showing how you implemented it?

It really has nothing to do with my code, the toast is coming from Android. My app is running, the device is connected to wifi and Android is giving me this warning.

I doubt that. I think it’s much more likely that you have installed some other third-party app that is popping that message up.

Here is a screenshot

That looks like a OS or third party app service.

I think it is the OS, so i want to know if there is a way to disable it inside my app

You could prove it by doing a factory reset on the device, uninstalling all other apps.

You were right, it was coming from google connectivity manager :slight_smile: thanks

1 Like