title: How to know android.os.TransactionTooLarge or not
body: <p>I am trying to pass data more than 1Mb here, data it may be possible bitmap or string so, android.os.TransactionTooLarge exception thrown by an application but below 24 API level it was a simple warning but >=24 API level it will create application crash so, how can I know this transaction is valid or not else have any API available which represents this transaction is valid or not?. Can I prior know the transaction is valid or not?</p>
  
  <p>for example,</p>
  
  <pre><code>Intent sendIntent = new Intent(Intent.ACTION_SEND);
  sendIntent.setType("text/plain");
  sendIntent.putExtra(Intent.EXTRA_TEXT, "This is too long string data...");
  startActivity(sendIntent);
  </code></pre>