Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package com.TesteDB; import java.io.FileNotFoundException; import android.app.Activity; import android.content.ContentValues; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; public class TesteDB extends Activity { private EditText nome; private Banco banco; // <---- I can do // that??????? public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); this.banco = new Banco(this); Button botao = (Button) findViewById(R.id.ok); nome = (EditText) findViewById(R.id.nome); botao.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { // Log.e("Erro:",nome.getText().toString()); // banco.criaBanco(); banco.insereNome(nome.getText().toString()); } }); } } class Banco { private static final String nome_do_banco = "portalandroid"; private static final int versao_db = 1; private static final String cria_tabela_pessoa = "CREATE TABLE IF NOT EXISTS pessoa (id INTEGER PRIMARY KEY AUTOINCREMENT, nome TEXT NOT NULL);"; private SQLiteDatabase db; public Banco(Context con) { try { db = con.openDatabase(nome_do_banco, null); } catch (FileNotFoundException e) { try { db = con.createDatabase(nome_do_banco, versao_db, 0, null); db.execSQL(cria_tabela_pessoa); } catch (FileNotFoundException e1) { db = null; } } } public void insereNome(String nome) { ContentValues valores = new ContentValues(); valores.put("nome", nome); // conectaBanco(); // String sql = "INSERT INTO pessoa (nome) VALUES ('"+nome+"');"; try { // db.execSQL(sql); db.insert("pessoa", "nome", valores); Log.i("Inseriu", nome); } catch (Exception e) { Log.e("ERROR", e.toString()); } } }