Questions tagged as 'android-sqlite'

0
answers

error when calling the bd in the main activity

I have the following codig'package com.example.manuu.alazar; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.support.v7.app.AppCompatActivity; import android....
asked by 20.06.2018 / 20:40
1
answer

AlarmManager does not work when the device is rebooted

I am making an application that, given a specific time and date, shows a notification on that date and time. Everything works normal but the problem arises when I restart the device, when this happens the notification does not jump as expected,...
asked by 17.06.2018 / 17:22
0
answers

How can I subtract one data from another; what is in the qlite database by means of an edit text? and show the result in a textview

How can I subtract one (numeric) data from another; what is in the qlite database by means of an edit text? and display the result in a textview.     
asked by 02.06.2018 / 20:34
1
answer

Do not insert SQlite data

What kind of colleagues do I try to insert from an Activity but it gives me these errors? What will it be? public class HelperSQLite extends SQLiteOpenHelper { public String TABLACLIENTE = "CREATE TABLE Cliente(RFC TEXT PRIMARY KEY, Nombre T...
asked by 22.05.2018 / 20:52
0
answers

I have an error in the AdminSQLiteOpenHelper and in the getWritableDatabase

// this is from the bd package com.example.manuu.basededatos3; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.support.v7.app.AppCompatActivity; import androi...
asked by 17.05.2018 / 03:21
1
answer

Pass data between Activtiys using the database (Sqlite)?

I have a question about how to pass information between activitys using the database, since I have seen many tutorials on how to do it, but they always do it with a typed key and I use a autoincrementable and I do not know how to use it to pass...
asked by 05.05.2018 / 20:56
0
answers

convert a String to an Object of specific type

I am saving a series of Card-like objects in a database, to save them I had to implement serializable, the problem is that I do not know how to regain that object, I made a query that returns a cursor in whose position 3 is the serialized string...
asked by 28.04.2018 / 15:31
0
answers

insert data in SQLite

I have a BD in SQLite for android and I need to insert 68 articles I could do it this way ' public void onCreate(SQLiteDatabase database) { database.execSQL("CREATE TABLE " + DatabaseContents.TABLE_PRODUCT_CATALOG + "("...
asked by 16.04.2018 / 20:46
0
answers

Do not create my database in SQLite

I have a problem with an exercise that I am doing, I am working with android studio and the DBNavigation plugin, I am trying to create a database with a table and a record, but I do not believe any of the three things but it does not shoot me ei...
asked by 02.04.2018 / 03:15
1
answer

Cursor is: android.database.sqlite.SQLiteCursor@428085b0

I'm trying to make a validation using the cursor I've equaling it to null but it never returns a null value, it always returns a value like this:    android.database.sqlite.SQLiteCursor@428085b0 I do not know what is due, is it an error?...
asked by 03.04.2018 / 04:39