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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:41:41+00:00 2026-06-11T22:41:41+00:00

I am implementing a feed of messages in a list view inside my activity.

  • 0

I am implementing a feed of messages in a list view inside my activity. In this activity, I am showing just the “main thread” of the messages, not the replies to them, sort of social network behavior, when u click on a message, pops up a new window with that message and the replies to it.

After downloading the JSONS from the webserver, we are storating the info in complex objects which we call VO, i.e. UserVO, which storages all of the User’s information.

This objects contain Strings, ints, list of other VO’s, lists for the messages feeds, etc…

My idea is opening a new FragmentDialog on the top of the screen when one message is clicked for showing the possible replies to this message, and enable the possibility of sending a reply to it.

For this, I would need to pass those VO objects between the Activity and the Fragment in both directions,

  • From the Activity to the DialogFragment: Object with the messages feed.
  • From the Fragment to the Activity: Once the user writes the text, and attaches pictures (URL) I should send an Object back to the Activity

I have been reading quite a lot of information about the fragments and activities, and still I can not find an usable for me solution. I need to pass several objects when initializing the Fragment, which doesn’t seem to be possible using the newInstance() method. Plus for using this method I would need to make serializable all of the VO which we are using (complex). Plus I would still need to pass objects (again complex VO) from the fragment back to the activity… is there any way to pass those big objects? Could an interface work for passing information in both ways?

I would really appreciate any help (some tutorial would be awesome), because I couldn’t find any solution for this problem, and I am very stacked in here.

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-11T22:41:42+00:00Added an answer on June 11, 2026 at 10:41 pm

    You can save the Object as a member of your Activity. Make setter & getter for it.
    You can access the Activity from the Fragment with getActivity() and cast Activity to YourActivity.

    That’s the general direction to pass information between Fragments and Activities.

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

Sidebar

Related Questions

implementing publishActivity in PHP using the REST API using this code: $activity = array(
I am implementing a feed-forward Neural Network which trains using backpropagation. When I output
I'm having a problem implementing the feed dialog function of Facebook within my canvas
I'm having a problem implementing a Feed-Forward MultiLayer Perceptron, with back-prop learning in OpenCL
I'm working on implementing a feed generator for use with Google Product Search for
I have researched this but have had trouble implementing it into my code. I
I'm implementing an Android app to load RSS feed. It works perfectly fine until
Implementing agile in projects requires the ability to do refactoring. It is not really
I'm implementing a Feed Project basically using Three20 Twitter sample as my reference but
Implementing nested subcommands in Python with cmdln. I'm not sure I'm using the right

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.