Added device id fetching capability and moved AsyncTask to MainActivity