Tagged Questions
0
votes
2answers
18 views
Retrieve data from the database when Search Button is click in Android
I have editText's (Username, Firstname, Lastname and Email Address) in my activity for user registration. The user has the privilege to search if the username that he input is already existing or not, ...
1
vote
1answer
25 views
Android get sum of database column where value is like
In the simplest terms if I have a table with values as follows
x 5
x 7
y 3
v 19
x 24
I wish to add up all the int values of x excluding those of y and v etc
I currently have working ...
0
votes
1answer
14 views
Add sqllite column to an existing database or have database re-index upon delete
In my app I have an option for the user to completely reset the app (remove all data/preferences they have set) so what I did when they select reset is to do a delete all in the ContentProvider
for ...
0
votes
1answer
14 views
Implementation of table in table database sqlite android
I want to have table as a value in my sqlite like below:
I searched about it and couldn't find anything appropriate and related.
any way to implement it in different kind of structure?
the table I ...
0
votes
0answers
2 views
HOW TO: check via CallLog.Logs query if a certain incoming number has most incoming calls for a specific date
Here is the code that i used to query the call logs contentprovider if a certain number(incomingNumber) has the most incoming call for a specific date, but i can't seem to make it work
example ...
0
votes
1answer
13 views
Sqlite database that allows more than 100 arguments
I am building an application that filters a list based on a large set of parameters. I am currently using an sql statement built based on user selection to generate the filtered results. My issue is ...
0
votes
3answers
27 views
Using Existing sqlite Database with android ADT
I am developing an app in android which consists of activities that need to connect to the Database. I am having an existing sqlite DB with me. But I don't know how to include it in my project. This ...
-1
votes
0answers
21 views
server current visitor online [on hold]
I am planning to make an Android App for a Guided Meditation, the basic functions of the App are
1) When I open the App, it should automatically connect to a server and return me the number of users ...
0
votes
0answers
45 views
nullpointerexception… how to pull username and pass on database?
This is login.java. When I'm starting to run the program it force closes. This is the code:
package com.example.login1;
import android.os.Bundle;
import android.app.Activity;
import ...
0
votes
0answers
6 views
CREATE TABLE android_metadata failed Failed to open the database. closing it
I tried to do all the things like:
SQLiteDatabase db = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.NO_LOCALIZED_COLLATORS | SQLiteDatabase.CREATE_IF_NECESSARY);
DbHelper helper = new ...
0
votes
1answer
37 views
Repeat same activity
I'm following this tutorial http://www.sarahghaffary.com/android-quotes-generator-sample-application-using-alarmmanager-and-sqlite-database/, but I want to know how would I make it keep repeating the ...
2
votes
1answer
38 views
T-SQL query to SQLITE [on hold]
I have a T-SQL query but struggling to convert it to SQLite for android, I have same table names, field name, table structure and relationship, any help will be appreciated, below is the query
SELECT
...
0
votes
0answers
15 views
Android SQLite Search using Like is not Case Insensitive on UTF-8 characters
I want to get all entries that contain a needle in their display name.
The length and content of the needle are not defined (dynamic).
The best I could come up with was to use the LIKE operator:
...
1
vote
1answer
18 views
android can single instance of SQLiteDatabase manage synchronization between multiple threads?
I need to do writing into the database from different AsyncTask threads but the problem is that we need to be sure that at one time only one thread should be in the process of writing into the db? My ...
0
votes
1answer
25 views
Unable to instantiate activity ComponentInfo{}: java.lang.NullPointerException
Hello I'm new in android so can you please help me with my error. The error occurs when
I'm gonna start the game so here's my logcat the database and the activity
Logcat
...