Questions tagged [android-database]

General programmatic usage of databases on Android

Databases and tools related with persistence supported by the Android operating system.

584 questions
-2
votes
1 answer

Inserting data into database only by developer

I am creating an app which shows a list from database entries . The user can read or update the initial entries but cannot insert any entries. How can insert values in database without having this feature on the working app ( limited to the…
-2
votes
1 answer

SQL Database error

I have problem while deleting data from database. I have button which is toggle between two states. Adding data to database and removing data from database. Here's the code: //Method for adding or removing movies in favorite movie database public…
-2
votes
1 answer

SQLite is not fetching text from TextView

i am using sqlite and i have some textview in a xml file.The process is to fetch the text from textview and save those in database.But i am unable to fetch text from textview.why? i.e. it fetches data from editText.
-2
votes
2 answers

How to delete all items from databese and base adapter

I have a database to saving all data. There are 3 different activities. First activity has only one word. Second activity has many words and All data go to my database. Third activity All data are being compiled. But I have a problem. I cannot…
-2
votes
2 answers

how to delete record through primary key in android

While deleting record through primary key, primary key get null value and record doesn't deleted. Please look in to my code, dataBase.delete(DbHelper.TABLE_PARKSAL_TABLELIST, DbHelper.PARKSALE_PrimeryID+ "=" + primarykeytableid, null); I want to…
Shuchi Sheth
  • 219
  • 2
  • 13
-2
votes
1 answer

Android: How to store multiple images from recyclerview and retrieve them into imageids from the database

I have uploaded multiple images from gallery onto a recyclerview. Now i want to store those images into the database and retrieve them in another activity where i need to place individual images into different image views having different image…
Mistique
  • 47
  • 2
  • 6
-2
votes
1 answer

Not able to create table successfully in SQLite Android

This is my SQLiteHelper class. package com.example.user.balancesheet; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import…
Mayank Jindal
  • 35
  • 2
  • 7
-2
votes
2 answers

column in sqlite database Android

Hi I am very new to android please help me i am not able to solve this error Here is logcat error android.database.sqlite.SQLiteException: no such column: datename (code 1): , while compiling: select productinserted from mbudgettable where…
-2
votes
2 answers

How do i fix this SQLite java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow

FATAL EXCEPTION: main Process: example.myproject, PID: 2608 java.lang.RuntimeException: Unable to start…
EdgeDev
  • 2,376
  • 2
  • 20
  • 37
-2
votes
2 answers

How to insert date in SqLite Database in android with datepicker

I am new in android. I have created a date picker. But i could not insert date into the database. I tried as: SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); String formattedDate =…
Fatema
  • 41
  • 1
  • 2
  • 9
-2
votes
1 answer

DELETE WHERE ID not working

I'm try to display the data from a database into a ListView. Each item within the ListView has one position and I'm using that int position as the ID for the DELETE query since it's the same. However, it doesn't do anything. I'm calling the method…
-2
votes
1 answer

Store my App metrics in free Cloud database

I am designing an app. I want to know store some metrics about my app in free cloud database. The metrics includes which functionality users using more, number of downloads, user preferences etc. Later, I would like to query this database to…
Bhargav Kumar R
  • 2,190
  • 3
  • 22
  • 38
-2
votes
2 answers

how can i access database inside android appication to my computer

I am developing an app in our college for an event.i wanted to get the value of a variable in that app after every round from all the phones to my computer.How can i do that?
-2
votes
2 answers

Android Database help needed

I have an activity which has two edit text fields: one for the title and the other for the story. The entries made two text fields are saved in the database, also the database has a ROW_ID,TITLE_ID and STORY_ID. The entries are displayed in a list…
user47
  • 395
  • 1
  • 2
  • 16
-3
votes
1 answer

How do I connect a database to an Android app?

I am new to Android development and I am working on building an app. I am currently stuck on the log-in screen because there are no up to date tutorials that can walk me step by step into creating and linking a database. I would like to have a…
Miyah Boyd
  • 11
  • 3
1 2 3
38
39