I’ve:
public void onCreate(SQLiteDatabase db) {
String sql=String.format(
"create table %s"+"(%s int primary key, %s int, %s text, %s int, %s text)",
TABLE, Column_ID, Column_Descreption, Column_Price, Column_Photo_URL);
db.execSQL(sql);
}
My question is: are there any additional types beside int and text?
Because I need to store boolean and double.
For fast start take a look on this discussion: What is the difference between related SQLite data-types like INT, INTEGER, SMALLINT and TINYINT?
Then go to this article: http://www.vogella.com/articles/AndroidSQLite/article.html
Shortly java’s
doublecalledrealin Sqlite terms. Other details are described in resources I have mentioned. Good luck.