Android怎么使用数据库简述(二)

2014-11-24 03:11:46 · 作者: · 浏览: 9
stener(this);
findViewById(R.id.button4).setOnClickListener(this);
mTextView = (TextView) findViewById(R.id.textView1);
MySqliteHelper mSqliteHelper = new MySqliteHelper(this, 1);
mSqlDB = mSqliteHelper.getWritableDatabase();
}
@Override
public boolean onCreateOptionsMenu(Menu menu)
{
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}