Like every other important application that uses data to
facilitate the functionality, this application as make use
database to show data. All the data that is related to selecting
clusters, sub clusters and supervisors come from database. In
android application, SQLite databases are used. In this
application, we are using database to read teachers and cluster,
sub-cluster information. For this purpose a class with name
"Database Helper" is used, which takes care of all the database
connectivity functionality. To read from database, information
about contact following query is used. The code reads
information from database and hands it over to the cursor. All
this complexity is covered by another class named as
"Database Manager". The above mentioned file performs all
the important database functionalities. One more important
thing to note is that, all the database data is fetched by
mapping into 2 classes, one for contact and one for research
field. Following are the classes. As database data is displayed
in drop down lists, we have used spinner control for that. It
uses custom adapter to display data. Following code is used to
get reference to spinner: The first spinner is used to display
cluster, the second is for sub clusters that can be selected for
those clusters. This show that the second cluster will only get
data (if there is data) after there is a selection in the first
spinner. The third spinner is used to display number of
students that can be a part of this project with names. This
application makes use of email functionality of android
operating system to send emails.