title: How to pass value from Activity to a Service in Android?
body: <p>I need access a simple int variable which holds an editText element value. The value is stored as a public field on my Activity class. On my Service, I created an object from my activity class:</p>
  
  <pre><code>CheckActivity check = new CheckActivity();
  </code></pre>
  
  <p>and I am trying to access it by:</p>
  
  <pre><code>check.getFirstPosition();
  </code></pre>
  
  <p>but it returns zero. What should I do to pass the value from an Activity to a Service?</p>