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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:09:59+00:00 2026-06-15T00:09:59+00:00

I am creating one android application in which I am using one form for

  • 0

I am creating one android application in which I am using one form for enquiry.

when the Enquiry button is clicked then application have to show one form . After completing
the form entry user when user presses the Submit button then the data should save in database
and form details have to be be send to the admin account via mail.

I am searching in google but I am not getting exact what I want.

Here is my code

Order.java

package com.example.shaktitool;    
import android.app.Activity;
import android.os.Bundle;    
import android.view.View;    
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class Order extends Activity{

    private SQLiteAdapterOrder mySQLiteAdapter;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.order);

        mySQLiteAdapter = new SQLiteAdapterOrder(this);    
        mySQLiteAdapter.openToWrite();
        mySQLiteAdapter.deleteAll();
        final MY_TABLE tb = new MY_TABLE(this);
        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 View.OnClickListener(){    
                  public void onClick(View v) {
                      // TODO Auto-generated method stub
                      tb.open();
                      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);
                      Toast.makeText(getBaseContext(), "Record Saved",Toast.LENGTH_LONG).show();    
                      System.out.println(mail);
                      System.out.println(phone);       
                      System.out.println(product);

                      tb.createorders(name, mail, phone, product);
                      tb.delete("12");
                      tb.close();

                  }
              }); 
    }
}

can any one help me…

  • 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-15T00:10:01+00:00Added an answer on June 15, 2026 at 12:10 am
     EditText fd1 = (EditText)findviewById(R.id.fd1);
     EditText fd2 = (EditText)findviewById(R.id.fd2);
     EditText fd3 = (EditText)findviewById(R.id.fd3);
    
     submitbtn.setOnClickListener(new OnClickListener() {
    
            public void onClick(View v) 
            {
                String field1 = fd1.getText.toString();
                String field2 = fd2.getText.toString();
                String field3 = fd3.getText.toString();
                dh.insert_values(field1, field2, field3);   
            }
        });
    

    On submit insert values into the database as like this..

    and in your datahelper class

     public long insert_values(String fd1,String fd2,String fd3)
        {
           this.insertStmt.bindString(1, fd1);
           this.insertStmt.bindString(2, fd2);
           this.insertStmt.bindString(3, fd3);
           return this.insertStmt.executeInsert();
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating one form in html using table. Which have one Drop down
I am creating one android application which will have API to create a new
I've creating one ASP web application, in that application one form have to update
I am creating one application in which i am using jsp/servlet.. I want to
I am creating a application for android, in one of the activity i have
When creating an Android application using Loaders, should every activity and fragment have its
I'm creating an android application in which i will need to store data using
I am creating an android application in which there are two activites. One activity
I am creating one sample project in android. i am using sample rss feed.
am creating one application for student. I need to show digital clock with remaining

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.