title: Android open XLSX file
body: <p>I'm trying to open an <code>XLSX</code> file within my Android App.</p>
  
  <p>I'm aware that the <code>Intent</code> type I have to fire is <code>application/excel</code>, but despite I've installed <code>Google Sheets</code>, my code says that no application can open my excel file.</p>
  
  <p>This is the code I use to fire the <code>Intent</code>:</p>
  
  <pre><code>private void openXLS(){
          File xls = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS), "prova.xlsx");
          Uri path = Uri.fromFile(xls);
          Intent intent = new Intent(Intent.ACTION_VIEW);
          intent.setDataAndType(path, "application/excel");
              intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  
          try {
              context.startActivity(intent);
          } catch (ActivityNotFoundException e) {
              Toast.makeText(context, "No Application available to view XLS", Toast.LENGTH_SHORT).show();
          }
      }
  </code></pre>
  
  <p><strong>Note:</strong> <code>prova.xlsx</code> exists, and I'm able to reach it and open it.</p>