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
-3
votes
1 answer

error: cannot find symbol class CopyDbActivity

I've been following this tutorial on youtube about "How to include SQLite database in android app" Here is the link https://www.youtube.com/watch?v=iE_bsPfB00w&t=2s This is the code for my MainActivity import java.io.IOException; import…
-3
votes
1 answer

The app collapses when I try to get all the items from database

I am trying to get data from my database but the app collapses when i do so. Please check out my code and help me, I'v tried to fix it but I couldn't find what's the problem. That's what I am trying to save: public class SinglePet { private String…
Meow
  • 11
  • 6
-3
votes
1 answer

display image from android database

I have a local database that i want get res id from it(string saving) and show in application, also i have a recycler view and I want after click on items, display image. public class AdapterApp extends…
-3
votes
1 answer

Insert values into same regist/row using more than one activity

I will give a example of what i want to achieve: Lets say i have a table called "5Fruits" with 6 camps: ID - Fruit1 - Fruit2 - Fruit3 - Fruit4 - Fruit5 Using 3 different activities (or more) i want to insert on first activity the fruit1, then i have…
-3
votes
1 answer

i am trying to make android app which will contain story[Textual]

I am thinking to make book like app which should have more then 100 topic to read. And user can even change language like Hindi or English . Basically it will behave as book. My question is that where should I store that textual data in XML file or…
FaisalAhmed
  • 3,469
  • 7
  • 46
  • 76
-3
votes
2 answers

Near "SELECT": syntax error (code 1)

I am faced with problem: Caused by: android.database.sqlite.SQLiteException: near "SELECT": syntax error (code 1): , while compiling: SELECT tags FROM appDb_table_project WHERE SELECT DISTINCT tags I have: public static final String DB_NAME =…
Yume
  • 49
  • 9
-3
votes
3 answers

Storing user login details in android studio

I have implemented Google and Facebook login in my android app. Can anyone please tell me how to store the user details in the app using shared preference for the same?
-3
votes
2 answers

Making pedometer - Storage value for each day

I wanna make a pedometer app. But I don't know already how can i save or store step numbers for each day or each month. Thanks for your help now.
-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
-4
votes
1 answer

Creating a scalable database for android app | cloud hosted

I am working to launch an app which in future will store huge number of users and there profile information. But I Wanted to start small to pre-test my app idea , so what will be the options for hosting database which are cost effective initially…
-5
votes
2 answers

CursorOutofBoundsException Index -1 requested with size of 0

I have a database called updateparty from which i have to create a array list of type hashmap string.When i try to retrieve data from db,the cursor does not move to next record. Here is the code for db insertion. for (int i = 0; i < poslist.size();…
-5
votes
1 answer

How to go about developing an Android app with SQLite database?

I want to write an Android application which has an SQLite database. I have seen this question, but it (as well as the answer) is 7 years old, which has also been pointed by CommonsWare in a comment, in which they have also suggested to use this…
Solace
  • 8,612
  • 22
  • 95
  • 183
-6
votes
2 answers

What is the concept of Database in Android?

I want to know the concept of database in Android. As I understand that using SQLite database we can make , update database but I am unable to understand that how the sign-in option will be added to Android app. Will it be an app that will be work…
waqas
  • 143
  • 1
  • 4
  • 15
-7
votes
2 answers

How to increment so can I get the next column value not the new row in list view?

How can I get the next column value not the new row? Im using listview to display information of the selected user from the spinner. What shows up: Firstname, Firstname, Firstname Should be instead: Firstname, Lastname, Email, etc. Im thinking about…
Aya Sato
  • 29
  • 1
  • 9
1 2 3
38
39