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 6078323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:49:13+00:00 2026-05-23T10:49:13+00:00

I have 2 text field user name and password and a button in same

  • 0

I have 2 text field user name and password and a button in same view I filled these two text box and click the submit button for inserting the data in the data base, but it is failed for inserting in sqlite data base I am also pasting my Log cat below. Please take a look where is the problem: why it is not inserting it database? Thanks.

    public class MyContentProvider extends ContentProvider {
public static final String USER_NAME = "USER_NAME";
public static final String PASSWORD = "PASSWORD";

private SQLiteDatabase sqlDB;

public DatabaseHelper dbHelper;

private static final String DATABASE_NAME = "Users.db";

private static final int DATABASE_VERSION = 1;

private static final String TABLE_NAME = "User";

private static final String TAG = "MyContentProvider";

public static class DatabaseHelper extends SQLiteOpenHelper {

    DatabaseHelper(Context context) {
        super(context, DATABASE_NAME, null, DATABASE_VERSION);
    }

ava:150)
       06-30 12:22:49.622: ERROR/JavaBinder(235):     at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:140)
     06-30 12:22:49.622: ERROR/JavaBinder(235):     at android.os.Binder.execTransact(Binder.java:287)
         06-30 12:22:49.622: ERROR/JavaBinder(235):     at dalvik.system.NativeStart.run(Native Method)
       06-30 12:22:55.271: DEBUG/dalvikvm(235): GC freed 542 objects / 51288 bytes in 152ms
  • 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-23T10:49:13+00:00Added an answer on May 23, 2026 at 10:49 am

    You have to store the password as text, ‘PASS’ doesn’t exist in sqlite, so there is probably some error when creating the table. Try this:

     db.execSQL("Create table "
                + TABLE_NAME
                + "( _id INTEGER PRIMARY KEY AUTOINCREMENT, USER_NAME TEXT,PASSWORD TEXT);");
    

    If you don’t want to store the password in a readable format you will obviously have to encrypt it first.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table view with two rows, each with a text field. One
I have two text field boxes; username and password. There is also a checkbox
for example, I have a textfield, that records the user name, after I click
I have a type ahead text field, and when the user hits Enter I
I have two text fields (one for username & another is for password) and
I have one strange problem.I have two UItextfields in my view and a button.When
I have a login view with username & password textfields and two buttons for
I have a text field (flash.display.textField) for editing, but the default font does not
I have a text field and am looking to have if be valid for
If I have a text field with SWT, how can I get the field

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.