title: Can android execute string as code?
body: <p>So basically I would like my app to read info from a database, this info would be a string that is valid java code. Once read, I would like my app to execute this string as if it were code. Is there any functionality packaged with the android sdk that supports this?</p>
  
  <p>Essentially I want the phone to populate some data with information queried from a database. One of these pieces of information would be a statement like:</p>
  
  <pre><code>"return data.ZombieKillTotal &gt;= 100000;"
  </code></pre>
  
  <p>Which would be used inside a statement like:</p>
  
  <pre><code>registerAchievement(new Achievement("Zombie Killer", new AchievementValidator() { 
      public boolean isSatisfied(Data data) { ExecStringAsCode(query result) } 
      });
  </code></pre>
  
  <p>I just don't know what to use for 'ExecStringAsCode' :(</p>