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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:59:55+00:00 2026-06-17T14:59:55+00:00

Which is good way to pass element fromone actvity element in another activity. Putextra()

  • 0

Which is good way to pass element fromone actvity element in another activity.

Putextra() methods or sharedpreferences();

For example, I have element from list that will use in all activity as in Activity A ,Activity B and Activity C etc.

From list I save element in shared preferences and we will use values that are saved in shared preferences in Activity A.

Send these value in Activity A to B Activity.
Send these value from Activity A to C Activity. Using putExtra() method.

Can we use that shared preferences files in all activity rather than send value from one activity to another activity.

Actually I got error in put extra() method.

  • 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-17T14:59:56+00:00Added an answer on June 17, 2026 at 2:59 pm

    Its actually a simple rule. If you want to store the data for later use you must go for Shared Preference or any other form of Internal Storage.

    If you need the object to exist for the app’s lifetime you should go for putExtra() in my opinion.

    The reason is, you must try to avoid using memory as much as possible. If you store the data in your preference which is of no use, then there is a wastage of memory.

    if getting error in putextra is your only problem then posting the code would help where we could see through and guide you.

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

Sidebar

Related Questions

I've been searching for a good way in which to style up a selectbox,
Short story: stopPropagation() prevents a dropdown menu from closing - which is good. But
I have the following code which <a href=#example id=showtext>view text</a> $(#showtext).click (function () {
I have ListFragment and AsyncTaskLoader which fetches data from internet. ListFragment is filled by
What is the best / good way to implement method calls. For eg: From
I've a WPF+WCF application which works good for now 2 years, but now they
I know there are many cases which are good cases to use multi-thread in
The code I used doesn't give me any MySQL errors (which is good) Except
I set my embedded bespin as below, which works good: _editorComponent = new bespin.editor.Component('editor',
Which is a good Project Managment Method to Develop a Website? XP? The Waterfall

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.