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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:43:24+00:00 2026-06-07T14:43:24+00:00

What i am currently try to achieve is: Add a record in one activity

  • 0

What i am currently try to achieve is:
Add a record in one activity and show it on the other activity.
And on the click of the edit button on the show activity it takes back user to the first page for editing the data.
The problem is that i cannot use Intent.putextra() for this because the add page is linked with other so it gives me error for this.
Thought of using shared preferences as well,but i don’t think it would help me much, since if a value is set in shared preference it would be available on load of the activity so i wont be able to know from where i entered the activity. so thought of using intent-filters for it.
can anyone help me with this ?
And i dont want to create another class for edit purpose.

  • 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-07T14:43:25+00:00Added an answer on June 7, 2026 at 2:43 pm

    Why not check for…

    <pre>
    <code>
        if (getIntent() != null && getIntent().getSerializableExtra("Id") != null)
        {
           //get the data here becuz it's not null here....
        }
    </code>
    </pre>
    

    also just note that getIntExtra() also exists…

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

Sidebar

Related Questions

I'm currently experimenting with CSS3 Animations, and try to achieve a Panoramic view with
I currently try to use Reachability in iOS 5.1 on iPad. There is a
I am currently try to retrieve a latitude and longitude value from a location.
I'm currently (I try to) designing a RESTful API for a social network. But
I am a total beginner to Objective C. Currently I try to display a
Im currently facing the problem that when i try to set focus on some
I currently have MVS2008 and I want to try the 2010 version hoping that
I am currently using code similar to this: try { // IE ONLY var
I'm currently reading through this jquery masking plugin to try and understand how it
I am currently using two catch blocks after a try block. The first catches

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.