コード例 #1
0
  public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    setContentView(R.layout.selected_elv_main);
    db = SightWordsReaderDb.getInstance(this);

    try {

      Intent intent = getIntent();
      Bundle b = intent.getExtras();
      sightWordList = b.getParcelable("sightWordList");

      ExpandableAppAdapter expListAdapter =
          new ExpandableAppAdapter(this, createGroupList(), createChildListWithLetters());

      setListAdapter(expListAdapter);

    } catch (Exception e) {
      System.out.println("Errrr +++ " + e.getMessage());
      throw new RuntimeException("Hello, McFly...look in the logs!");
    }
  }
コード例 #2
0
 public void handleSaveButton(View view) {
   db.updateSelectedWords(sightWordList);
   onBackPressed();
 }