title: Android Beam json file
body: <p>I have a simple activity that launches a file chooser and then sends the file via Android beam like so:</p>
  
  <pre><code>@Override
  protected void onActivityResult(int requestCode, int resultCode,
                                  Intent data) {
      if (requestCode==0 &amp;&amp; resultCode==RESULT_OK) {
          adapter.setBeamPushUris(new Uri[] {data.getData()}, this);
          Button btn=new Button(this);
          btn.setText("Done");
          btn.setOnClickListener(this);
          setContentView(btn);
      }
  }
  </code></pre>
  
  <p>The activity is able to correctly beam 
  images and .txt files. However, I get "Beam did not complete" when I beam .json files. </p>
  
  <p>I thought it was because, there's no application on the receiver that views json files, so I created another version with to view received txt files. The manifest has</p>
  
  <pre><code>&lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW" /&gt;
      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;data android:mimeType="text/*" /&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>When I change the extension of my json files to .txt, the file is sent correctly and the receiving application gets launched. But when I change the extension back to .json and the mimetype of the receiver to "application/json", I still get the "Beam did not complete" message. </p>
  
  <p>Any ideas why?</p>
  
  <p>Thanks!</p>