So, I am trying to store some data on the SQLite db in Android,
The table structure is something like this:
e BIGINT NOT NULL, n BIGINT NOT NULL, phoneNo TEXT NOT NULL PRIMARY KEY
and I’m trying to do it using something like this:
BigInteger e, n;
String phoneNo;
ContentValues values= new ContentValues();
initialValues.put(KEY_PUB_E, e);
initialValues.put(KEY_PUB_N, n);
initialValues.put(KEY_PUB_PHONE, phoneNo);
mDb.insert(DATABASE_TABLE, null, values);
But the ContentValues wont accept BigInteger data type, so im thinking of using int or long, but would it cause the data to change? and SQLite does support BIGINT right?
There is another option for me which is using execSQL method, but later there is a part where i need to involve a lot of coloumns and would make it too complicated…
How should I do this?
Thank for the help, woodshy,
the simplest solution im going for is to store the value as text, and converting it back to BigInteger when i retrieve it. shouldnt be a problem as this isnt done too often during the application’s runtime…
what do you think about this?