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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:13:14+00:00 2026-06-13T23:13:14+00:00

I created the arraylist of hashmaps that pass value from previous intent like this:

  • 0

I created the arraylist of hashmaps that pass value from previous intent like this:

final ArrayList<HashMap<String, String>> saleArrList = (ArrayList<HashMap<String, String>>) intent.getSerializableExtra("saleArrList");

Then, I want to get data from this arraylist of hashmaps and i use iterator to point it.

 Iterator<HashMap<String, String>> it = saleArrList.iterator();
                while(it.hasNext()){
                    HashMap<String, String> value = it.next();
                    List<NameValuePair> params = new ArrayList<NameValuePair>();
                     params.add(new BasicNameValuePair("sProductID", saleArrList.get(.....).get("ProductID").toString() ));
            }

I use Hashmap as iterator to point each of Hashmap in Arraylist.

How do I get specifies Hashmaps data form This Arraylist ??

(What code or value that I should put in the get(…) )

Thanks for all answer, Sorry for my wrong grammatically question.

Tell me if you want more code 🙂

  • 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-13T23:13:15+00:00Added an answer on June 13, 2026 at 11:13 pm

    Try

    for (HashMap<String, String> arrValue : saleArrList) {
        params.add(new BasicNameValuePair("sProductID", arrValue.get("ProductID") ));   
    }
    

    You don’t need the toString() in the HashMap values as they are already Strings.

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

Sidebar

Related Questions

E.G. to create an ArrayList of Strings we have to do something like List<String>
I have created an alphabetical adapter, inspiring from this post with the adding of
I'd like to access a static HashMap object on one of my classes. This
If I have a Map like this: HashMap<Integer, ComparableObject> map; and I want to
So I have a file that looks like this: 1st 2nd­ nth e1­, ­­v1,
I've created this code that populate SQLite in Listview, but what I'm struggeling in
Created .NET WCF service, tested it - works. Generated schemas from Data and service
Friends I am having a String that contains date-record String date=10-Oct-2012 @12-Oct-2012 @$12-Oct-2012 @12-Oct-2012
I have a problem on arraylist and hashmap As according to my requirement, I
I've made gridview application that get image path from JSON. my gridview had store

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.