Im a bit new to OOP so i want to know if im doing things correctly.
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 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.
im have database contain lat and long, and i use json parser in android. i want to get the value of latitude and longitude from marker that i click.
I want to know one thing in android sqlite.
I created my database in sdcard.
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 attempting to load JSON content into a listview containing image and text but I'm getting a NullPointerException' in line 154 i.e lv1.setAdapter(efficienadapter); in Actualities.class .
I don't know if its because the postlist is null or an error in my code.
someone can help me please
My Actualites class
public class Actualites extends Activity {
ListView lv1;
ProgressDialog Sh
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
I have this list view here.I have shown certain amounts and now I want that the amounts with a - to be of red color and amounts with a + to be of green color.
Here is my code-:
public class Myperwallet extends ListActivity {
ImageView upload,more,logout,send,history;
String userpin;
TextView fname,lname,cur,bal,pin;
String firstname,lastname,curr,balance,pin1,deb;
static f