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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:05:14+00:00 2026-05-22T17:05:14+00:00

I am having an issue with tabs, and I figure someone will know how

  • 0

I am having an issue with tabs, and I figure someone will know how this works. Basically I am trying to pass data between tabs in an app, but I am not sure how to do this. I had it set up before where a button would change the activity, but when I moved it to a tabbed view, I lost a way to pass the info through intents like I was doing before. Basically my set up now is:

  1. A TabActivity to switch between my other 2 activities
  2. 2 list activities being connected by the tab activity

It would be awesome if I could somehow pass the info through intents still, but I am not sure if that can work, it would also work if somehow in one of the activities I could access the sharedpreferences from the other. Is there anyway to do either of these? Thanks in advance.

WWaldo

  • 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-22T17:05:15+00:00Added an answer on May 22, 2026 at 5:05 pm

    Passing data between Activities which are the contents of Tabs is tricky.

    One way that you can try is to us a ‘sticky’ Intent. Take a look at sendStickyBroadcast – you’ll need to have a BroadcastReceiver in each Activity to process the sticky Intent which you can do by defining a private nested class extending BroadcastReceiver.

    As far as SharedPreferences are concerned, this can be done at the app level by specifying a filename for the SharedPreferences rather than using Activity-based preferences.

    See getSharedPreferences(String name, int mode) – as long as both Activities specify the same filename they will both gain access to the same SharedPreferences file.

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

Sidebar

Related Questions

I'm having a really strange issue. I've written an app with five tabs in
I'm having trouble spotting an issue where this jQuery menu breaks when hovering between
Having an issue with random individuals trying to access an intranet site with a
The issue I'm having is issue with is I'm trying to get the paintComponent
I'm having an issue with jQuery UI Tabs script which does not pick up
I'm hoping someone with Javascript experience can help me out with these tabs. Basically,
I am having issue when sending data from Service to Activity through Notification ,
I am having issue with memory after running many times my app. java.lang.OutOfMemoryError: bitmap
I'm having issue converting this string to a decimal. I tried to follow the
Having an issue with ASP.NET, when trying to set a cookie on subdomain1.mydomain.com to

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.