Posts

PROGRASSBAR

  package com.prograssbar.app; import androidx.appcompat.app.AppCompatActivity; import android.app.ProgressDialog; import android.os.Bundle; import android.os.Handler; import android.view.View; import android.widget.Button; public class MainActivity extends AppCompatActivity { Button btnStartProgress; ProgressDialog progressBar; private int progressBarStatus = 0 ; private Handler progressBarHandler = new Handler(); private long fileSize = 0 ; @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_main); addListenerOnButtonClick(); } public void addListenerOnButtonClick() { btnStartProgress = findViewById(R.id.button1); btnStartProgress.setOnClickListener( new View.OnClickListener(){ @Override public void onClick(View v) { // creating progress bar dialog progressBar = new Prog...

ANDROID EDITTEXT EXAMPLE

MainActivity.java   package com.bcomfirstproject.app; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends AppCompatActivity { Button btnSubmit; EditText name, password, email, dob, phoneno; TextView result; @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_main); name = (EditText) findViewById(R.id.txtName); password = (EditText) findViewById(R.id.txtPwd); email = (EditText) findViewById(R.id.txtEmai); dob = (EditText) findViewById(R.id.txtDate); phoneno = (EditText) findViewById(R.id.txtPhone); btnSubmit = (Button) findViewById(R.id.btnSend); result = (TextView) findViewById(R.id.resultView); } public void display(View v) { ...

c#.net_unit_3_4_5

Image
                                 (Unit-III) Working with ADO.net Introduction: Microsoft ActiveX Data Objects.NET (ADO.NET) is a model used by .NET applications using which you can communicate with the database directly for retrieving and manipulating data.   ADO.NET is the main data access system that .NET application uses. ADO.NET uses a disconnected data architecture, which means that the data you work with is just a copy of the data in the database. New Features in ADO.NET The new features of ADO.NET are as follows: Ø   Language-Integrated Query (LINQ): LINQ is a new innovation and one of the components of .NET Framework 3.5 that adds native data capabilities to .NET languages using syntax similar to SQL. LINQ to ADO.NET is a LINQ technology to enable querying in ADO.NET using LINQ programming model. LINQ to ...