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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:13:16+00:00 2026-06-15T09:13:16+00:00

I am developing an android application. In that application I have some variety of

  • 0

I am developing an android application. In that application I have some variety of products.
When user clicks on any product it will show images of the product. In that page only I have
one Button like Enquiry. When user clicks on that it will open a form page . In that form I have one field Product name. After completing this when user clicks on submit the details has been mailed to admin mail .

What I want is when user clicks on Enquiry Button it should open a form page with auto filled
product name .

Here is my code.

Lenovo.java:

        Button order = (Button) findViewById(R.id.order);

        order.setOnClickListener(new OnClickListener(){

            public void onClick(View view){

                Intent intentmenu = new Intent(view.getContext(),Order.class);

                startActivityForResult(intentmenu,0);

                }

            });
    }

Order.java:

        final EditText name   = (EditText)findViewById(R.id.username);

        final EditText mail   = (EditText)findViewById(R.id.email);

        final EditText phone   = (EditText)findViewById(R.id.phone);

        final EditText product   = (EditText)findViewById(R.id.product);


        final String _name = name.getText().toString();

        final String _mail = mail.getText().toString();

        final String _phone = phone.getText().toString();

        final String _product = product.getText().toString();

        System.out.println(_name);

        System.out.println(_mail);

        System.out.println(_phone);

        System.out.println(_product);

        Button email = (Button) findViewById(R.id.Button01);

        email.setOnClickListener(new OnClickListener(){     

                  public void onClick(View v){


                      StringBuilder body = new StringBuilder();

                      body.append("Name: "+name.getText().toString());

                      body.append("\n\n\nMail: "+mail.getText().toString());

                      body.append("\n\n\nPhone: "+phone.getText().toString());

                      body.append("\n\n\nProduct: "+product.getText().toString());


                      Intent i = new Intent(android.content.Intent.ACTION_SEND);

                      i.setType("text/plain");

                      i.putExtra(Intent.EXTRA_EMAIL  ,new String[]

                      {"b.gadwantikar1@gmail.com","",});

                      i.putExtra(android.content.Intent.EXTRA_SUBJECT, "Customer Details");

                      i.putExtra(android.content.Intent.EXTRA_TEXT, body.toString());

                      startActivity(i);

                      finish();


                  }

        });

    }
}

If any body knows then help me out…

Thanks in Advance…

  • 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-15T09:13:17+00:00Added an answer on June 15, 2026 at 9:13 am

    You can do as below:

    • Add new activity to your project
    • add the new activity to your Mainfest file.
    • add new XML file for the new activity into layout folder.
    • in the XML file define TextView and/or Edittext as your demand.
    • setContentView of your new activity in onCreate() method to be the new XML file.
    • Start the new Activity by the following code wich will have the data that will transfer to the new activity.

    like the following:

    Intent intent=new Intent(this,NewActivity.class)
    intent.putExtra("Key","data_need_to_Be Transfer");
    startActivity(intent);
    

    and to retrive the data that already trsansfered to the new activity by doing:

    Intent intent = getIntent();
    String yourString=intent.getStringExtra("key");
    and then you can assig the value of that string to Textview or EditText
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm interested in developing an android application that will display a globe of some
I am developing one android application. In which I have some Products and form
I'm developing a simple Android application that would have an action bar on the
I'm currently developing an Android application that fetches images using http requests. It would
I am developing an Android application consisting of over 10 activities. I have some
Developing an application for Android, i want to record data that will be usefull
I am developing an Android application and I have some data saved locally in
I'm developing an Android application. I have my activity here with some widgets including
I'm developing an Android application and JSON web services. Both sides will have a
I'm developing an android application. I retrieve some data that looks like this: <a

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.