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

  • Home
  • SEARCH
  • 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 5944837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:35:47+00:00 2026-05-22T16:35:47+00:00

I am having an issue with something and I don’t really know where to

  • 0

I am having an issue with something and I don’t really know where to look or how to search for this, so I am asking here. Basically, I am starting a new activity from my main activity using this bit of code:

Intent intent = new Intent(v.getContext(), AlarmViewer.class);
startActivity(intent);

And start my AlarmViewer class with a normal onCreate, that looks like this:

public void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.main);
}

So, I am trying trying to figure out how to access the intent I used to start the activity to get some extras that I put on it. Anyone have any idea how I can do that? If this has been asked before I’m sorry, wasn’t really sure how to search for this.

  • 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-22T16:35:48+00:00Added an answer on May 22, 2026 at 4:35 pm

    To get the intent, use getIntent().

    To get your information, you use getIntent().getExtras() which returns an object of type Bundle. From that object, you can call the different get* methods depending on the type you have passed it from the calling activity

    You can have a look at this thread for an example

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

Sidebar

Related Questions

I've been having this issue for a while now and was never really able
I am having this kind of mysterious issue here. I am currently using Entity
I'm having an issue when trying to do something which should be as easy
Having an issue here that I have tried everything I can think of but
Having a weird issue. I'm new to Macs and have a windows VM that
I don't think I'm the first one to run into this issue but I
I can't believe that I'm having an issue with this. My setTimeout is: setTimeout(function(){showContent(entries,
I'm hoping non-IIS people can help me on this though the issue I'm having
So I've run into something odd and I don't know what it's called so
Having trouble inheriting from a template class. Looks something like this: template<typename type> class

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.