Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7518335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:44:09+00:00 2026-05-30T01:44:09+00:00

I have a table login2 in /data/data/sankalp.jain.shre/databases/loginfinal.db. The database has been created correctly which

  • 0

I have a table login2 in /data/data/sankalp.jain.shre/databases/loginfinal.db.

The database has been created correctly which i have verified myself using adb sqlite3 and querying the table.
Inserting from commandline works but using rawQuery,it seems data is not getting added(cant get it on commandline too).

   private SankalpDB dbhandle;   //SankalpDB extends SQLiteOpenHelper 
   private SQLiteDatabase sqdb;
   ..............

     public void open() throws SQLException {
    System.out.println("Opening");  //This also gets printed.
    sqdb = dbhandle.getWritableDatabase();
}



    public void addUser()
{   System.out.println("Adduser");
    System.out.println(sqdb.getPath());   ///prints /data/data/sankalp.jain.shre/databases/loginfinal.db

    sqdb.rawQuery("Insert into login2 values('ax13','Kate','password');", null);
    sqdb.rawQuery("Insert into login2 values('cax56','Natalie','passswd');", null);
 ....
 ...
sqdb.close();
}

The logcat output is not giving any error either.What am I doing wrong here.??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:44:10+00:00Added an answer on May 30, 2026 at 1:44 am

    Try and do the following:

    Cursor c =  sqdb.rawQuery("Insert into login2 values('ax13','Kate','password');", null);
      c.moveToFirst();
      c.close();   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

MSSQL database. I have issue to create database using old databases data. Old database
In a View i have a table of users combining data from multiple database
2 databases QF AND TK QF has the following: Imagine you have a table
I have table inside a div tab. The table has 40 rows in it
I have table rows of data in html being filled from a CGI application.
I have the following schema: Database: test. Table: per_login_user, Field: username (PK), password Database:
Hi i have a table named EMP,which looks like this.... EmpName |EmpBranchName |ApproverId| Anil
I have the following table in the database: id, username, email, old_ip, current_ip Everytime
I have this databases: table<User>(UserID,Name,Surname,Username,Password,Email) , table<Role>(RoleID,RoleName,Description) , and table<UsersInRole>(UserID,RoleID) . I create a
I have the following scenario in zend framework: Data Table of students Table of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.