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
1
vote
1 answer

Unable to get context and access schema from a database

I'm following the Android developers tutorial to set up a database but I'm having an issue. This is my schema file : public final class ContactsDBSchema { public ContactsDBSchema(){}; public static abstract class ContactsEntry implements…
Jimmy
  • 895
  • 3
  • 12
  • 36
1
vote
4 answers

how to store data and retrieve it using network connection in android

Sorry if this question sound foolish .I am new to android and I am studying data storage option in android . My question is how to store data on cloud or server and retrieve it when i want. If it is possible . I to want study and practice it. Is…
FaisalAhmed
  • 3,469
  • 7
  • 46
  • 76
1
vote
2 answers

The values in database is returning null in android studio using php

I have created Database with Columns "id,name,username,email,age,password". And with the php file as below with android activity give below. i always end up with returning with the null values. As for, my android activity doesnt give aways any…
William Willi
  • 194
  • 1
  • 2
  • 19
1
vote
1 answer

Android : Database Details Display Issue

I was trying to make a very simple list application using SQLite. The database has been successfully created and is working properly. It consists of columns such as ID, Name and Phone Number. I've displayed the names in a list on the screen and was…
Mehul
  • 29
  • 1
  • 2
1
vote
0 answers

Cant pass last inserted ID to another activity, Intent always returns default value

I am trying to pass the id that my method "InserIntoRegSintomas" returns, but it seems is passes always "0" the default value on this line: final long id = intent2.getIntExtra("myExtras", 0); Where i try to get the id and pass it by intent to the…
1
vote
1 answer

ActiveAndroid got error, no such table

My Manifest:
javadroid
  • 1,421
  • 2
  • 19
  • 43
1
vote
1 answer

NOT IN clause in Sugar ORM

I have a table users. From table users I have to select all users excepts some private users. I am storing private users Id in arraylist and then store into shared preference. Is there any way to use NOT IN clause in query to fetch all users except…
Faisal Shaikh
  • 3,900
  • 5
  • 40
  • 77
1
vote
4 answers

In which case user can clear shared preferences but not DB

As I know, when a user does "clear data" or "disable" any application, it's shared preferences are cleared and database is also cleared. So my question is, Is there any case, that user can perform, in which shared preferences gets cleared but…
1
vote
1 answer

How to display live progress of a message? What data structure/view to use?

I have a working service that allows users to send emails over Ethernet. This service is a part of a greater application that allows users to view the progression of those messages (both sending and receiving) as they are transmitted. My service is…
1
vote
0 answers

How to assign Integers, Booleans and Date objects to a key value pair in android Sqlite database

How to design key-value store in android Sqlite database to store and retrieve (in a type-safe manner) Integers, Booleans and Date objects? what should be the design of the database? And how I can use the solution to handle more types in the future?
Mangesh Kadam
  • 587
  • 5
  • 19
1
vote
2 answers

How to reset count for every half an hour based on date and time android?

I am working in beacon type where I need to reset count for every half an hour. When the device gets triggered, I will insert data in db for corresponding date and time and counter. But when it reached half an hour, need to reset counter from 1. How…
Shadow
  • 6,864
  • 6
  • 44
  • 93
1
vote
0 answers

Use html (image tag) among the texts in android application database

HiCan I use html tag among the text in database?Like this image:Click to veiw image Or if it is impossible: How I can use images among the text in android (database)?
Ghaem
  • 53
  • 1
  • 9
1
vote
1 answer

Android Database: How to display the Many-to-many Relationship in my PHP file

I am creating a cooking app where there are categories and recipe within per category. So when the user tap the category BREAKFAST, all recipe will display that is assigned to BREAKFAST. To display that, it will depend in my php file but for the…
M. M. Human
  • 118
  • 2
  • 3
  • 14
1
vote
1 answer

How to use external database in android

I want use External database in my application. in my application has 4 fragment, and show any fragments one of tables in database (database has 4 tables). but when start run the application, show me this error : 03-06 16:59:46.350…
Dr.Master
  • 13
  • 2
1
vote
1 answer

display sqlite database content in listview in android

Here i want to display the contents package com.example.datewithme; import java.util.ArrayList; import android.app.Activity; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import…