Efiicient way to show 'Cant access network' View with 'Retry' and additional options like 'Wifi Settings', 'Mobile Network'

前端 未结 2 490
孤街浪徒
孤街浪徒 2021-02-02 04:46

I need to include this in my app

When should it get triggered?

  • Any action triggered by user from UI requires internet
2条回答
  •  星月不相逢
    2021-02-02 05:22

    I have encountered the same needs and issues. I am working on a Volley based library jus where most the issues you have had i handle with rxJava global observables and of course Alerts class with static alerts/views generators. the connectivity handling I try to make it smooth using ConnectivityManager and NoConnectionPolicy concepts.

提交回复
热议问题