MCF Project Report
MCF Project Report
MY COURSE FINDER
Mini Project report submitted to
KRISTU JYOTI COLLEGE OF MANAGEMENT AND TECHNOLOGY
Changanacherry
In partial fulfillment of the requirements for the award of the
MASTER OF COMPUTER APPLICATIONS (M.C.A.)
By
AJO P THOMAS (600152)
JACOB GEORGE (600164)
JITHU JAYAKUMAR (600165)
Under the guidance of
CHANGANACHERRY
APRIL 2017
CERTIFICATE
Certify that the report entitled “MY COURSE FINDER” is a bonafide record of the mini
project work done by Ajo P Thomas (600152), Jacob George (600164) and Jithu Jayakumar
(600165) under our guidance and supervision is submitted in partial fulfillment of the Master
Degree in Computer Applications, awarded by Mahatma Gandhi University, Kottayam, Kerala
and that no part of this work has been submitted earlier for the award of any other degree.
DECLARATION
We, hereby declare that the project work entitled MY COURSE FINDER
submitted to Mahatma Gandhi University in partial fulfillment of the requirements for the
award of degree of Master of Computer Applications, is a record of original work done by us
under the guidance of Mr. Manu Prabhakar, Faith Infosys, Changanacherry, during the period
from March 3, 2017 to May 4, 2017.This project work not been submitted in part or full of
any other degree of this University or any other University.
ACKNOWLEDGEMENT
It gives us immense pleasure to express our heartfelt thanks to all those who helped us
in the successful completion of our project MY COURSE FINDER. First and foremost we
express our sincere thanks to God for all his blessings which helped us to achieve our goal.
We wish to express our deep sense of gratitude to our respected Principal, Fr. Joshy
Cheeramkuzhy CMI whose advice was a real encouragement to us and we are deeply
indebted to our Course-In-Charge ,Assistant Prof. Mr. Roji Thomas, Department of
Computer Applications for imparting his excellent guidance to successfully complete this
project and to our project guide, Mr. Manu Prabhakar, Faith Infosys, for his timely
suggestions and constant encouragement, which paved the way for the successful completion
for this project .
At the outset we extend our sincere thanks to all the staff members of our college. And
we extent our sincere thanks to our parents and to our friends for their moral support and
encouragement for the successful completion of this project.
Ajo P Thomas
Jacob George
Jithu Jayakumar
ABSTRACT
My course finder is an android application that helps the students to choose the
appropriate college among the different colleges. The students can also view the
fee structure of each course and the duration of the course. They can compare
the same courses in different colleges. This application is also provide the
facility to apply for the courses through e-mail. If any further clarification about
the college needed they can contact college through the application.
CONTENTS
Title Page
No:
1. INTRODUCTION………………………………………………………. .2
2. ANDROID …………………………………………………………………3
5. SYSTEM ANALYSIS
2.1 EXISTING SYSTEM………………………………………………….. 21
2.2 PROPOSED SYSTEM………………………………………………… 21
2.3 FEASIBILITY STUDY………………………………………………... 22
5. SYSTEM DESIGN
5.1 DATABASE DESIGN………………………………………………. ...30
5.1.1 TABLES DESIGN……………………………………………….. ….31
5.2 PROCESS DESIGN…………………………………………………. ...33
5.3 USER INTERFACE DESIGN …..………………………. …………...35
6. CODING STANDARDS………………………………………………. 41
7. SYSTEM IMPLEMENTATION……………………………………65
10. REFERENCES………………………………………………………..74
INTRODUCTION
CHAPTER 1
1.INTRODUCTION
1.1)GENERAL INTRODUCTION
ANDROID
Android is a Linux-based operating system for mobile
devices such as smart phones and tablet computers. It is developed by
the Open Handset Alliance, led by Google.
Google financially backed the initial developer of the software,
Android Inc., and later purchased it in 2005. The unveiling of the
Android distribution in 2007 was announced with the founding of the
Open Handset Alliance, a consortium of 86 hardware, software,
and telecommunication companies devoted to advancing open
standards for mobile devices. Google releases the Android code as
open-source, under the Apache License. The Android Open Source
Project (AOSP) is tasked with the maintenance and further
development of Android.
Android is robust software that includes an operating system,
middleware and select applications. Developed and maintained as an
open source project by Google, Android benefits by contributions from
members of the Open handset Alliance (OHA), including ARM.
Android has been designed and built for the ARM architecture, and
continues to be the primary development platform of the OHA with
hundreds of companies contributing to the Android on ARM codebase.
One of the best sources for Android on ARM is directly from
Google’s own Android website. Android development on ARM falls
into two categories; application development and OS porting to various
ARM based SoCs and boards.
There are two development kits for Android applications. The
first is the SDK, or Software Development Kit, which is a Java
development environment that produces applications intended to run in
the Android Dalvik Java VM. The Dalvik runtime environment, heavily
optimized for the ARM architecture, including an ARM targeted Just-
in-time (JIT) compiler, utilizes the latest ARMv7 architectural features.
Foundation
Version history
Cupcake
Donut
Eclair
Froyo
Gingerbread
Honeycomb
Jelly Bean
Design
Linux
Eclipse SDK
include the Eclipse Java development tools (JDT) for Java, Eclipse
CDT for C/C++, and Eclipse PDT for PHP, among others.
Features
Handset layouts
The platform is adaptable to larger, VGA, 2D
graphics library, 3D graphics library based on OpenGL ES 2.0
specifications, and traditional smartphone layouts.
Storage
SQLite, a lightweight relational database, is used
for data storage purposes.
Connectivity
Android supports connectivity technologies
including GSM/EDGE, IDEN, CDMA, EV-DO, UMTS, Blueto
oth, Wi-Fi, LTE, NFC and WiMAX.
Messaging
SMS and MMS are available forms of messaging, including
threaded text messaging and Android Cloud To Device
Messaging (C2DM) and now enhanced version of C2DM,
Android Google Cloud Messaging (GCM) is also a part of
Android Push Messaging service.
Applications
JAVA
Java is a programming language originally developed
by James Gosling at Sun Microsystems (which has since merged into
Oracle Corporation) and released in 1995 as a core component of Sun
Microsystems' Java platform. The language derives much of its syntax
from C and C++ but has a simpler object model and fewer low-
level facilities. Java applications are
typically compiled to bytecode (class file) that can run on any Java
Virtual Machine (JVM) regardless of computer architecture. Java is
a general-purpose, concurrent, class-based, object-oriented language
that is specifically designed to have as few implementation
dependencies as possible. It is intended to let application developers
"write once, run anywhere" (WORA), meaning that code that runs on
one platform does not need to be recompiled to run on another. Java is
as of 2012 one of the most popular programming languages in use,
particularly for client-server web applications, with a reported 10
million users.
History
the SDK); the primary distinction involves the JRE's lack of the
compiler, utility programs, and header files.
Principles
There were five primary goals in the creation of the Java language:
Versions
Usages
Desktop use
Java runtime environment, and for making the new classes available
through Visual J++.
Mobile devices
Google's Android operating system uses the Java language, but not its
class libraries, therefore the Android platform cannot be called Java.
Android executes the code on the Dalvik VM instead of the Java VM.
DATABASE DESIGN
About SQLite
Design
History
Features
CHAPTER 2
SYSTEM ANALYSIS
2.1 INTRODUCTION
and purposes and create systems and procedures that will achieve them
in an efficient way". Another view sees system analysis as a problem-
solving technique that decomposes a system into its component pieces
for the purpose of the studying how well those component parts work
and interact to accomplish their purpose.
Time consuming.
unneeded expense
Manual work
To avoid all these limitations and make the system working more
accurately, it needs to be computerized.
can evaluate and find out the best choice for them. Students can send
applications to respective colleges through e-mail facility provided in
the application.
• Greater efficiency.
SYSTEM DESIGN
CHAPTER 3
SYSTEM DESIGN
3.1 INTRODUCTION
DFD DIAGRAM
3.3DATABASE DESIGN
Table 1: College
Table 2 : Course
SYSTEM
DEVELOPMENT
CHAPTER 4
SYSTEM DEVELOPMENT
HARDWARE REQUIREMENTS
RAM : 4 GB
SOFTWARE REQUIREMENTS
WATERFALL MODEL
SOFTWARE
IMPLEMENTATION AND
TESTING
CHAPTER 5
5.1 CODING
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/an
droid"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#34b1f9"
android:paddingBottom="@dimen/activity_vertical_marg
in"
android:paddingLeft="@dimen/activity_horizontal_marg
in"
android:paddingRight="@dimen/activity_horizontal_mar
gin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<ImageView
android:id="@+id/mcflogo"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="83dp"
android:onClick="entry"
android:src="@drawable/newlogo" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/mcflogo"
android:layout_centerHorizontal="true"
android:layout_marginBottom="28dp"
android:text="My Course Finder"
android:textAppearance="?
android:attr/textAppearanceSmall"
android:textColor="#fff" />
</RelativeLayout>
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.view.Menu;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;
SQLiteDatabase db;
ImageView logo;
@Override
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
try{
c.moveToFirst();
int n=c.getInt(0);
if(n>0)
Intent intent=new
Intent(getApplicationContext(),Home.class);
startActivity(intent);
else
Intent intent=new
Intent(getApplicationContext(),Register.class);
startActivity(intent);
catch(Exception e)
Toast.makeText(this, e.getMessage(),
Toast.LENGTH_SHORT).show();
@Override
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#34b1f9"
android:paddingBottom="@dimen/activity_vertical_marg
in"
android:paddingLeft="@dimen/activity_horizontal_marg
in"
android:paddingRight="@dimen/activity_horizontal_mar
gin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".Register" >
<TextView
android:id="@+id/TextView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="Register"
android:textAppearance="?
android:attr/textAppearanceLarge"
android:textColor="#fff" />
<Button
android:id="@+id/regsave"
style="?android:attr/buttonStyleSmall"
android:layout_width="90dp"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/regclr"
android:layout_alignBottom="@+id/regclr"
android:layout_alignLeft="@+id/regaddress"
android:background="@drawable/rounded_button"
android:text="Save"
android:textColor="#fff" />
<EditText
android:id="@+id/regusr"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/TextView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="42dp"
android:ems="10"
android:textColorHint="#ddd"
android:hint="Username"
android:paddingLeft="10dp"
android:textColor="#fff" />
<EditText
android:id="@+id/regname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/regusr"
android:layout_centerHorizontal="true"
android:textColorHint="#ddd"
android:layout_marginTop="6dp"
android:ems="10"
android:hint="Name"
android:paddingLeft="10dp"
android:textColor="#fff" />
<EditText
android:id="@+id/regmail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/regname"
android:layout_centerHorizontal="true"
android:textColorHint="#ddd"
android:ems="10"
android:layout_marginTop="6dp"
android:hint="Email"
android:inputType="textEmailAddress"
android:paddingLeft="10dp"
android:textColor="#fff" />
<EditText
android:id="@+id/regphone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/regmail"
android:layout_centerHorizontal="true"
android:textColorHint="#ddd"
android:ems="10"
android:layout_marginTop="6dp"
android:hint="Phone"
android:inputType="phone"
android:paddingLeft="10dp"
android:textColor="#fff" />
<EditText
android:id="@+id/regaddress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/regphone"
android:layout_centerHorizontal="true"
android:textColorHint="#ddd"
android:ems="10"
android:layout_marginTop="6dp"
android:hint="Address"
android:inputType="textPostalAddress"
android:paddingLeft="10dp"
android:textColor="#fff" />
<EditText
android:id="@+id/regpass"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/regaddress"
android:layout_marginTop="6dp"
android:textColorHint="#ddd"
android:ems="10"
android:hint="Password"
android:inputType="textPassword"
android:paddingLeft="10dp"
android:textColor="#fff" />
<Button
android:id="@+id/regclr"
style="?android:attr/buttonStyleSmall"
android:layout_width="90dp"
android:layout_height="wrap_content"
android:layout_alignRight="@+id/regpass"
android:layout_below="@+id/regpass"
android:layout_marginTop="38dp"
android:background="@drawable/rounded_button"
android:text="Clear"
android:textColor="#fff" />
</RelativeLayout>
package com.example.mcf;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
save=(Button) findViewById(R.id.regsave);
save.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
String v1=name.getText().toString();
String v2=email.getText().toString();
String v3=phone.getText().toString();
String v4=address.getText().toString();
String v5=username.getText().toString();
String v6=password.getText().toString();
sql="insert into registration
values('"+v1+"','"+v2+"','"+v3+"','"+v4+"')";
query="insert into login
values('"+v5+"','"+v6+"')";
db.execSQL(sql);
db.execSQL(query);
Toast.makeText(getApplicationContext(),
"REGISTRATION SUCCESSFUL", Toast.LENGTH_SHORT).show();
Intent intent=new
Intent(getApplicationContext(),MainActivity.class);
startActivity(intent);
}
});
clear=(Button) findViewById(R.id.regclr);
clear.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
name.setText(null);
email.setText(null);
phone.setText(null);
address.setText(null);
username.setText(null);
password.setText(null);
}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is
present.
getMenuInflater().inflate(R.menu.register, menu);
return true;
}
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/an
droid"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#34b1f9"
android:paddingBottom="@dimen/activity_vertical_marg
in"
android:paddingLeft="@dimen/activity_horizontal_marg
in"
android:paddingRight="@dimen/activity_horizontal_mar
gin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".Home" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" >
<EditText
android:id="@+id/searchtxt"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:paddingLeft="15dp"
android:ems="10"
android:background="@drawable/rounded_edittext"
android:textColorHint="#bbb"
android:hint="Search College"
/>
<Button
android:id="@+id/searchbtn"
style="?
android:attr/buttonStyleSmall"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginLeft="10dp"
android:background="@drawable/search"
android:onClick="searchclg" />
</LinearLayout>
<ListView
android:id="@+id/collegelist"
android:layout_width="match_parent"
android:layout_height="342dp"
android:layout_marginTop="36dp" >
</ListView>
</LinearLayout>
</RelativeLayout>
package com.example.mcf;
import java.util.ArrayList;
import org.apache.http.NameValuePair;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.BasicResponseHandler;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSONObject;
import android.os.Bundle;
import android.os.StrictMode;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Base64;
import android.view.Menu;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.Toast;
@Override
public void onItemClick(AdapterView<?> arg0, View
arg1, int arg2,
long arg3) {
// TODO Auto-generated method stub
College data=list.get(arg2);
Intent intent=new
Intent(getApplicationContext(),CollegeDetails.class);
intent.putExtra("id", data.clgid.toString());
startActivity(intent);
}
});
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is
present.
getMenuInflater().inflate(R.menu.home, menu);
return true;
}
@SuppressLint("NewApi")
ArrayList<NameValuePair> n= new
ArrayList<NameValuePair>();
n.add(new
BasicNameValuePair("collegename",collegename));
httppost.setEntity(new UrlEncodedFormEntity(n));
ResponseHandler<String> res=new
BasicResponseHandler();
final String data = httpclient.execute(httppost, res);
int l1=0;
JSONArray jarray=new JSONArray(data);
l1=jarray.length();
if(l1==0)
{
Toast.makeText(getApplicationContext(), "No Such
Colleges", Toast.LENGTH_LONG).show();
}
else
{
String name="";
for(int i=0;i<l1;i++)
{
JSONObject
json_data=jarray.getJSONObject(i);
list.add(clg);
}
}
CollegeAdapter cad=new
CollegeAdapter(getApplicationContext(), list);
lv.setAdapter(cad);
}
catch(Exception e)
{
Toast.makeText(this, e.getMessage(),
Toast.LENGTH_SHORT).show();
}
}
@SuppressLint("NewApi") public void searchclg(View v)
{
search=(EditText) findViewById(R.id.searchtxt);
String collegename=search.getText().toString();
//Toast.makeText(this, text, Toast.LENGTH_SHORT).show();
bindProducts(collegename);
}
getcollege.php code
<?php
require_once("ConnectionClass.php");
$obj=new ConnectionClass();
$collegename=$_REQUEST['collegename'];
$qry="select * from college where clgname like '$collegename%'";
$data=$obj->GetTable($qry);
echo json_encode($data);
?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/an
droid"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#34b1f9"
android:paddingBottom="@dimen/activity_vertical_marg
in"
android:paddingLeft="@dimen/activity_horizontal_marg
in"
android:paddingRight="@dimen/activity_horizontal_mar
gin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".CollegeDetails" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="22dp"
android:orientation="vertical" >
<TextView
android:id="@+id/titletxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:textColor="#fff"
android:text="Medium Text"
android:textAppearance="?
android:attr/textAppearanceMedium" />
<ImageView
android:id="@+id/clgimg"
android:layout_width="300dp"
android:layout_height="300dp" />
<TextView
android:id="@+id/citytxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:textColor="#fff"
android:text="Small Text"
android:textAppearance="?
android:attr/textAppearanceSmall" />
<TextView
android:id="@+id/districttxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:textColor="#fff"
android:text="Small Text"
android:textAppearance="?
android:attr/textAppearanceSmall" />
<TextView
android:id="@+id/statetxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:textColor="#fff"
android:text="Small Text"
android:textAppearance="?
android:attr/textAppearanceSmall" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/phonetxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_margin="10dp"
android:textColor="#fff"
android:text="Small Text"
android:textAppearance="?
android:attr/textAppearanceSmall" />
<Button
android:id="@+id/callbtn"
style="?
android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:drawableLeft="@drawable/call" />
</LinearLayout>
<TextView
android:id="@+id/emailtxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:textColor="#fff"
android:text="Small Text"
android:textAppearance="?
android:attr/textAppearanceSmall" />
<Button
android:id="@+id/coursebtn"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:textColor="#fff"
android:background="@drawable/rounded_button"
android:text="Course Details" />
</LinearLayout>
</RelativeLayout>
package com.example.mcf;
import java.util.ArrayList;
import org.apache.http.NameValuePair;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.BasicResponseHandler;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSONObject;
import android.net.Uri;
import android.os.Bundle;
import android.os.StrictMode;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Base64;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
String numtext=phone.getText().toString();
Toast.makeText(getApplicationContext(),numtext,Toast.LENGTH_LONG).sh
ow();
Intent callint=new
Intent(Intent.ACTION_CALL);
callint.setData(Uri.parse("tel:"+numtext));
startActivity(callint);
}
});
cdetails=(Button) findViewById(R.id.coursebtn);
cdetails.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent intent=new
Intent(getApplicationContext(),CourseDetails.class);
intent.putExtra("clgid", id);
intent.putExtra("clgname", clgname);
//Toast.makeText(getApplicationContext(),
id, Toast.LENGTH_SHORT).show();
startActivity(intent);
}
});
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is
present.
getMenuInflater().inflate(R.menu.college_details, menu);
return true;
}
if(l1==0)
{
Toast.makeText(getApplicationContext(), "No data",
Toast.LENGTH_LONG).show();
}
else
{
for(int i=0;i<l1;i++)
{
JSONObject
json_data=jarray.getJSONObject(i);
String
encodedImage=json_data.getString("image");
//Toast.makeText(getApplicationContext(),
encodedImage, Toast.LENGTH_SHORT).show();
byte[] decodedString =
Base64.decode(encodedImage, Base64.DEFAULT);
Bitmap decodedByte =
BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);
title=(TextView) findViewById(R.id.titletxt);
city=(TextView) findViewById(R.id.citytxt);
district=(TextView) findViewById(R.id.districttxt);
state=(TextView) findViewById(R.id.statetxt);
phone=(TextView) findViewById(R.id.phonetxt);
email=(TextView) findViewById(R.id.emailtxt);
clgimg=(ImageView) findViewById(R.id.clgimg);
clgname=json_data.getString("clgname");
title.setText(clgname);
city.setText(json_data.getString("city"));
district.setText(json_data.getString("district"));
state.setText(json_data.getString("state"));
phone.setText(json_data.getString("phone"));
email.setText(json_data.getString("email"));
clgimg.setImageBitmap(decodedByte);
}
}
}
catch(Exception e)
{
Toast.makeText(getApplicationContext(),e.getMessage(),
Toast.LENGTH_LONG).show();
}
}
getcollegebyid.php
<?php
require_once("ConnectionClass.php");
$obj=new ConnectionClass();
$collegeid=$_REQUEST['clgid'];
$qry="select * from college where clgid = '$collegeid'";
$data=$obj->GetTable($qry);
foreach($data as $row)
{
$row['image']=base64_encode(file_get_contents("images/".
$row['image']));
//$row[']
//$row['Offer']=$disc;
$res[]=$row;
}
echo json_encode($res);
?>
SYSTEM TESTING
Unit testing
Integration testing
System testing
Validation testing
User acceptance testing
UNIT TESTING
Project aspect:
The front end design consists of various forms. They were tested for
data acceptance. Similarly, the back-end also tested for successful
acceptance and retrieval of data.
INTEGRATION TESTING
SYSTEM TESTING
VALIDATION TESTING
The user has to work with the system and check whether the project
meets his needs. In the validation checking the user works with the
beta version of the software.
Project aspect: User enters the appropriate data and results was checked
and validated.
White box testing is a set case design method that uses the control
structure of the procedural design to derive test cases. Using white box
testing methods, we can derive test cases that
SYSTEM MAINTENANCE
Corrective maintenance
Adaptive maintenance
Prefecture maintenance
Reverse engineering
Re engineering
SYSTEM IMPLEMENTATION
Implementation Methodology
Documentation
Experience
CHAPTER 6
SCOPE
CONCLUSION
CHAPTER 7
CONCLUSION
BIBLIOGRAPHY
CHAPTER 8
BIBLIOGRAPHY
3. Eclipse - http://www.eclipse.org/
4. Google http://www.android.com/
APPENDIX
CHAPTER 9