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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:21:18+00:00 2026-06-08T00:21:18+00:00

Here is my situation– I created a registration activity that will accept user’s data

  • 0

Here is my situation– I created a registration activity that will accept user’s data and store it in a table. After registering, user is directed to a confirmation page wherein he will be shown his/her memberid which is randomly generated. Now, i want to associate this number to the particular person who registered and save his name and password(which is stored in register table along with other details) along with memberid in a new table so that i can then login. Can you guys help me with this.

  • 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-06-08T00:21:20+00:00Added an answer on June 8, 2026 at 12:21 am

    USe Cursor to get all the details you want from the database.

    Database db = new Database(this);   
    
     Cursor yourdata = db.getDetails(this);
    if(yourdata!=null)
    {
    yourdata.moveToFirst();
    String value= cursor.getString(cursor.getColumnIndex(yourUserName); 
    String value= cursor.getString(cursor.getColumnIndex(yourpassword);
    } 
    

    And then create a new Table as you like just insert the retrieval record in to the new Table with your random generated id.

    OR

    Instead of creating new Table you can just Alter the main table to add your random generated id. It saves memory.

    EDIT:

     public void updateMemberid(int memberid, int primarykeyid)
    {
        SQLiteDatabase db = getWritableDatabase();
        ContentValues values = new ContentValues();
        String where = PRIMARYKEYIDCOLUMNNAME+"="+primarykeyid; 
        values.put(MEMBERIDCOLUMN, memberid);
        db.update(YOUTABLE, values, where, null);
    }
    

    Hope it helps.

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

Sidebar

Related Questions

Here the Situation . I am having 2 million records in table . Just
I have an situation here that looks very like a SELECT N+1 from the
Here is my situation. I need to create a report that shows each open
Here's the situation: I would like to iterate through a table with input controls,
Here is situation I have been trying to solve Lets take a Employee table
I have a situation here there are two models User,Posts Now I want to
OK, this is impossible, but I will try to explain the situation here. Let's
Here my situation : The user click on a LinkButton, and the page does
My situation here is that I need to send my program to my university's
So here the situation. I have multiple strings that begin and end with a

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.