2. ii
TECHNOMANTRA
By 5th
Year M.sc IT (2015 – 2016)
Prepared By:
No. Student Name Div Roll no.
1 Pradip D. Jinjala A 5020
2 Romil D. Modi B 5203
3 Avatarsinh G. Vaghela B 5168
Date of Submission: 19 December, 2015
SUBMITTED TO:
K.S School of Business Management,
M.sc in (Computer Application & Information Technology)
(Gujarat University)
4. 1
1. Project Profile
Project Name: TECHNOMANTRA App.
Group Id: 15.
Group Member: 3.
We develop Technomantra app for students. By this app they can register with their
android mobile and participate in singles event. For this they has not meet to any
volunteer of event it’s reduce some work of volunteer also and students can easily get
access of technomatra app and participate in the event and get information about the
event and also see the gallery of the event and they can also watch the schedule of the
event.this app is very helpful to technomatra’s volunteer and for our collage who
organise this event.
Tools & Technology Used
• JDK (Java Development Kit)
• Android SDK(By Google)
Front End Tools
• Eclipse
• Adobe Photoshop
Back End Tools
• SQL Server Management Studio – 2012
• Microsoft Visual Studio 2013 for Web Service
5. 2
2. System Required Specification (SRS)
Scope of Project
• JDK (Java Development Kit)
• Android SDK(By Google)
Users
• Students
Features and Requirement
• Student Can View Event Detail.
• Student Can Register Them In Technomantra.
• Student Can Participate In Any Event.
• Student Can Also View Schedule of the All Event.
6. 3
3. Database Design
3.1 E-R Diagram
Visitor Can View
EventRegistration &
Login
Student Can View &
Participate
userid
password
degree
name
collage_name
phone
event_name
userid
id
7. 4
3.2 Data Dictionary
Event_Participate
Name Data Type
Id int
user_name varchar(100)
event_name varchar(100)
Student_Info
Name Data Type
Regid int
Name varchar(50)
Email varchar(100)
Password varchar(30)
Phone varchar(11)
Collage varchar(100)
Degree varchar(50)
Year varchar(50)
City varchar(50)
33. 30
spn_degree.setAdapter(DegreeList);
spn_degree.setOnItemSelectedListener(this);
ArrayAdapter<String> AcadamicYear = new ArrayAdapter<String>(this,
android.R.layout.simple_spinner_dropdown_item, Year);
spn_year.setAdapter(AcadamicYear);
spn_year.setOnItemSelectedListener(this);
getViews();
btn_registration.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
getAllStrings();
Log.i("", name);
Log.i("", degree);
Log.i("", year);
Log.i("", college);
Log.i("", city);
if (name.equals("")) {
edt_name.requestFocus();
edt_name.setText("");
edt_name.setHintTextColor(Color.parseColor("#122345"));
edt_name.setHint("Field can not be empty");
} else if (email.equals("")) {
edt_email.requestFocus();
edt_email.setText("");
edt_email.setHintTextColor(Color.parseColor("#122345"));
edt_email.setHint("Field can not be empty");
} else if (password.equals("")) {
edt_password.requestFocus();
edt_password.setText("");
edt_password.setHintTextColor(Color.parseColor("#122345"));
edt_password.setHint("Field can not be empty");
} else if (confirm_password.equals("")) {
edt_confirm.requestFocus();
edt_confirm.setText("");
edt_confirm.setHintTextColor(Color.parseColor("#122345"));
edt_confirm.setHint("Field can not be empty");
} else if (mobile.equals("")) {
edt_mobile.requestFocus();
edt_mobile.setText("");
edt_mobile.setHintTextColor(Color.parseColor("#122345"));
edt_mobile.setHint("Field can not be empty");
} else if (college.equals("")) {
34. 31
acv_college.requestFocus();
acv_college.setText("");
acv_college.setHintTextColor(Color.parseColor("#122345"));
acv_college.setHint("Field can not be empty");
} else if (!password.equals(confirm_password)) {
Toast.makeText(getApplicationContext(),
"Password does not match",
Toast.LENGTH_SHORT)
.show();
} else if (degree.equals("")) {
spn_degree.requestFocus();
} else if (year.equals("")) {
Toast.makeText(getApplicationContext(),
"Please select Your Acadamic Year",
Toast.LENGTH_SHORT).show();
} else if (city.equals("")) {
acv_city.requestFocus();
acv_city.setText("");
acv_city.setHintTextColor(Color.parseColor("#122345"));
acv_city.setHint("Field can not be empty");
} else {
Log.i("", "Cll the class");
new GetRegister().execute();
}
}
private void getAllStrings() {
// TODO Auto-generated method stub
name = edt_name.getText().toString().trim();
name = name.replaceAll(" ", "%20");
email = edt_email.getText().toString().trim();
password = edt_password.getText().toString().trim();
confirm_password = edt_confirm.getText().toString().trim();
mobile = edt_mobile.getText().toString().trim();
college = acv_college.getText().toString().trim();
college = college.replaceAll(" ", "%20");
degree = spn_degree.getSelectedItem().toString().trim();
degree = degree.replaceAll(" ", "%20");
year = spn_year.getSelectedItem().toString().trim();
year = year.replaceAll(" ", "%20");
city = acv_city.getText().toString().trim();
}
});
}
private void getViews() {
57. 54
final Boolean text = globalVariable.getIsLogin();
btn_kabad_se_jugaad.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
if (text) {
new CheckEventParticipant(kabad_event).execute();
}
}
});
btn_post_ur_thoughts.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
if (text) {
new CheckEventParticipant(post_event).execute();
}
}
});
btn_camera.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
if (text) {
new CheckEventParticipant(camera_event).execute();
}
}
});
btn_satrangi_it.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
if (text) {
new CheckEventParticipant(satrangi_event).execute();
}
}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
62. 59
}
CodewarActivity.java
public class CodewarActivity extends Activity {
WebView web_codewar;
Button btn_codewar_participate;
public static final String eventName = "codewar";
String htmlText = "<html><body style="text-align:justify"> %s </body></Html>";
String detail = "Beat the master mind.<br>"
+ "Rounds:<br>"
+ "1 First stage is proving exploration of your knowledge, In which
you can provide suitable output according to the code.<br>"
+ "2 Second stage is the develop round, In which you can design and
develop the code and become the big boss of the code cracker<br>."
+ "Special Opportunities:<br>"
+ "This event is open for all inter colleges and also including the
students of (c/c++) training institutes.<br>"
+ "Note:<br>"
+ "Participant must report at least 15 min before staring of the
event.<br>"
+ "Id card must compulsory for every participant.<br>"
+ "Participant should perform the task individually.<br>"
+ "The final decision is given by judges.<br>"
+ "College Level Entry Fee-80<br>";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_codewar);
ActionBar bar = getActionBar();
bar.setBackgroundDrawable(new
ColorDrawable(Color.parseColor("#00B9F5")));
bar.setTitle(Html.fromHtml("<font color='#ffffff'>Technomantra</font>"));
btn_codewar_participate = (Button)
findViewById(R.id.btn_codewar_participate);
web_codewar = (WebView) findViewById(R.id.webview_codewar);
web_codewar.loadData(String.format(htmlText, detail), "text/html",
"utf-8");
GlobalVariable globalVariable = (GlobalVariable) getApplicationContext();
if (globalVariable.getCheckCodewar().equals("1")) {
// globalVariable.setCheckCodewar("0");
btn_codewar_participate.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
63. 60
// TODO Auto-generated method stub
GlobalVariable globalVariable = (GlobalVariable)
getApplicationContext();
if (globalVariable.getIsLogin()) {
new EventParticipant().execute();
} else {
btn_codewar_participate.setEnabled(false);
btn_codewar_participate.setText("participated");
btn_codewar_participate.setBackgroundColor(0xFFFF0000);
}
}
});
} else {
btn_codewar_participate.setEnabled(false);
btn_codewar_participate.setText("participated");
btn_codewar_participate.setBackgroundColor(0xFFFF0000);
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.codewar, menu);
return true;
}
public class EventParticipant extends AsyncTask<Void, Void, Void> {
ProgressDialog pDialog;
HttpURLConnection urlConnection;
StringBuffer response;
@Override
protected void onPreExecute() {
// TODO Auto-generated method stub
super.onPreExecute();
pDialog = new ProgressDialog(CodewarActivity.this);
pDialog.setMessage("Wait ...");
pDialog.setCancelable(false);
pDialog.show();
}
@Override
protected Void doInBackground(Void... params) {
// TODO Auto-generated method stub
Log.i("", "doInBackground");
try {
GlobalVariable globalVariable = (GlobalVariable)
getApplicationContext();