title: How to determine the type of an extra in a bundle held by intent?
body: <p>I am trying to pass arbitrary data to a <code>BroadcastReceiver</code> through its <code>Intent</code>.</p>
  
  <p>So I might do something like the following</p>
  
  <pre><code>intent.putExtra("Some boolean", false);
  intent.putExtra("Some char", 'a');
  intent.putExtra("Some String", "But don't know what it will be");
  intent.putExtra("Some long", 15134234124125);
  </code></pre>
  
  <p>And then pass this to the <code>BroadcastReceiver</code></p>
  
  <p>I want to iterate through <code>Intent.getExtras()</code> with something like <code>keySet()</code>, but I would also like to be able to get the value of the key without having to hard-code calls to methods like <code>.getStringExtra()</code>, or <code>.getBooleanExtra()</code>.</p>
  
  <p>How does a person do this?</p>