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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:13:29+00:00 2026-06-10T08:13:29+00:00

i have a small query, Suppose we start an activity using intents startActivity(intent); and

  • 0

i have a small query,
Suppose we start an activity using intents

startActivity(intent);

and a new screen opens up with content in it,like buttons and text fields
I just need to know if its possible to fetch the details about the layout and its contents.

I think its not possible, but just wanted to get a proper confirmation.

  • 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-10T08:13:30+00:00Added an answer on June 10, 2026 at 8:13 am

    No, it’s not possible to do this. And (from comments) no, it’s not possible to “click” a button from a separate Activity. What you can do, however, is this:

    // Calling code:
    intent.putExtra(getPackageName() + ".click_me", R.id.your_button); // getPackageName() is for best practices
    startActivity(intent);
    
    // In your Activity:
    Intent intent = getIntent(); // Get the Intent we used to launch this
    int buttonToClick = intent.getIntExtra(getPackageName() + ".click_me", 0); // Get the integer
    if (buttonToClick != 0) { // If it's 0, we didn't specify it
        View toClick = findViewById(buttonToClick); // Find the View
        if (toClick != null && toClick instanceof Button) { // If the View exists, and is a Button..
            ((Button) toClick).performClick(); // ..then click it
        }
    }
    

    You provide the Intent that starts the Activity with an integer. This integer represents a View (more specifically, a Button). Once the Activity receives it, it finds the matching View, checks if its a Button, then performs a click action on it.

    This way, you’re just passing the integer ID of an item to click, and your opened Activity just handles the rest.

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

Sidebar

Related Questions

I'm new enough to Javascript, and I have a small query about formulating variable
I am new to develop windows phone application , i have a small Query
I have small query today I happen to see when I typed a website
i have small query as follows: If i will make view state property of
Hi i have a small query which takes data from one mysql database and
I have small database of business and their addresses. Using the Google Geocode API
I have small test app: Socket socket = new Socket(jeck.ru, 80); PrintWriter pw =
I have a query about type of null. I have a small program can
I have a small Bidding system that I'm using for a fantasy auction draft.
Suppose I have a set of directed graphs. I need to query those graphs.

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.