Back to project page Campus-app.
The source code is released under:
GNU General Public License
If you think the Android project Campus-app 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 net.agsoft.campusvjunio; //from w w w . ja v a 2 s . co m import static net.agsoft.campusvjunio.bbdd.Constantes.NOMBRE; import static net.agsoft.campusvjunio.bbdd.Constantes.OPINION; import static net.agsoft.campusvjunio.bbdd.Constantes.PAIS; import net.agsoft.campusvjunio.bbdd.BaseDatos; import net.agsoft.campusvjunio.util.CampusAdapter; import android.os.Bundle; import android.preference.PreferenceManager; import android.app.Activity; import android.content.SharedPreferences; import android.database.Cursor; import android.view.Menu; public class CampusActivity extends Activity { private BaseDatos datos; private CampusAdapter adaptador; private static String[] FROM_SHOW = {NOMBRE, PAIS, OPINION}; private static int[] TO = {R.id.nombreCampus2, R.id.paiscampus2, R.id.opinioncampus2}; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_campuses); cargarLista(); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.campuses, menu); return true; } private void cargarLista() { datos = new BaseDatos(this); verCampus(); } private void verCampus() { Cursor cursor = datos.getCampus(); } }