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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:02:51+00:00 2026-05-29T17:02:51+00:00

i am currently designing a ebook reader app as my project, i am having

  • 0

i am currently designing a ebook reader app as my project, i am having a problem in changing text of the textview from other activity.

Contents of my project,

Activity 1 contains two buttons and when button1 is clicked “Some Text” Should appear and when button2 is clicked “Some Other Text” sholud appear in a TextView1 which is in Activity2.

i mean the text should appear in TextView1 only. there is no other textview. okay.

please solve my problem with a simple code example.

Sorry for any mistakes in the question as it is my first attempt to really ask a question on internet.

Thank You

  • 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-29T17:02:52+00:00Added an answer on May 29, 2026 at 5:02 pm

    As far as i know you cannot access the UI component of2nd activity while being in first activity. so the best way is to pass the value through putExtra method of intents and then set it to textview in the oncreate of 2nd activity by getting it. here below is link which shows this method

    http://mobileorchard.com/android-app-development-using-intents-to-pass-data-and-return-results-between-activities/

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

Sidebar

Related Questions

I'm currently designing a custom tab control class which derives from System.Windows.Forms.Control. The problem
We are currently designing a website that will be accessed from kiosks in a
I'm currently designing a database for a project. Now I'm debating with myself whether
I am currently designing a Membership/Profile scheme for a new project I am working
I'm currently designing a smart client app (WPF) which needs to operate in an
I am currently designing and implementing a small programming language as an extra-credit project
I am currently designing a user control which will have other controls contained within
I am currently designing a font engine for an embedded display. The basic problem
We are currently designing a system using WPF which will communicate with other systems
I am currently designing an iOS 5 iPhone app that will use a .NET

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.