Mad Report
Mad Report
Mad Report
The successful completion of mini project would be incomplete without the mention of the
people who made it possible and whose constant guidance crowned our effort with success.
We take this opportunity to express our sincere gratitude to our Management K S Institute of
Technology, Bengaluru, for providing all the resources required for the mini project.
We would express our gratitude to Dr. K.V.A. Balaji, C.E.O. K.S. Group of Institutions,
Bengaluru, for facilitating us to complete mini project.
We would like to extend our gratitude to Dr. Dilip Kumar K, Principal/Director, K.S.
Institute of Technology, Bengaluru, for his encouragement and providing all facilities for the
accomplishment of this project.
We whole heartedly thank project guides, Mr. Harshavardhan J R Associate Professor and
Mrs. Pallavi K N Assistant Professor, K.S. Institute of Technology, Bengaluru, for their
support and guidance.
Finally, we would like to thank all the teaching and non-teaching staff of the college for their
co-operation. Moreover we thank all my family and friends for their invaluable support and
cooperation.
KAVITHA R MANISHA G N
(1KS20CS045) (1KS20CS053)
KAVYA R MONIKA N
(1KS20CS046) (1KS20CS057)
ABSTRACT
Android is open source code mobile phone operating system that comes out by Google in
November 2007. Its appearance has broken the traditional closed mobile phone operating
system.
Anyone can modify the mobile phone operating system as well as function according to
personal preference, which is also the most attractive merit of Android. Swipe news in this
article is application software based on Google Android.
Based on the Android technology, using the Java programming language tools lead to design
and coding of Swipe news. The new design mainly realizes core functions including main
news interface, Bookmarks, menus, settings, news Websites and news search.
This app has merits of high performance, simple operation, and run independently on the
Android mobile devices. At the same time, the news app can also browse many websites in
mobile phones.
TABLE OF CONTENTS
1. INTRODUCTION 1
1.1 Introduction to Android Development
1.2 Build developing environment of android
2. SYSTEM SPECIFICATION 2
2.1 Hardware requirements
2.2 Software requirements
3. DESIGN 3-6
3.1 Design principle of android application
3.2 Function and Structure design of android system
3.3 Requirement Analysis of system
3.4 System Design
4. SOURCE CODE 7-14
4.1 AndroidManifest.xml
4.2 AddMedicineActivity.java
4.3 ReminderActivity.java
4.4 MedicineDataSource.java
4.5 MonthlyReportActivity.java
4.6 MedicineApp.java
4.7 DayViewCheckBox.java
5.SNAPSHOTS 15-17
6.CONCLUSION 18-19
6.1 Scope for future development
7.REFERENCES 20
TABLE OF FIGURES
1 Fig 5.1
15
2 Fig 5.2
3 Fig 5.3
16
4 Fig 5.4
5 Fig 5.5
17
6 Fig 5.6
MEDICINE REMAINDER APP
Chapter 1
INTRODUCTION
Android is open source code mobile phone operating system that comes out by Google.
Online Radio in this project is application software based on Google Android. Music is one
of the best ways to relieve pressure in stressful modern society life. The purpose of this
project is to develop a radio player which can play the mainstream file format. To browse and
query the channels as well as operation of playing can be realised. Meanwhile, this software
can play, pause and select radio channels with latest button and next button according to sets
requirement as well as set up song.
The application of android need to run based on Android environment. The following is the
configuration requirement and installation steps of Android development environment:
Input SDK tools path in the SDK location: D: \ android \ software\ android SDK–
Windows and click OK.
Chapter 2
SYSTEM SPECIFICATION
Chapter 3
DESIGN
3.1 Design principle of Android Application
Twice the result with half the effort will get if an overall study of the principles done before
the design and follow them in the operation. The principle of software design mainly includes
the following points:
Reliability
The reliability of the software design must be determined. The reliability of the software
system refers to the ability to avoid fault occurred in the process of system running, as well as
the ability to remedy troubles once the fault occurs.
Reusability
Look for commonness of similar codes, and come out new method abstractly and reasonably.
Pay attention to the generic design.
Understandability
The understandability of software not only require clear and read able document, but the
simplified structure of software itself, which requires the designer possess keen insight and
creativity, and know well about the design objects.
Simple program
To keep the program simple and clear, good programmers can use simple program to solve
complex problems.
Testability
Testability means that the created system has a proper data collection to conduct a
comprehensive test of the entire system.
The Open-Closed Principal
Module is extensible but cannot be modified. That is to say, extension is open to the existing
code in order to adapt to the new requirements.
This system adopts the modularized program design, and system function is correspondingly
divided into function modules, the main modules include:
The feasibility analysis: This section verified that it is feasible to add music player on the
Android system from the aspects of economic, technical and social feasibility.
Economic feasibility: To design Android mobile phone music player as long as a computer
has the Android development and the application development of Android is free. In addition,
mobile phone radio music player is basic needs for public. And a lot of research is eliminated,
thus saved the spending. Therefore, the whole process of development doesn’t need to spend
any money that is economic feasibility.
Technical feasibility: To design a radio music player which meets the basic requirements, a
deep understand of JAVA language, the Android system architecture, application of
framework and other technical knowledge are needed.
Social Feasibility: With the rapid development of the mobile phone market, all kinds of
news resources are widely circulated on the Internet. These resources seem ordinary, but have
gradually become an indispensable part of people life, which derived the development of all
kinds of mobile phone player. But a lot of news apps devoted to fancy appearance, strong
function causing a lot of wasted resources to the user's mobile phone and bringing a lot of
inconvenience to the user as multi tasking operation is needed. Some functions are useless to
ordinary people.
Saturation Overview:
This section describes requirements of the system based on basic control functions of types,
and system setup function of the app according to research results of the project demand.
According to the research results of project demand, the basic requirements of project system
and its function structure are presented.
The App Starting module of the player in the project is introduced, as well as the Android
engineering program structure, etc.
Any App Starting needs AndroidManifest.XML file to start. Any new project content will
automatically generate an AndroidManifest.XML file. Configuration files are the core of the
whole program, which contains the Android SDK version, and the default Activity in
program running. The systems will automatically looking for a logo in Android Manifest to
react the corresponding operation when any component of the program triggers events. To
define the system, the first thing is launching the Activity: Android Activity.
There are properties such as action and category in < intent - filter >. Most of these are the
default values of the system. Setting the action and category realize the switch between
different Activities. When any components of the program is about to use, declaration must
be in the AndroidManifest.XML files.
The basic structure content of Android project includes: the SRC(source code), gen (constant
that Android system automatically generates), res (resource file), and the layout of file and
pictures in the main storage program interface.
The main home interface design. Convenience and practical should be fully considered in the
design of the main interface. Every Android interface is a visual interface, which has its
unique layout configuration files. We can configure various layout and resources files
according to the requirements, such as images, text and color reference, which can form
different visual interface and glaring effect. Interface design works with SWIPE ONLY.
There are many corresponding news available for the first time login entering the program;
users need to just swipe appropriately as shown below. Function design is to just swipe with
many usable Gestures:
Chapter 4
SOURCE CODE
4.1 AndroidManifest.xml
4.2 AddMedicineActivity.java
package com.gautam.medicinetime.addmedicine;
import android.os.PersistableBundle;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import androidx.appcompat.widget.Toolbar;
import com.gautam.medicinetime.Injection;
import com.gautam.medicinetime.R;
import com.gautam.medicinetime.utils.ActivityUtils;
public class AddMedicineActivity extends AppCompatActivity{
}
// // Create the presenter
AddMedicinePresenter = new AddMedicinePresenter(medId,
Injection.provideMedicineRepository(getApplicationContext()),addMedicineFragment,
shouldLoadDataFromRepo);
}
public void setToolbarTitle(String medicineName) {
if (medicineName == null)
{
mActionBar.setTitle(getString(R.string.new_medicine));
} else {
mActionBar.setTitle(medicineName);
}
}
@Override
public void onSaveInstanceState(Bundle outState, PersistableBundle outPersistentState) {
outState.putBoolean(SHOULD_LOAD_DATA_FROM_REPO_KEY,
mAddMedicinePresenter.isDataMissing());
super.onSaveInstanceState(outState, outPersistentState);
}
@Override
public boolean onSupportNavigateUp()
{
onBackPressed();
return true;
}
}
4.3 ReminderActivity.java
package com.gautam.medicinetime.alarm;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.view.MenuItem;
import com.gautam.medicinetime.Injection;
import com.gautam.medicinetime.R;
import com.gautam.medicinetime.utils.ActivityUtils;
import butterknife.BindView;
import butterknife.ButterKnife;
public class ReminderActivity extends AppCompatActivity
{
@BindView(R.id.toolbar)
Toolbar toolbar;
ReminderPresenter mReminderPresenter;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_reminder_actvity);
ButterKnife.bind(this);
setSupportActionBar(toolbar);
ActionBar actionBar = getSupportActionBar();
if (actionBar != null)
{
actionBar.setDisplayHomeAsUpEnabled(true);
}
Intent intent = getIntent();
if (!intent.hasExtra(ReminderFragment.EXTRA_ID))
{
finish();
return;
}
long id = intent.getLongExtra(ReminderFragment.EXTRA_ID, 0);
ReminderFragment reminderFragment = (ReminderFragment)
getSupportFragmentManager().findFragmentById(R.id.contentFr
ame);
if (reminderFragment == null) {
reminderFragment = ReminderFragment.newInstance(id);
ActivityUtils.addFragmentToActivity(getSupportFragmentManager(), reminderFragment,
R.id.contentFrame);
}
//Create MedicinePresenter
mReminderPresenter = new
ReminderPresenter(Injection.provideMedicineRepository(ReminderActivity.this),
reminderFragment);
}
@Override
public boolean onOptionsItemSelected(MenuItemitem) {
if (item.getItemId() == android.R.id.home)
{
if (mReminderPresenter != null)
20{
mReminderPresenter.finishActivity();
}
}
return super.onOptionsItemSelected(item);
}
@Override
4.4 MedicineDataSource.java
package com.medicinetime.data.source;
import java.util.List;
public interface MedicineDataSource {
interface LoadMedicineCallbacks {
void onMedicineLoaded(List<MedicineAlarm>medicineAlarmList);
void onDataNotAvailable();
}
interface GetTaskCallback
{
void onTaskLoaded(MedicineAlarm medicineAlarm);
void onDataNotAvailable();
}
interface LoadHistoryCallbacks
{
void onHistoryLoaded(List<History> historyList);
void onDataNotAvailable();
}
void getMedicineHistory(LoadHistoryCallbacksloadHistoryCallbacks);
void getMedicineAlarmById(long id, GetTaskCallback callback);
void saveMedicine(MedicineAlarm medicineAlarm, Pills pills);
void getMedicineListByDay(int day, LoadMedicineCallbackscallbacks);
boolean medicineExits(String pillName);
List<Long> tempIds();
void deleteAlarm(long alarmId);
List<MedicineAlarm> getMedicineByPillName(String pillName);
List<MedicineAlarm> getAllAlarms(String pillName);
Pills getPillsByName(String pillName);
long savePills(Pills pills);
void saveToHistory(History history);
}
4.5 MonthlyReportActivity.java
package com.medicinetime.report;
import android.os.Bundle;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.view.MenuItem;
import com.gautam.medicinetime.Injection;
import com.gautam.medicinetime.R;
import com.gautam.medicinetime.utils.ActivityUtils;
import butterknife.BindView;
import butterknife.ButterKnife;
public class MonthlyReportActivity extends AppCompatActivity{
private static final String CURRENT_FILTERING_TYPE="current_filtering_type";
@BindView(R.id.toolbar)
Toolbar toolbar;
private MonthlyReportPresenter presenter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_monthly_report);
ButterKnife.bind(this);
setSupportActionBar(toolbar);
ActionBar actionBar = getSupportActionBar();
if (actionBar != null)
{
actionBar.setHomeAsUpIndicator(R.drawable.ic_clear);
actionBar.setDisplayHomeAsUpEnabled(true);
}
//Create Fragment
MonthlyReportFragment monthlyReportFragment =
(MonthlyReportFragment) getSupportFragmentManager().
findFragmentById(R.id.contentFrame);
if (monthlyReportFragment == null) {
monthlyReportFragment = MonthlyReportFragment.newInstance();
ActivityUtils.addFragmentToActivity(getSupportFragmentManager(),
monthlyReportFragment, R.id.contentFrame);
}
//Create TaskPresenter
presenter = new
MonthlyReportPresenter(Injection.provideMedicineRepository(MonthlyReportActivity.this),
monthlyReportFragment);
//Load previous saved Instance
if (savedInstanceState != null)
{
4.6:MedicineApp.java
package com.gautam.medicinetime;
import android.app.Application;
import android.content.Context; /*** Created by gautamon12/07/17. */
public class MedicineApp extends Application {
private static Context mInstance;
@Override
public void onCreate() { super.onCreate(); if (mInstance ==null)
{
mInstance = getApplicationContext();
}
}
public static Context getInstance() {
return mInstance;
}
}
4.7 DayViewCheckBox.java
package com.gautam.medicinetime.views;
import android.content.Context;
import android.graphics.Color;
import androidx.core.content.ContextCompat;
import androidx.appcompat.widget.AppCompatCheckBox;
import android.util.AttributeSet;
import com.medicinetime.R;
public class DayViewCheckBox extends AppCompatCheckBox{
private final Context context;
public DayViewCheckBox(Context context) {
super(context);
this.context = context;
}
public DayViewCheckBox(Context context, AttributeSet attrs) {
super(context, attrs);
this.context = context;
}
@Override
public void setChecked(boolean t){
if(t) {
this.setTextColor(Color.WHITE);
} else {
this.setTextColor(ContextCompat.getColor(getContext(), R.color.colorPrimary));
}
super.setChecked(t);
}
}
Chapter 5
SNAP SHOTS
Chapter 6
CONCLUSION
In this project work, an attempt has been made to develop a News or information based
Application. We develop this project that helps the people and make them aware so that they
can know any news. To establish various methodologies. To develop this project we have
faced many problem but we hardly tried to develop this project. Our supervisor helps us by
giving his valuable opinion, decision and time. Through the development of Swipe news app
on Android platform, we get a clear understanding of overall process of the system. The core
part of the News app is mainly composed of main interface, Categories , Grasping the
development of the Overall world News has had the preliminary scale small features. Now-a-
days we live in age of Information Communication and Technology .
We can’t think a single moment without technology. From morning to night, we need the
help of the technology. This is the revolutionary time of computer technology. Most of the
works depends on web application. For this reason, anytime, anywhere, anyone can access a
website at low cost and we can find our expectable and most update information from
website. At present information is one the most valuable resource of the current world. We
have developed our project so that we can aware the people. This is the combination
management of Java language in the open source mobile platform based on Linux system
configuration file. The system realized the radio music player programming. By adopting
ANDROID STUDIO 3.1.2 + Java language as technical support of this system, with the
Android plug-in tools, and combination of Latest Android SDK version lead to the
comprehensive and smoothly design and development of the mobile terminal.
When you have more than one medication, it can be difficult to stay on schedule. In fact,
researchers have found that nearly 60 percent of seniors misuse their medications.
Medication reminders serve as a good way to stay on track and up hold an appropriate
schedule. Ensuring that you or your loved one is properly taking their medications can help
avoid unnecessary risk and serious illness.
If you start to notice the signs that you or your loved one needs help managing their
medications and prescriptions, it could be time to bringing a professional to help keep you on
track.
Home health aides can remind you to take medications at certain times of the day or create a
schedule for you to stay on.
If you have trouble getting to the pharmacy to pick up a prescription, then a home health aide
can provide transportation to help you do errands or get you to your appointments. You can
even get your medication delivered to your home.
Nurses can review your medications with you and discuss possible side effects of each
medication may have. A nurse can even go with you to doctor’s appointments and oversee
the care you are receiving and assist in guiding you through it.
Chapter 7
REFERENCES
http://developer.android.com
http://www.youtube.com
http://www.tutorialforandroid.com