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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:31:28+00:00 2026-05-19T10:31:28+00:00

I am attempting to create a toast pop-up when the icon at the bottom

  • 0

I am attempting to create a toast pop-up when the icon at the bottom of the layout (the screen icon) https://i.stack.imgur.com/C8WgN.png

I want the information entered to be put into the toast notification like a shipping address

First Last

Street

City State Zip

is there a way to do this where the toast calls on the Id’s for the EditText views?

The .xml with the layout:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
            android:layout_height="fill_parent" 
            android:layout_width="fill_parent">
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:stretchColumns="2" android:orientation="vertical">
 <TableRow>
     <TextView
         android:text="First Name"
         android:padding="3dip" android:layout_column="0"/>
     <TextView
         android:text="Last Name" android:padding="3dip"/>

 </TableRow>
 <TableRow>
   <EditText 
            android:layout_height="wrap_content" 
            android:id="@+id/EditText01" 
            android:inputType="textPersonName"      
            android:width="150dip"/>
  <EditText android:singleLine="true" 
            android:inputType="textPersonName" 
            android:isScrollContainer="false" 
            android:layout_height="wrap_content" 
            android:id="@+id/EditText02" 
            android:lines="1" android:width="150dip"></EditText>
  </TableRow>
  <View
     android:background="#FF909090" android:layout_height="2px"/>
  <TableRow>
     <TextView
         android:text="Street Address"
         android:padding="3dip" android:layout_column="0"/>
  </TableRow>

  <TableLayout>
    <TableRow android:layout_width="fill_parent">
    <TextView 
              android:text="Line 1"
               android:padding="3dip" 
                            android:layout_column="0"/>
    <EditText
    android:layout_height="wrap_content"
    android:id="@+id/EditText03" 
                            android:inputType="textPostalAddress" 
                            android:width="255dip"/>
   </TableRow>
   <TableRow android:layout_width="fill_parent">
      <TextView 
    android:text="Line 2"
    android:padding="3dip" android:layout_column="0"/>
   <EditText
    android:layout_height="wrap_content"
    android:id="@+id/EditText04" 
                            android:inputType="textPostalAddress"/>
  </TableRow>
</TableLayout>

<TableLayout>
<TableRow>
<TextView
 android:text="City"
 android:padding="3dip" 
 android:layout_column="0" />
<EditText 
 android:layout_height="wrap_content"
 android:id="@+id/EditText05" 
 android:inputType="text" 
 android:layout_width="120px"/>
</TableRow>
<TableLayout>
  <TableRow>
    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:padding="3dip"
        android:text="@string/state" />
    <Spinner 
        android:layout_height="wrap_content"
        android:prompt="@string/state"
        android:id="@+id/Spinner01" 
        android:layout_width="wrap_content"/>
    <TextView
     android:layout_height="wrap_content"
     android:text="Zipcode" />
    <EditText 
     android:layout_height="wrap_content" 
     android:inputType="phone" android:width="80px"/>
</TableRow>
</TableLayout>
</TableLayout>
<View
     android:background="#FF909090" android:layout_height="2px"/>
 <TableRow>
  <TextView
   android:layout_width="120px"
   android:layout_height="wrap_content"
   android:text="Telephone Number" 
   android:padding="3dip"/>
 </TableRow>
 <TableLayout>
  <TableRow>
   <EditText
    android:layout_height="wrap_content"
    android:inputType="phone"
    android:layout_width="120dip" />
  <Button android:id="@+id/Button01"   
          android:layout_width="wrap_content"   
          android:layout_height="wrap_content" 
          android:padding="3dip" 
          android:background="@drawable/ic_monitor_grey"         
          android:clickable="true" />
  </TableRow>
  </TableLayout>
  </TableLayout>
  </ScrollView>

With my .java file being

public class Basic extends Activity {
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.basic);
    Spinner spinner = (Spinner) findViewById(R.id.Spinner01);
    ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(
            this, R.array.state_array, android.R.layout.simple_spinner_item);
    adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    spinner.setAdapter(adapter);

   }
}
  • 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-19T10:31:29+00:00Added an answer on May 19, 2026 at 10:31 am

    You would need to do a few things.

    1. For each editText area you want to get the values from, you’ll want to define an android:id using the following style of syntax

    2. Retrieve the views you’d like to use from your xml layout inside the Java. Based on the above, you’d want to add something to you onCreate like:

      EditText phoneField = (EditText) findViewById(R.id.phone_field)

    3. Retrieve the value from the EditText object

      String phoneNumber = phoneField.getText().toString()

    4. Show the field in a Toast message
      Toast toDisplay = Toast.makeText(context, phoneNumber)
      toDisplay.show()

    There are obviously tons of additional things you could do, but that would be about the minimum.

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

Sidebar

Related Questions

I am attempting to create a very basic login screen, using the Storyboard designer
I'm attempting to create a basic 3-column layout. Essentially the center column should be
While attempting to create a replacement tablespace for USER, I accidentally created a datafile
Im attempting to create a new operator :? on lists, which operates the same
I attempting to create an 800x500 div with four overlapping divs inside the container
I attempting to create custom tabs using this . But when I try to
I'm attempting to create a table for monitoring purposes using the following script: $w3wppriv
I am attempting to create a report, utilizing a matrix, that only displays columns
I'm attempting to create a CustomControl which will have various properties affected by an
I'm attempting to create a Google 2 Factor Authorisation just as an experiment not

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.