Back to project page AnyadsTodos.
The source code is released under:
GNU General Public License
If you think the Android project AnyadsTodos listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dlacours.anyadstodos; /* w ww.jav a 2 s . c om*/ import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.widget.ListView; public class ArchiveTasksActivity extends Activity { /*This class initializes my archive list adapter*/ private static ArchiveTaskAdapter archiveAdapter; private ListView archList; private TaskList archTasks; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.archive_list); archList = (ListView) findViewById(R.id.archiveListView); archTasks = TaskListController.getArchList(); archiveAdapter = new ArchiveTaskAdapter(this, archTasks); archList.setAdapter(archiveAdapter); archList.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); } public static void notifyChange(){ archiveAdapter.notifyDataSetChanged(); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.archive_tasks, menu); return true; } }