Project Progress Report
Project Progress Report
Project Progress Report
Background:
In this project we will be using android devices which will be
connected with biometric fingerprint scanners and a server
will be used to connect those android devices and it will
contain record of employees or personals information which
will be used to allow access.
Progress of website:
Initial website has been created which enables any person to
fetch the record of any person online and hence that person
can be tracked online regarding his whereabouts in that
specific organization.
Website has been created in PhP and its layout has been
done using HTML.
To view we PhP files we will be needing a local server such as
wamp installed and then we can view PhP files using
directories such as
http://localhost/first.php
import com.kosalgeek.genasync12.AsyncResponse;
import com.kosalgeek.genasync12.PostResponseAsyncTask;
import java.util.HashMap;
public class MainActivity extends AppCompatActivity implements AsyncResponse,
View.OnClickListener {
EditText etUsername, etPassword, etname;
Button btnLogin;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
etUsername = (EditText)findViewById(R.id.etUsername);
etPassword = (EditText)findViewById(R.id.etPassword);
etname = (EditText)findViewById(R.id.etname);
btnLogin = (Button)findViewById(R.id.btnLogin);
btnLogin.setOnClickListener(this);
}
@Override
public void processFinish(String output) {
Toast.makeText(this, output, Toast.LENGTH_LONG).show();
}
@Override
public void onClick(View v)
{
HashMap postData= new HashMap();
postData.put("txtUsername",etUsername.getText().toString());
postData.put("txtPassword", etPassword.getText().toString());
postData.put("name", etname.getText().toString());
PostResponseAsyncTask task = new PostResponseAsyncTask (this , postData);
task.execute("http://theeatery.org/uet1.php");
}
}
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Press Enter"
android:id="@+id/btnLogin"
android:layout_below="@+id/etname"
android:layout_centerHorizontal="true" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/etUsername"
android:layout_alignEnd="@+id/btnLogin"
android:layout_alignStart="@+id/btnLogin" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/etPassword"
android:layout_below="@+id/etUsername"
android:layout_alignStart="@+id/btnLogin"
android:layout_alignEnd="@+id/etUsername" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/etname"
android:layout_below="@+id/etPassword"
android:layout_alignStart="@+id/etPassword"
android:layout_alignEnd="@+id/etPassword" />
</RelativeLayout>