Search code examples
androidandroid-studior.java-filegoogle-project-tango

How to understand R, and how it works with google's project tango


I am trying to get a tango project working with android studio and have reached a point of which I can't seem to get past, ad it is in great part to my lack of understanding of things dealing with android in general. Right now I am getting errors, the system cannot seem to find R.id.pose. R.id exists, and has many static members, but pose is not among them. I am getting the code from the samples on github, which I would assume was built to work, so I can only guess that this may be an issue with android studio? I would appreciate knowing more about any of this.


Solution

  • This sample indicates that R.id.pose is a TextView. I don't want to seem insulting in saying this (I don't know your experience), but in order for the system to find an id (R.id.something), it needs to be defined in a layout or resource file (the XML files in the res folder).