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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:01:23+00:00 2026-06-10T18:01:23+00:00

In the previous Activity i did this: int entryId = 10; intent.putExtra(entry_id, entryId); then

  • 0

In the previous Activity i did this:

int entryId = 10;
intent.putExtra("entry_id", entryId);

then in the resultant Activity

First i tried this:

entry_id = this.getIntent().getExtras().getInt("entry_id");

it always gives me the default value 0

But i changed to this:

entry_id = this.getIntent().getIntExtra("entry_id", 1);

it gives the correct value (10).

why is it so?

  • 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-10T18:01:25+00:00Added an answer on June 10, 2026 at 6:01 pm

    Chanage entry_Id to entry_id in your first case.

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

Sidebar

Related Questions

You may find this question before.But I need to restart the previous activity when
How do I return values from a previous Activity? In the first screen, I
I am getting one id of some event from the previous activity to this
I have a activity where I have some data from previous activity: final int
I know that finish() returns your activity back to your previous activity. Now I
I'm trying to do a button than it function is go to previous activity
Please tell me any one, how to kill previous stacked activity.My requirement is like
Our previous webmaster set up this site and the caching he set up works
Hello guys Im having a problem in how to clear the previous activity after
I have a broadcast receiver which will launch an Activity onReceive. When launched, this

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.