public static void main(String[] args) { Notepad notepad = new Notepad(); notepad.addNote("first", "blahblah"); notepad.addNote("second", "blahblah123123"); notepad.addNote("3rd", "qwerty"); notepad.printAllNotes(); notepad.removeNote(1); notepad.printAllNotes(); notepad.editNote(0, "edited first", "edited text"); System.out.println(notepad.getNote(0).toString()); // System.out.println(notepad.getNoteById(1).getText()); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Setting the theme Notepad.setDialogThemeFromPreferences(this); setContentView(R.layout.export); mProgressLabel = (TextView) findViewById(R.id.progress_label); mProgressBar = (ProgressBar) findViewById(R.id.progress_bar); mActionButton = (Button) findViewById(R.id.action); }