I want to know one thing in android sqlite.
I created my database in sdcard.
Im a bit new to OOP so i want to know if im doing things correctly.
Don't know what is the reason why i can't fetch the data i needed in my database
there isn't an error to my code but it doesn't work
here is my databasehelper
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DatabaseHelper extends SQL
How come whenever I clear my app data, my previously working SQLite database doesn't work anymore?
here is my code for my database:
package tsu.ccs.capstone;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHe
i am developing application using sqlite databse having one table name comment that stores id , name, number and block.
now i get an error every time when i run the application that
sqlite returned: error code = 1, msg = no such column: ph_number
the code is below..
public class MySQLiteHelper extends SQLiteOpenHelper {
public static final String TABLE_COMMENTS = "comments";
public s
I am trying to get db.update to update one of the rows of my database with new values but it does not seem to be saving. I have looked over my syntax but I cannot seem to get the data to save. The insert function is working but not update. Any help would be appreciated. Below is my data class which uses a DbHelper object.
I have created a class to manage a SQLite database.
My application want to calculate the total sales in a month. I used sql statements sum. But when I run the application it fails. and I do not know why this error. expect people to help me fix this.
i've problem access other class in android...
i've class databasex (non static) and class CountingFragment (static)....
in CountingFragment i want to access databasex class..but i get result null....
here is my piece of code...
class Databasex
public class DataBasex {
public static final String KEY_ROWID="_id";
public static final String KEY_NAME="namaLokasi";
public static final