Code example for SQLiteException

Methods: toString

0
	public void onCreate(Bundle icicle){
		super.onCreate(icicle);
		try { 
			db 		= new MyDataBase(MenuPrincipal.this);
		} catch (SQLiteException e) {
			Log.e("Erro Criar BD", e.toString());
		}finally{ 
			if (db	!= null) db.close();
		} 
		ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this ,	R.layout.simple_list_item_1 , opcoes);
		setListAdapter(arrayAdapter);
	} 
	 
	//METODO DE CLIQUE NA LISTA 
	protected void onListItemClick(ListView l, View v, int position, long id){
		super.onListItemClick(l, v, position, id);
		switch (position) {
		case AGENDA:
			Toast.makeText(this, "Agenda", Toast.LENGTH_SHORT).show();
			break; 
		case TREINO: