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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:16:33+00:00 2026-05-23T09:16:33+00:00

I actually have an activity called Creation.java which provides access to different tabs and

  • 0

I actually have an activity called “Creation.java” which provides access to different tabs and that works fine.

My tabs are activities and contains different Views like EditText or Spinners. As I have a lot of datas to save (really a lot) I’d like to propose to the user to fill all the Views by switching between tabs and then, in a last Tab, to validate all the datas and write it in an xml file.

But it seems like I can’t get access to the datas from, by example my first tab in order to validate it within the last tab with a validate button.

Example for a customer creation in creationclient.xml which is set in the activity CreationClient.java :

        <EditText android:id="@+id/nom1"
            android:layout_width="@dimen/margexlarge"
            android:layout_height="wrap_content"
            android:text="Nom"
            />
        <EditText android:id="@+id/prenom1"
            android:layout_width="@dimen/margexlarge"
            android:layout_height="wrap_content"
            android:text="Prénom"
            />

I can’t get the content in validation.java, I get an error cause it can’t get the String from the View :

    nom1 = (EditText) findViewById(R.id.nom1);
    prenom1 = (EditText) findViewById(R.id.prenom1);
    validationDuDossier = (Button) findViewById(R.id.validationdudossier);
    idDossier = ((nom1.getText().toString().substring(0, 2)) + (prenom1.getText().toString().substring(0,2)));

So my point is : Can I get access to the datas of a layout A in an activity B even if I’ve set a layout B in this activity ?
Or do I have an exclusive access to the datas from the layout I set to my activity ?

  • 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-23T09:16:34+00:00Added an answer on May 23, 2026 at 9:16 am

    You will need to link the edit text to the the last tab.
    By either doing for example.

    info.getText().toString(lastTab);
    

    or you could do as following

    lastTab = info.getText().toString();
    

    From there you will link the lastTab holding the information to the last Views TextView or how ever you are displaying the information.

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

Sidebar

Related Questions

I currently have the code below it works fine up until I actually try
I have a Tab Layout with four tabs. Navigation betweeen them works fine, but
I have heard that it's best not to actually have any html in your
I have a JPEG image (actually a BLOB in a database) which I want
I have an activity which is declared in my manifest with android:noHistory=true , and
I actually have an answer to my question but it is not parallelized so
I actually have two questions regarding the same problem but I think it is
I have a JTree with multiple roots (Of course, I actually have an invisible
I used windows installer (msi project) and actually I have the msi file after
I would actually love to have an AlternatingItemTemplate on a GridView, but all it

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.