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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:44:51+00:00 2026-05-22T02:44:51+00:00

Save data from edit texts, text views, spinner selections, and checkboxes from multiple activities

  • 0

Save data from edit texts, text views, spinner selections, and checkboxes from multiple activities into an email:

I am already using:

Intent EmailSend = new Intent(android.content.Intent.ACTION_SEND);
    EmailSend.setType("plain/text");
    EmailSend.putExtra(android.content.Intent.EXTRA_TEXT,
      "Pretext"+edittext.getText().toString());

the put string is not working for items not listed in the .java
When I use the last line in that i get error saying -edittext cannot resolved-

and how to get data from checkbox & spinner

I will have 80 or so items to compile to this email over 8 activities

  • 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-22T02:44:52+00:00Added an answer on May 22, 2026 at 2:44 am

    I wrote a snippet to automate it a little:

    ViewGroup     root = (ViewGroup) ((ViewGroup) findViewById(android.R.id.content)).getChildAt(0);
    StringBuilder str  = new StringBuilder();
    
    public void extractText(ViewGroup root, StringBuilder str){
        int count = root.getChildCount();
        for(int i = 0; i < count; i++) {
            View v = root.getChildAt(i);
    
            if(v instanceof Spinner) {
                str.append(i).append(" Spinner: ").append(((Spinner) v).getSelectedItem());
            } else if(v instanceof TextView) {
                str.append(i).append(" TextView: ").append(((TextView) v).getText());
            } else if(v instanceof CheckBox) {
                str.append(i).append(" Checkbox: ").append(((CheckBox) v).isChecked());
            }else if(v instanceof ViewGroup){
                extractText((ViewGroup)v, str);
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to save some simple text data to a file from my Silverlight
I would like to save data in cookies (user name, email address, etc...) but
Sample HTML Data <body style=width:300px;> <h3>Long-Text</h3> A simple tool to store and display texts
I have multiple text fields that each have onChange=submit(); in order to save the
I've created a program that parses data from a file and imports it into
I am trying to save data to a database on a button push, but
I have three buttons and need to save some data. I have a idea,
I am trying to scrape an html table and save its data in a
We have the requirement to take a form submission and save some data, then
I'm trying to save some XML-Data in my UserSettings (Properties.Settings.Default.UserSettings) in a .NET Winforms

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.