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

  • Home
  • SEARCH
  • 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 7190251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:28:26+00:00 2026-05-28T19:28:26+00:00

I am new to android development. I am developing a phonebook app. What I

  • 0

I am new to android development. I am developing a phonebook app. What I am doing is, trying to populate the phonebook with the contacts. Each contact has name, number and the emailId. Since each of the three is in a separate database, I am reading contact, phone and the Email db in that order. Based on the contactId I retrieve from the first read, I am querying the other two tables. However, the contactIds retreive from the contacts database does not match the ones in the phone and the email.
My assumption is the Contacts._ID should be the key for all the three tables.
Please let me know if I am doing something 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-28T19:28:28+00:00Added an answer on May 28, 2026 at 7:28 pm

    When you say that you have separated DBs you mean different tables in the same database right? Anyway you need to use a so-called “foreign-key”. I’m sure that if you google it you will find a lot of info

    Assuming that you are using a relational database let’s suppose you have a table T1 with a column that is the “primary key” (please google it too) let’s say T1_PK.
    Let’s suppose you have a second table T2 that references the first one like in your case the table with the email addresses for a given contact. In this second table you need a column like T1_FK that “points” to the raw in the T1 where the related contact is stored: this column will store the values that in T1 are in the column T1_PK.

    You can use SQL and the JOIN keyword for the SELECT command to create a view (you can google it too with “relational database”) that contains all the info in all the tables.

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

Sidebar

Related Questions

I am new for android development. I am trying read and write contacts to
I'm new to android app development. I'm developing a TabActivity in which the images
I'm new to android development, and im trying to create an app that is
I am trying to learn android app development .I am using IntelliJ Idea 10.When
I am new to android development and now i am developing an e commerce
I am new to java development, I am from C# .net, developing android application.
New to android development, be gentle haha. I am wanting to populate a spinner
Hey guys i am new to android development, I am developing a project which
I'm fairly new to Android development and am working on an app which allows
Heloo everyone im new to android development and im developing an android application for

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.