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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:17:38+00:00 2026-06-18T00:17:38+00:00

While sending requests via Facebook_Android SDK , I get a bundle in return. Can

  • 0

While sending requests via Facebook_Android SDK, I get a bundle in return. Can someone explain what data type it is and how to extract the data in it? Thanks.

01-28 11:58:07.548: I/Values(16661): Bundle[{to[0]=100005099741441, to[1]=100005089509891, request=134129756751737}]

EDIT
Here, to[i] is a string array. I was able to do it. but I don’t think its the right way to do it.

for(int i=0;i< size-1;i++){
System.out.println(values.getString("to["+i+"]"));
}

where size is the size of the Bundle called value

  • 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-18T00:17:39+00:00Added an answer on June 18, 2026 at 12:17 am

    A Bundle is basically a dictionary. Each value in the Bundle is stored under a key. You must know the type of value under the key. When you know the type, you access the value associated with the key by calling a method relevant for the type of the value (again, you must know the type).

    For example if the key is request and its type is String you would call:

    String value = bundle.getString("request");
    

    If the type was long, you would call:

    long value = bundle.getLong("request");
    

    To loop over the to array provided that the value is of type String you can do this:

    for (int i = 0; bundle.containsKey("to[" + i + "]"); i++) {
        String toElement = bundle.getString("to[" + i + "]");
    }
    

    which does not rely on the size of the bundle object.

    All the keys in a bundle and the type of value for each key should be provided in the Facebook API for Android. If you need further information on the Bundle object please look at the reference here.

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

Sidebar

Related Questions

Salesforce can send up to 100 requests inside 1 SOAP message. While sending this
I am using facebook new requests 2.0 for sending apprequests via application. Now I
I have a web app, requesting and sending data via AJAX, and as a
I am getting the following error while sending mail by click of a button
I'm having problems, while sending multiple attachments in my program. I didn't have any
I developed a sample mail program in Java. While sending mail, it throws exception
I'm learning Java and find myself sending methods around while asking for help but
I have a page where the user sends data (via ajax) to a php
When sending requests to the localhost from Chrome the program receives two requests: one(maybe
In my application, I am sending periodic cron and background task requests to refresh

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.