Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Android Eclipse: Populate the ListView with dynamic Array

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Android Eclipse: Populate the ListView with dynamic Array

    Hi all, hope in your help.

    I have in the Android app a ListView on the Activity which will then be populated by the names in the Array ItemDetails.

    The problem is that the ListView dosen't seem to be populated in full because in output I've only first value of array and one fathomless string.

    Can you help me?
    Thanks in advance

    The Activity in attachments.
    Attached Files Attached Files


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,198
    Thanks
    49
    Thanked 2,173 Times in 2,146 Posts

    Default Re: Android Eclipse: Populate the ListView with dynamic Array

    one fathomless string
    Can you post what is shown? It might be a clue to what is happening.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Apr 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Android Eclipse: Populate the ListView with dynamic Array

    Quote Originally Posted by Norm View Post
    Can you post what is shown? It might be a clue to what is happening.
    Because if shown the error I've post denied

    [Ljava.lamg.String;@42974730
    In the attachments there is all the information for error and the activity.

    thank you

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,198
    Thanks
    49
    Thanked 2,173 Times in 2,146 Posts

    Default Re: Android Eclipse: Populate the ListView with dynamic Array

    [Ljava.lamg.String;@42974730
    That is the String returned by the toString() method for an array of Strings.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,198
    Thanks
    49
    Thanked 2,173 Times in 2,146 Posts

    Default Re: Android Eclipse: Populate the ListView with dynamic Array

    Also posted at: Android\Eclipse: Populate the ListView with dynamic Array
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Java 1.4 Array issues - controlling array size for dynamic usage
    By doonan79 in forum Collections and Generics
    Replies: 5
    Last Post: June 18th, 2013, 11:53 AM
  2. Eclipse Android
    By myjava in forum Java IDEs
    Replies: 1
    Last Post: May 1st, 2013, 12:19 AM
  3. Replies: 1
    Last Post: March 21st, 2013, 08:51 AM
  4. Replies: 1
    Last Post: December 22nd, 2011, 08:55 AM
  5. Program to populate all array values using the java.util.Arrays class
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 0
    Last Post: April 7th, 2009, 05:31 AM