title: Broadcasting and receiving extra doubles
body: <p>I'm attempting to broadcast extras in an am broadcast in adb shell. In my BroadcastReceiver in android, I'm subscribed to the broadcast and pull the extras out of the Bundle.</p>
  
  <p>My trouble lies with doubles. I assumed that a broadcast could include a double since the <code>Bundle</code> class has a <code>getDouble</code> method, e.g.:</p>
  
  <pre><code>double percentComplete = bundle.getDouble("percent_complete");
  </code></pre>
  
  <p>However, the am broadcast command in adb shell doesn't seem to support doubles, only floats. When I send the float, the Bundle.getDouble() method throws an internal exception, logged at the warning level, indicating that it fails to cast Float to Double.</p>
  
  <p>Can I send doubles, or am I forced to use floats?</p>
  
  <p>Here are the flags for specifiying extras that I am aware of, as reported by am.</p>
  
  <pre><code>&lt;INTENT&gt; specifications include these flags and arguments:
      [-a &lt;ACTION&gt;] [-d &lt;DATA_URI&gt;] [-t &lt;MIME_TYPE&gt;]
      [-c &lt;CATEGORY&gt; [-c &lt;CATEGORY&gt;] ...]
      [-e|--es &lt;EXTRA_KEY&gt; &lt;EXTRA_STRING_VALUE&gt; ...]
      [--esn &lt;EXTRA_KEY&gt; ...]
      [--ez &lt;EXTRA_KEY&gt; &lt;EXTRA_BOOLEAN_VALUE&gt; ...]
      [--ei &lt;EXTRA_KEY&gt; &lt;EXTRA_INT_VALUE&gt; ...]
      [--el &lt;EXTRA_KEY&gt; &lt;EXTRA_LONG_VALUE&gt; ...]
      [--ef &lt;EXTRA_KEY&gt; &lt;EXTRA_FLOAT_VALUE&gt; ...]
      [--eu &lt;EXTRA_KEY&gt; &lt;EXTRA_URI_VALUE&gt; ...]
      [--ecn &lt;EXTRA_KEY&gt; &lt;EXTRA_COMPONENT_NAME_VALUE&gt;]
      [--eia &lt;EXTRA_KEY&gt; &lt;EXTRA_INT_VALUE&gt;[,&lt;EXTRA_INT_VALUE...]]
      [--ela &lt;EXTRA_KEY&gt; &lt;EXTRA_LONG_VALUE&gt;[,&lt;EXTRA_LONG_VALUE...]]
      [--efa &lt;EXTRA_KEY&gt; &lt;EXTRA_FLOAT_VALUE&gt;[,&lt;EXTRA_FLOAT_VALUE...]]
      [-n &lt;COMPONENT&gt;] [-f &lt;FLAGS&gt;]
      [--grant-read-uri-permission] [--grant-write-uri-permission]
      [--debug-log-resolution] [--exclude-stopped-packages]
      [--include-stopped-packages]
      [--activity-brought-to-front] [--activity-clear-top]
      [--activity-clear-when-task-reset] [--activity-exclude-from-recents]
      [--activity-launched-from-history] [--activity-multiple-task]
      [--activity-no-animation] [--activity-no-history]
      [--activity-no-user-action] [--activity-previous-is-top]
      [--activity-reorder-to-front] [--activity-reset-task-if-needed]
      [--activity-single-top] [--activity-clear-task]
      [--activity-task-on-home]
      [--receiver-registered-only] [--receiver-replace-pending]
      [--selector]
      [&lt;URI&gt; | &lt;PACKAGE&gt; | &lt;COMPONENT&gt;]
  </code></pre>