Need Help in my Android Studio Applications - 15/07/2018 06:57 EDT

I am making a mini project in Android Studio, I need help in solve below two problems

1. I want to check internet connectivity background, whenever there is a no internet. the message will dosplay no Internet--Reconnect and try again. The the background page will be white; no WebView Url should not be displayed to the users.

2. I want to capture IMEI Code every time opens the app [in background], and send the IMEI variables to my WebView Text Field, so that I can store or authinticate the users further.

Note: I will not able to transfer the code, the freelancer has to work over dreamweaver.