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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:53:54+00:00 2026-06-04T04:53:54+00:00

I am new in Android app development. Now I am writing a singleton class

  • 0

I am new in Android app development. Now I am writing a singleton class for manipulating database operation. In case of select query, I am planning to store the “table field name” as key and data of each row in a dictionary. Then each dictionary of row data is stored in an Array. I have implemented this concept in iOS. But as I am new to Android, I don’t how the dictionary concept can be implemented in Android. Does this is available in Android? If so can anybody help me to implement.

Thanks in advance.

  • 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-04T04:53:55+00:00Added an answer on June 4, 2026 at 4:53 am

    in ios may be dictionary is save data as key/pair value

    and in android we have HashMap<Key,Value>

    Map<Intger,String> map = new HashMap<Integer,String>();
    

    here Integer is key and String is value

    //Add data in map

    map.put(1,"string1");
    map.put(2,"string2");
    

    NOTE ::

    Mind that key is unique not allowed duplicates and if you need ordered data then use LinkedHashmap instead of Hashmap

    //retrieve data

    for(Map.Entry<Integer,String> entry :map.entrySet())
    {
        int i = entry.getKey();
        String s = entry.getValue();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am pretty new to android app development and java and I encountered the
I'm new to Android development, i'm trying to port an IOS app to Android.
I'm new to android development and I've developed a small app but I'm facing
I am very new to Android development. I am converting my iPhone app to
I'm new to android game development. I currently working on a simple android app
I am new to android app development so please any answers would be great
I'm very new to android development. I would like to make a android app
I am working on new app development in android. I need to launch an
Hi I am new to android app development and have no idea of SQLite
I am very new to android development.... i have created an app and want

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.