title: "Uncaught TypeError: Cannot read property 'o' of null" | Google Print Android
body: <p>I am implementing Google Print from my Android App. And i have implemented but when i do the print i am getting this error - </p>
  
  <pre><code>[INFO:CONSOLE(287)] "Uncaught TypeError: Cannot read property 'o' of null", source: https://www.google.com/cloudprint/client/1572946473-dialog_mobile.js (287)
  </code></pre>
  
  <p>I have search about this error. And i got<br>
  <code>settings.setDomStorageEnabled(true);</code></p>
  
  <p>But still i am getting same error.
  Please help me out.</p>
  
  <p>Thanks in Advance.</p>
  
  <p>Code to Call PrintDialog.</p>
  
  <pre><code>if (!isNetworkAvailable()) {
      Toast.makeText(FinalCanvasScreen.this,
              "Network connection not available, Please try later",
              Toast.LENGTH_SHORT).show();
  } else {
      File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/xyz.pdf");
      Intent printIntent = new Intent(FinalCanvasScreen.this, PrintDialogActivity.class);
      printIntent.setDataAndType(Uri.fromFile(file), "application/pdf");
      printIntent.putExtra("meCard", "meCard print ");
      startActivity(printIntent);
  }
  </code></pre>