title: How to link R.ids to the actual button android testing
body: <p>Right now im testing on <code>Android 4.1.1</code>. using <code>Robotium</code> and trying to click on a image button using the id, because <code>solo.clickonImage</code> or <code>solo.clickonImageButton</code> is not working.</p>
  
  <p>The thing is, I don't know how to import or include the <code>R.java</code> file to get the ID. I could see it from the hierarchy viewer, but it still gives me an error when i place the variable in the code.</p>
  
  <p>in my test scripts my <code>R.java</code> doesn't have much in it, therefore can't read id. </p>
  
  <p>How am I suppose to import the developers ID into my test project?</p>
  
  <p>EDIT:
  actually i found this <a href="https://stackoverflow.com/questions/3216294/android-programatically-add-id-to-r-id">programmatically add id to R.id</a> . now my question is, how does my program know what the id is pointing to. example i've created:     </p>
  
  <blockquote>
    <p>
             &lt; item name = "camera_menu_upload" type="id"/>    </p>
  </blockquote>
  
  <p>How does my script know what camera_menu_upload is on the screen??</p>