When my application runs on English device it works fine, but when running it on another language the application not running properly ..!
and this error appear when running app in another language ?
E/SQLiteLog﹕ (14) cannot open file at line 32505 of [00bb9c9ce4]
I am using SQLiteOpenHelper
private static final int DATABASE_VERSION = 1;
private static final String DATABASE_NAME = "DbManager";
private static final String TABLE_N = "currency";
// Contacts Table Columns names
private static final String KEY_ID = "id";
private static final String KEY_FromTo = "FromTo";
private static final String KEY_FromToLabel = "FromToLabel";
private static final String KRate = "cRate";
private static final String Kdate = "cDate";
currencyTable cTable;
SQLiteDatabase db;
public HandlerDB(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
@Override
public void onCreate(SQLiteDatabase db) {
db.setLocale(new Locale("en"));
String CREATE_Currency_TABLE = "CREATE TABLE " + TABLE_N + "("
+ KEY_ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + KEY_FromTo + " TEXT,"+ KEY_FromToLabel + " TEXT,"
+ KRate + " REAL," + Kdate + " TEXT" + ");";
db.execSQL( CREATE_Currency_TABLE);
}
Aucun commentaire:
Enregistrer un commentaire