Notepad Tutorial (4)

Exercise 1 の Step 12 の以下なソレ。

    private void fillData() {
        // Get all of the notes from the database and create the item list
        Cursor c = mDbHelper.fetchAllNotes();
        startManagingCursor(c);

        String[] from = new String[] { NotesDbAdapter.KEY_TITLE };
        int[] to = new int[] { R.id.text1 };
        
        // Now create an array adapter and set it to display using our row
        SimpleCursorAdapter notes =
            new SimpleCursorAdapter(this, R.layout.notes_row, c, from, to);
        setListAdapter(notes);
    }

SimpleCursorAdapter あたりが微妙。これって

あたりを継承して云々、が必要なのかなぁ。色々試してみたいんですが、時間が取れぬ。

Exercise 2

  • 新たな Activity を作って Android manifest に追加
  • startActivityForResult() を使って非同期に他の Activity を呼び出す
  • Activity 間でのデータのやりとり
    • bundle object 云々なあたりが微妙
  • advanced screen layout のさらなる使い方
  • context menu の作り方

との事。さっさとヤッて中身を確認、な方が良いんだろうなぁ。ってか当初の目的はノートを GAE 経由して google 方面にデータをナニする実装だったんですが道半ば以前ですな。わははは。
とりあえず明日もばたばたらしいのでエントリ投入して早めに寝ます。