title: Android - ADB Command in Command Prompt (Windows)
body: <p>I have an ADB command to be executed in <strong>Command Prompt</strong>. The purpose of this command is to test <a href="https://developers.google.com/analytics/devguides/collection/android/v4/" rel="nofollow">Google Analytics Campaign Measurement</a> implementation on my app. </p>
  
  <p>Below code is the command:</p>
  
  <pre><code>adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n com.example.androidapp/.app.service.CustomReceiver --es "referrer" "utm_source=testSource&amp;utm_medium=testMedium&amp;utm_term=testTerm&amp;utm_content=testContent&amp;utm_campaign=testCampaign"
  </code></pre>
  
  <p>This command sends broadcast to app, so when I access <strong>"referrer"</strong> parameter, I could get this string:</p>
  
  <pre><code>"utm_source=testSource&amp;utm_medium=testMedium&amp;utm_term=testTerm&amp;utm_content=testContent&amp;utm_campaign=testCampaign"
  </code></pre>
  
  <p>However, after testing that code, the only value I could get is:</p>
  
  <pre><code>"utm_source=testSource"
  </code></pre>
  
  <p>Then I remember that <strong>"&amp;"</strong> character means ESCAPE in <strong>Command Prompt</strong>. So, I tried to use <strong>"^&amp;"</strong> instead of <strong>"&amp;"</strong>, but I get this result:</p>
  
  <pre><code>"utm_source=testSource^"
  </code></pre>
  
  <p>How do I get the full string? Or what should I add to my code?</p>