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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:37:22+00:00 2026-06-01T17:37:22+00:00

I am new to android. I would like to create an array list that

  • 0

I am new to android. I would like to create an array list that contains 4 parameters: name phone number, type of call, data, but i don’t know how to do it. Can someone please help me?

Secondly I would like to ask what is the difference between list and listadapter ?

I mean I need something like this. I need to create an array that is going to print in a log file the first element[1]…second and so on. The first element is an array of 4 parameters(name,phone,type,data). => array of objects.!

[1] Me 07678333.. MISSED 23.06.2011

[2] JHG 9898.. MISSED 7.04.2012
....
  • 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-01T17:37:23+00:00Added an answer on June 1, 2026 at 5:37 pm

    you could make for example a class called PhoneCall:

    class PhoneCall{
         String name;
         String number;
         String type;
         String date;
    
         PhoneCall(String name, String number, String type, String date)
         {
             this.name = name;
             this.number = number;
             this.type = type;
             this.date = date;
         } 
        //getters and setters here
    }
    

    and then make arraylist:

    ArrayList<PhoneCall> list = new ArrayList<PhoneCall>();
    

    and add new items to it:

    list.add(new PhoneCall(name,number,type,date));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i would like to buy a new cell phone that runs Android. From what
I am new to android. I would like to monitor the sip packets that
I am a new to Android development and I would like to create an
I am new to programming on the Android and would like to create an
In an given Android activity, I would like to start a new activity for
I would know if there is the possibility to create a new Android Activity
I would like to create a customized popup dialog which contains a spinner. The
I would like to put the phone contacts on my phone to an Array.
I would like to create a ListView in Android where I have the ability
I'm writing an Android application that would like to verify that a string produced

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.