Guest User

Untitled

a guest
May 25th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public void retrieveList(){
  2. DataBaseAdapter adapter = new DataBaseAdapter(this);
  3. db = adapter.getWritableDatabase();
  4. cursor = db.rawQuery("SELECT * FROM ficha", null);
  5. }
  6.  
  7. public void createList(){
  8. listViewF = (ListView) findViewById(R.id.listViewF);
  9. CursorAdapterList adapter = new CursorAdapterList(this, cursor);
  10. listViewF.setAdapter(adapter);
  11. }
Add Comment
Please, Sign In to add comment