W
W
Wilson2021-02-24 13:04:02
Java
Wilson, 2021-02-24 13:04:02

How to implement internet check in android?

There are 2 activities:
1) Loading screen
2) Basic

Question:
How to implement internet check?
First, the loading screen is loaded, and then 2 options:
1) There is Internet on the device - The main activity opens
2) There is no Internet on the device - A modal window opens with the text that there is no Internet and a button to check the Internet

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SKEPTIC, 2021-02-24
@bbbbb123654

Make a request to a website. For example, ident.me shows your ip

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question