public String getData(String urlPath) {
      try {
        URL url = new URL(urlPath);

        HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection();
        //    	   urlConnection.setSSLSocketFactory(getSocketFactory());
        urlConnection.connect();
        java.io.InputStream input = urlConnection.getInputStream();

        int count;

        //            java.io.InputStream input = conection.getInputStream();
        // getting file length
        int lenghtOfFile = urlConnection.getContentLength();
        // input stream to read file - with 8k buffer
        //			  java.io.InputStream input = new BufferedInputStream(urlConnection.openStream());
        // Output stream to write file
        byte data[] = new byte[4096];
        long total = 0;
        StringBuilder sb = new StringBuilder();
        while ((count = input.read(data)) != -1) {

          //            while (input.read(b) > 0) {

          sb.append(new String(data, Charset.forName("utf-8")));
        }

        input.close();

        return sb.toString();
      } catch (Throwable e) {
        e.printStackTrace();
        Log.d("MoreScreen", "Error throwing in version fetching from play store." + e.toString());
      }
      return null;
    }