title: How to modify dummy content in android master/detail activity?
body: <p>I would modify the items generated by eclipse in the master/detail schema. I can't find a way to do this. In particular I would take the items from an xml (res/values/arrays) resource file.</p>
  
  <p>this is the java file:</p>
  
  <pre><code>package com.ga.termeapp.dummy;
  
  import java.util.ArrayList;
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  
  
  public class DummyContent {
  
      public static class DummyItem {
  
          public String id;
          public String content;
  
          public DummyItem(String id, String content) {
              this.id = id;
              this.content = content;
          }
  
          @Override
          public String toString() {
              return content;
          }
      }
  
      public static List&lt;DummyItem&gt; ITEMS = new ArrayList&lt;DummyItem&gt;();
      public static Map&lt;String, DummyItem&gt; ITEM_MAP = new HashMap&lt;String, DummyItem&gt;();
  
      static {
  
          addItem(new DummyItem("1", "Le terme"));
          addItem(new DummyItem("2", "Le cure termali"));
          addItem(new DummyItem("3", ""));
      }
  
      private static void addItem(DummyItem item) {
          ITEMS.add(item);
          ITEM_MAP.put(item.id, item);
      }
  }
  </code></pre>