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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:40:06+00:00 2026-05-30T01:40:06+00:00

The Bundle and ContentValues classes seem to have pretty similar functionality. Is there an

  • 0

The Bundle and ContentValues classes seem to have pretty similar functionality.

Is there an efficient way of converting from one to another (and vice-versa) without having to loop through the classes, calling get and put subsequently on each element?

  • 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-30T01:40:08+00:00Added an answer on May 30, 2026 at 1:40 am

    I’ve scanned the Android source code and both Classes use a Map to hold the underlying data. Specifically, Bundle uses a Map and ContentValues uses a HashMap.

    However, Bundle permits any parcelable objects to be loaded, while ContentValues‘ implementation accepts the primitive type classes (Integer, String, Double etc.) and byte arrays.

    So it looks like in principle, ContentValues is a special case of Bundle, so converting from ContentValues to Bundle might have been possible if the internals were accessible, but the reverse is problematic, since a Bundle can hold objects not strictly compatible with ContentValues.

    Any comments on this are welcome.

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

Sidebar

Related Questions

Is there a way to bundle PowerShell such that I don't have to install
I have resource bundle with my country characters - how to change them into
How do you bundle ActivSync with your C#.NET application? I have an installer and
We would like to bundle library dependencies from (Alfresco or Jackrabbit or ...) based
I have a settings bundle in my iPhone app, with the following PList: Type:
If I have a Resource bundle property file: A.properties: thekey={0} This is a test
I have a updater bundle that lookups in a specific folder bundle and checks
I have a Bundle with a nested nature that I want to preserve, how
I have a settings bundle with the following settings. When I build/install my app
I have a bundle, with an activator declared. This activator create a JFrame and

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.