Questions tagged [sqliteopenhelper]

SQLiteOpenHelper is a class from the Android SDK which can be used for easier handling of a SQLiteDatabase.

Using the SQLiteOpenHelper only requires implementing its two abstract methods(other methods for different events can be implemented if the user chooses) onCreate(used for initializing the database) and onUpgrade(used when the database is being changed). The Android system will call this methods according to the state of the database( not created/created/upgrading) and in return, it will offer the user a valid SQLiteDatabase reference with the methods getWritableDatabase() and/or getReadableDatabase(). More information can be found in the documentation for the SQLiteOpenHelper class.

801 questions
-3
votes
1 answer

Log.i does not execute

I am very new to android programming. I want to use SQLiteOpenHelper class to do some database operations. Here is my SqliteController class that extends SQLiteOpenHelper: public class SqliteController extends SQLiteOpenHelper { Context…
Suzi
  • 89
  • 4
  • 16
-3
votes
1 answer

SQLiteDatabase syntax error (code 1) near create table while compiling

I'm creating a simple budget managing app. To store budget details I've created a table.here's my DataBaseHelper class : package com.example.rajkumar.budget; import android.content.ContentValues; import android.database.Cursor; import…
-3
votes
1 answer

NullPointerException in userdefined method "insert" in datahelper class

this is the logcat 07-11 04:34:41.360: E/AndroidRuntime(10132): FATAL EXCEPTION: main 07-11 04:34:41.360: E/AndroidRuntime(10132): Process:app.example.movierating, PID: 10132 07-11 04:34:41.360: E/AndroidRuntime(10132):…
-4
votes
2 answers

I need some help solving a SQL query, I need to list the names of consumers requesting at least one product but not requesting milk

I need help solving the query "List names of customers that are requesting at least one product but not requesting milk. I have a rough start on it, but I have no idea how to finish it. Here's what I have so far. SELECT DISTINCT …
-6
votes
1 answer

I entered the data in slqite database still cursor.getCount() is null and the Error :- Invalid tables

here is my code by which I entering the data into the database and I'm receiving currentrowId on which the data is entered and the currentrow_id is updating but cursor.getcount() is still null SQLiteDatabase dbr =…
-6
votes
1 answer

Please Solve this sqlite error

Caused by: android.database.sqlite.SQLiteException: no such column: Over_the_horizon.mp3 (code 1): , while compiling: insert into musics(song_name,album_name,artist_name,full_path)…
Ankit Patidar
  • 2,731
  • 1
  • 14
  • 22
1 2 3
53
54