Вы находитесь на странице: 1из 31

SYNOPSIS

In the modern life style each and every individuals are keen about their beauty and
health.The people are use the natural based health tips for their well being. In the recent times the
people are mostly doing yoga for their good health. There are large numbers of websites provides
health and beauty tips. This project has been aimed to create a mobile based android application
which enables the user to access the details of the beauty and health tips. It has the details of
various asana and their benefits. It also consists of the beauty tips which give the beauty tips for
the whole body. The user has been wasted his / her time and the money to search for gym trainer.

Information of individual’s beauty training is stored in database. New user of Xtreme beauty
tips can insert his details in web portal

This system has the following modules as its components

 Home Module

 Yoga Module

 Beauty Module.

 Home Remedy Module.

1
1.

1.2 OVERVIEW OF THE PROJECT

This android application project provides the health and beauty tips which enables the
users to access the desired content they are searching for. It is an offline based application which
enables the users to view the content of the application without the need of internet.
Home Module

This is the home page of the application which displace the options which enables the
users to select the desired options.

Yoga Module

It is module where all the yoga related details which provide the benefits of various
yogaasanas and the way of doing the asana.

Beauty Module

It is application which provides the beauty tips like face pack and the process of
preparing the each and every beauty pack process of preparing the beauty tips.

Home Remedy Module

It is the part of this application which enables which enables the user to view the home
remedy for various health problems for the betterment.

2
2. SYSTEM STUDY

2.1 EXISTING SYSTEM

In the current situation each and each person’s for There are large numbers of websites
provides health and beauty tips. But the contents provided by each site vary.
2.1.1 DRAWBACKS OF EXISTING SYSTEM

 Incorrect information’s

 The persons are affected due to false data.

 Improper yoga cause health problem.

 Time Waste

3
2.2 PROPOSED SYSTEM

This project has been aimed to create a mobile based android application which enables
the user to access the details of the beauty and health tips. It has the details of various asana and
their benefits. It also consists of the beauty tips which give the beauty tips for the whole body.

2.2.1 ADVANTAGES

 Persons are prevented from incorrect information’s

 Helps to cure faster.

 Time will not be wasted.

 Easy Access

4
2.3 SYSTEM SPECIFICATION
 2.3.1 HARDWARE SPECIFICATION
Processor : Any Quad Core Processor.
RAM : 128 MB.
Storage : 2 GB.
Device : Android Device
SIM : Any Service Provider
OS : Gingerbread & Above
Signal Type : 2G & Above
Proximity Sensor : Enabled

2.3.2 SOFTWARE SPECIFICATION

Front end : Android


Back end : SQLITE
Designing Tools : Dream Viewer, Eclipse
Scripting Language : JavaScript, Java, XML

5
2.4 ABOUT THE SOFTWARE
Android

Android is a software stack for mobile devices that includes an operating system,
middleware and key applications. Google Inc. purchased the initial developer of the software,
Android Inc., in 2005.

Android's mobile operating system is based on the Linux kernel. Google and other
members of the Open Handset Alliance collaborated on Android's development and release.

The Android Open Source Project (AOSP) is tasked with the maintenance and further
development of Android. The Android operating system is the world's best-selling Smartphone
platform.

The Android SDK provides the tools and APIs necessary to begin developing
applications Android platform using the Java programming language. Android has a large
community of developers writing applications ("apps") that extend the functionality of the
devices. There are currently over 250,000 apps available for Android.

Android Architecture

Android includes a set of C/C++ libraries used by various components of the Android system.
These capabilities are exposed to developers through the Android application framework. Some
of the core libraries are listed below:

 System C library - a BSD-derived implementation of the standard C system library (libc),


tuned for embedded Linux-based devices
 Media Libraries - based on PacketVideo's OpenCORE; the libraries support playback and
recording of many popular audio and video formats, as well as static image files,
including MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG

6
 Surface Manager - manages access to the display subsystem and seamlessly composites
2D and 3D graphic layers from multiple applications

 Lib
We
bCo
re -
a

modern web browser engine which powers both the Android browser and an embeddable
web view
 SGL - the underlying 2D graphics engine.
 3D libraries - an implementation based on OpenGL ES 1.0 APIs; the libraries use either
hardware 3D acceleration (where available) or the included, highly optimized 3D
software rasterizer.
 FreeType - bitmap and vector font rendering
 SQLite - a powerful and lightweight relational database engine available to all
applications.

Android Runtime

Android includes a set of core libraries that provides most of the functionality available in
the core libraries of the Java programming language.

7
Every Android application runs in its own process, with its own instance of the Dalvik virtual
machine. Dalvik has been written so that a device can run multiple VMs efficiently. The Dalvik
VM executes files in the Dalvik Executable (.dex) format which is optimized for minimal
memory footprint. The VM is register-based, and runs classes compiled by a Java language
compiler that have been transformed into the .dex format by the included "dx" tool.

The Dalvik VM relies on the Linux kernel for underlying functionality such as threading
and low-level memory management.

Android Operation System

Android is an operating system based on Linux with a Java programming interface. It


provides tools, e.g. a compiler, debugger and a device emulator as well as its own Java Virtual
machine (Dalvik Virtual Machine - DVM). Android is created by the Open Handset Alliance
which is lead by Google.

Android uses a special virtual machine, e.g. the Dalvik Virtual Machine. Dalvik uses
special bytecode. Therefore you cannot run standard Java bytecode on Android. Android
provides a tool "dx" which allows to convert Java Class files into "dex" (Dalvik Executable)
files. Android applications are packed into an .apk (Android Package) file by the program "aapt"
(Android Asset Packaging Tool) To simplify development Google provides the Android
Development Tools (ADT) for Eclipse . The ADT performs automatically the conversion from
class to dex files and creates the apk during deployment.

Android supports 2-D and 3-D graphics using the OpenGL libraries and supports data
storage in a SQLite database.

Every Android applications runs in its own process and under its own userid which is
generated automatically by the Android system during deployment. Therefore the application is
isolated from other running applications and a misbehaving application cannot easily harm other
Android applications.

8
Important Android components

An Android application consists out of the following parts:

 Activity - Represents the presentation layer of an Android application, e.g. a screen


which the user sees. An Android application can have several activities and it can be
switched between them during runtime of the application.
 Views - The User interface of an Activities is build with widgets classes which inherent
from "android.view.View". The layout of the views is managed by
"android.view.ViewGroups".

 Services - perform background tasks without providing an UI. They can notify the user
via the notification framework in Android.

 Content Provider - provides data to applications, via a content provider your application
can share data with other applications. Android contains a SQLite DB which can serve as
data provider

 Intents are asynchronous messages which allow the application to request functionality
from other services or activities. An application can call directly a service or activity
(explicit intent) or asked the Android system for registered services and applications for
an intent (implicit intents). For example the application could ask via an intent for a
contact application. Application register themself to an intent via an IntentFilter. Intents
are a powerful concept as they allow to create loosely coupled applications.

 Broadcast Receiver - receives system messages and implicit intents, can be used to
react to changed conditions in the system. An application can register as a broadcast
receiver for certain events and can be started if such an event occurs.

 A Java Virtual Machine (JVM) enables a set of computer software programs and data
structures to use a virtual machine model for the execution of other computer programs
and scripts. The model used by a JVM accepts a form of computer intermediate language
commonly referred to as Java bytecode. This language conceptually represents the

9
instruction set of a stack-oriented, capability architecture. Sun Microsystems states there
are over 4.5 billion JVM-enabled devices
 A JVM can also execute bytecode compiled from programming languages other than
Java. For example, Ada source code can be compiled to execute on a JVM. JVMs can
also be released by other companies besides Oracle (the developer of Java) — JVMs
using the "Java" trademark may be developed by other companies as long as they adhere
to the JVM specification published by Oracle and to related contractual obligations.

 Java was conceived with the concept of WORA: "write once, run anywhere". This is
done using the Java Virtual Machine. The JVM is the environment in which java
programs execute. It is software that is implemented on non-virtual hardware and on
standard operating systems.

 JVM is a crucial component of the Java platform, and because JVMs are available for
many hardware and software platforms, Java can be both middleware and a platform in
its own right, hence the trademark write once, run anywhere. The use of the same
bytecode for all platforms allows Java to be described as "compile once, run anywhere",
as opposed to "write once, compile anywhere", which describes cross-platform compiled
languages. A JVM also enables such features as automated exception handling, which
provides "root-cause" debugging information for every software error (exception),
independent of the source code.

Installing the SDK

Step 1: Preparing Your Development Computer

Before getting started with the Android SDK, take a moment to confirm that your development
computer meets the System Requirements. In particular, you might need to install the JDK, if
you don't have it already.

If you will be developing in Eclipse with the Android Development Tools (ADT) Plugin - the
recommended path if you are new to Android—make sure that you have a suitable version of

10
Eclipse installed on your computer as described in the System Requirements document. If you
need to install Eclipse, you can download it from this location:

The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is
recommended.

Use the Eclipse update manager to install all available plugins for the Android Development
Tools (ADT) from the URL https://dl-ssl.google.com/android/eclipse/ .

Configuration

In Eclipse open the Preferences dialog via Windows -> Preferences. Select Android and
maintain the installation path of the Android SDK.

Step 2: Downloading the SDK Starter Package

The SDK starter package is not a full development environment—it includes only the
core SDK Tools, which you can use to download the rest of the SDK components (such as the
latest Android platform).

If you haven't already, get the latest version of the SDK starter package from the SDK
download page.

11
If you downloaded a .zip or .tgz package (instead of the SDK installer), unpack it to a safe
location on your machine. By default, the SDK files are unpacked into a directory named android-
sdk-<machine-platform>.

Step 3: Installing the ADT Plugin for Eclipse

Android offers a custom plugin for the Eclipse IDE, called Android Development Tools
(ADT), that is designed to give you a powerful, integrated environment in which to build
Android applications. It extends the capabilites of Eclipse to let you quickly set up new Android
projects, create an application UI, debug your applications using the Android SDK tools, and
even export signed (or unsigned) APKs in order to distribute your application. In general,
developing in Eclipse with ADT is a highly recommended approach and is the fastest way to get
started with Android.

12
If you'd like to use ADT for developing Android applications, install it now. Read
Installing the ADT Plugin for step-by-step installation instructions, then return here to continue
the last step in setting up your Android SDK.

If you prefer to work in a different IDE, you do not need to install Eclipse or ADT.
Instead, you can directly use the SDK tools to build and debug your application. The
Introduction to Android application development outlines the major steps that you need to
complete when developing in Eclipse or other IDEs.

Step 4: Adding Platforms and Other Components

The last step in setting up your SDK is using the Android SDK and AVD Manager (a tool
included in the SDK starter package) to download essential SDK components into your
development environment.

The SDK uses a modular structure that separates the major parts of the SDK—Android
platform versions, add-ons, tools, samples, and documentation—into a set of separately
installable components.

13
The SDK starter package, which you've already downloaded, includes only a single
component: the latest version of the SDK Tools. To develop an Android application, you also
need to download at least one Android platform and the associated platform tools. You can add
other components and platforms as well, which is highly recommended.

If you used the Windows installer, when you complete the installation wizard, it will
launch the Android SDK and AVD Manager with a default set of platforms and other
components selected for you to install. Simply click Install to accept the recommended set of
components and install them. You can then skip to Step 5, but we recommend you first read the
section about the Available Components to better understand the components available from the
Android SDK and AVD Manager.

You can launch the Android SDK and AVD Manager in one of the following ways:

 From within Eclipse, select Window > Android SDK and AVD Manager.
 On Windows, double-click the SDK Manager.exe file at the root of the Android SDK
directory.
 On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android
SDK, then execute:

The Android Repository offers these types of components:

 SDK Tools — Contains tools for debugging and testing your application and other utility
tools. These tools are installed with the Android SDK starter package and receive
periodic updates. You can access these tools in the <sdk>/tools/ directory of your SDK. To
learn more about them, see SDK Tools in the developer guide.
 SDK Platform-tools — Contains platform-dependent tools for developing and debugging
your application. These tools support the latest features of the Android platform and are
typically updated only when a new platform becomes available. You can access these
tools in the <sdk>/platform-tools/ directory. To learn more about them, see Platform Tools in
the developer guide.

14
3. SYSTEM DESIGN

15
4. SYSTEM TESTING
Testing is a series of different tests that whose primary purpose is to fully exercise the
computer based system. Although each test has a different purpose, all work should verify that
all system element have been properly integrated and performed allocated function. Testing is
the process of checking whether the developed system works according to the actual requirement
and objectives of the system.
The philosophy behind testing is to find the errors. A good test is one that has a high
probability of finding an undiscovered error. A successful test is one that uncovers the
undiscovered error. Test cases are devised with this purpose in mind. A test case is a set of data
that the system will process as an input. However the data are created with the intent of
determining whether the system will process them correctly without any errors to produce the
required output.
4.1 TESTING METHODOLOGIES
 Unit testing
 Integration testing
 Validation testing
 Output testing
 User acceptance testing
Unit Testing
All modules were tested and individually as soon as they were completed and were
checked for their correct functionality.
Integration Testing
The entire project was split into small program; each of this single programs gives a
frame as an output. These programs were tested individually; at last all these programs where
combined together by creating another program where all these constructors were used. It give a
lot of problem by not functioning is an integrated manner. The user interface testing is important
since the user has to declare that the arrangements made in frames are convenient and it is
satisfied. when the frames where given for the test, the end user gave suggestion. Based on their
suggestions the frames where modified and put into practice.

16
Validation Testing:
At the culmination of the black box testing software is completely assembled as a
package. Interfacing errors have been uncovered and corrected and a final series of test i.e.,
Validation succeeds when the software function in a manner that can be reasonablyaccepted by
the customer.
Output Testing
After performing the validation testing the next step is output testing of the proposed
system. Since the system cannot be useful if it does not produce the required output. Asking the
user about the format in which the system is required tests the output displayed or generated by
the system under consideration. Here the output format is considered in two ways. one is on
screen and another one is printed format. The output format on the screen is found to be
corrected as the format was designed in the system phase according to the user needs. And for
the hardcopy the output comes according to the specifications requested by the user.
User Acceptance System
An acceptance test as the objective of selling the user on validity and reliability of the
system. It verifies that the procedures operate to system specification and mat the integrity of
vital is maintained.
Performance Testing
This project is a application based project, and the modules are interdependent with the
other modules, so the testing cannot be done module by module. So the unit testing is not
possible in the case of this driver. So this system is checked only with their performance to check
their quality.

17
5. IMPLEMENTATION

Implementation is used here to mean the process of converting a new or revised system
design into operational one; conversion is one aspect of implementation. The other aspect is post
implementation review and software and maintenance
There are three types of implementation:
a. Implementation of a computer system
b. Implementation of new computer system
c. Implementation of a modified application
a. Implementation of the old computer system
It’s should be replace a manual system the problems encountered are converting files,
training users creating accurate files, and verifying printouts for integrity.
b. Implementation of new computer system

It’s should be replace an existing one this is usually a difficult conversion. If not properly
planned there can be many problems. Some large computer systems have taken even years to
convert.
c. Implementation of a modified application

It’s should be replace an existing one using the same computer. This type of conversion is
relativity easy to handle, provided there are no major changes to the file.
System Implementation is the stage of the project where the theoretical design is turned
into a working system. At this stage the main work load, the greatest upheaval and the major
impact on the existing system shifts to the user department. If the implementation is not planned
and controlled it can cause chaos and confusion.
It includes all those activities that take place to convert from the old system to the new
one. The new system may be totally new, replacing an existing manual or automated system or
it may be a major modification to an existing system. Proper implementation is essential to
provide a reliable system to meet the organization requirements. Successful implementation may
not guarantee improvement in the organization using the new system, but improper installation
will prevent it.

18
The process of putting the developed system in actual use is called system
implementation. This includes all those activities that take place to convert from the old system
to the new system. The system can be implemented only after thorough testing is done and if it
is found to be working according to the specifications. The system personnel check the
feasibility of the system.
The most crucial stage is achieving a new successful system and giving confidence on the
new system for the user that it will work efficiently and effectively. It involves careful planning,
investigation of the current system and its constraints on implementation, design of methods to
achieve the changeover. The more complex the system being implemented, the more involved
will be the system analysis and the design effort required just for implementation.
The system implementation has three main aspects.
 Education and training

 System testing and

 Changeover.

The implementation stage involves following tasks.


 Careful planning

 Investigation of system and constraints

 Design of methods to achieve the changeover

 Training of the staff in the changeover phase

 Evaluation of the changeover method

The method of implementation and the time scale to be adopted are found out initially.
Next the system is tested properly and the same time users are trained in the new procedures.

IMPLEMENTATION PROCEDURES
Implementation of software refers to the final installation of the package in its real
environment, to the satisfaction of the intended users and the operation of the system. In many
organizations someone who will not be operating it, will commission the software development

19
project. The people unaware that the software is meant to make their job easier. In the initial
stage, they doubt about the software but we have to ensure that the resistance does not build up
as one has to make sure that

 The active user must be aware of the benefits of using the system
 Their confidence in the software is built up
 Proper guidance is imparted to the user so that he is comfortable in using the
application.
Before going ahead and viewing the system, the user must know that for viewing the
result, the server program should be running in the server. If the server object is not up running
on the server, the actual processes won’t take place.
USER TRAINING
To achieve the objectives and benefits expected from computer based system, it is
essential for the people who will be involved to be confident of their role in the new system. As
systems become more complex, the need for education and training is more and more important.
Education is complementary to training. It brings life to formal training by explaining the
background to the resources for them. Education involves creating the right atmosphere and
motivating user staff. Education sections should encourage participation from all staff with
protection for individuals for group criticism. Education should start will before any
development work to enable users to maintain or to regain the ability to participate in the
development of their system.
Education information can make training more interesting and more understandable. The
aim should always be to make individual feel that they can still make all important contributions,
to explain how they participate in making system changes, and to show that the computer and
computer staff do not operate in isolation, but are of the same organization.
OPERATIONAL DOCUMENTATION

Once the implementation plan is decided, it is essential that the user of the system is
made familiar and comfortable with the environment. Education involves right atmosphere &
motivating the user. A documentation providing the whole operations of the system is being
developed. The system is developed in such a way that the user can work with it in a well
consistent way. The system is developed user friendly so that the user can work the system from

20
the tips given in the application itself. Useful tips and guidance is given inside the application
itself to help the user. Users have to be made aware that what can be achieved with the new
system and how it increases the performance of the system. The user of the system should be
given a general idea of the system before he uses the system.

21
6. CONCLUSION AND FUTURE ENHANCEMENT

6.1. CONCLUSION

To conclude, this project is very flexible and user-friendly. I hope you have enjoyed
learning about how to stay beauty and fit. There are many ways to exercise along with many
healthy foods you can eat to help stay fit. To create the level of enthusiasm among the users this
app has a practical approach. Daily progress report with the live status of the user helps to
maintain the progress.

The progress report tracker helps to keep a record of from what user started with a certain
weight.

This project is developed such that it can be executed in any system. Security is also
maintained. This system is protected from any unauthorized person to access the system. The
software was tested thus providing maximum load to the server and was found working fast and
effective.

The proposed system is developed keeping in mind all the demerits of existing system. It
is developed to eliminate all the demerits and adding some extra features. The system has been
designed and developed flexibly according to the current requirement of the user. As the
information requirements may still increase in the near future. Further such development can be
attempted.

22
6. 2.FUTURE ENHANCEMENT

Several areas are to be developed in future, so the application must be upgraded for the
new ones required and it is possible to the modifications according to new requirements and
specifications. The modular approach and the programming techniques incorporated during the
development of system will be of great help for future enhancements.

The future work of this application is to raise your awareness, as a beauty professional in his
personal Life, as to how people may select beauty exercise from the many activity that are out
there. If we know what people are looking for from a beauty app then we know what we are
competing with from a gym or online trainers point of view.
In Future we will Import:-
1. Progress Bar – which will show the progress of user.
2. Navigation Drawer – for better performance.
3. New Stages – new exercise stages will be added.
4. Calendar – which will show on which date the exercise is done by the user.

This project work is planned to cover all the stepwise process that takes place in a
software development environment. The basis of the project is well analyzed and prepared, so
that any changes in the future can be updated to the project

23
7. BIBLIOGRAPHY
7.1 RESEARCH PAPER

[1] Brown, B. (2009). Beyond Downadup: Security expert worries about smart phone, TinyURL
threats: Malware writers just waiting for financial incentive to strike, F-Secure exec warns.
Retrieved from http://business.highbeam.com/409220/article-1G1-214585913/beyond-
downadup-security-expert-worries-smartphone

[2] Bose, A. (2008). Propagation, detection and containment of mobile malware.(Doctoral


dissertation, University of Michigan).Retrieved from www.phoenix.edu/apololibrary.

[3] Xie, L., Zhang, X., Chaugule, A., Jaeger, T., & Zhu, S. (2009). Designing system-level
defenses against cellphone malware. Retrieved from www.cse.psu.edu

[4] Bhattacharya, D. (2008) Leadership styles and information security in small businesses: An
empirical investigation (Doctoral dissertation, University of Phoenix). Retrieved from
www.phoenix.edu/apololibrary

[5] Mulliner, C., & Miller, C. (2009). Injecting SMS messages into smartphones for security
analysis. Proceedings of the 3rd USENIX Workshop on Offensive Technologies Montreal,
Canada. Retrieved from www.usenix.org
7.2 BOOKS
1. Android Application Development
2. .PHP Complete Reference
7.3 WEB SITES
http://www.sourcefordgde.com
http://www.jfree.org/
http://www.networkcomputing.com/
http://www.tutorialpoint.com

24
APPENDICES
A1.SOURCE CODE
package com.example.devicepropector;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.webkit.WebView;

public class MainActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

WebView myWebView = (WebView) findViewById(R.id.webView1);


myWebView.loadUrl("file:///android_asset/index.html");
myWebView.getSettings().setJavaScriptEnabled(true);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

}
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"

25
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >

<WebView
android:id="@+id/webView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />

</RelativeLayout>

<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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity2" >
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/textView2"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/textView2"

26
android:layout_centerHorizontal="true"
android:textSize="25dp" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Android Call Dialler "
android:textColor="#ff7aff24"
android:textSize="35dp" />
<EditText
android:id="@+id/editText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView"
android:layout_alignParentEnd="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:ems="10"
android:focusable="true"
android:hint="Enter Username"
android:textColorHighlight="#ff7eff15"
android:textColorHint="#ffff25e6" >
<requestFocus />
</EditText>
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/editText"
android:layout_alignParentStart="true"

27
android:layout_below="@+id/editText2"
android:text="Attempts Left:"
android:textSize="25dp" />
<EditText
android:id="@+id/editText2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/editText"
android:layout_alignLeft="@+id/textView2"
android:layout_alignParentStart="true"
android:layout_below="@+id/editText"
android:layout_marginTop="19dp"
android:ems="10"
android:hint="Enter Password"
android:inputType="textPassword"
android:textColorHint="#ffff299f" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView2"
android:layout_centerHorizontal="true"
android:layout_marginTop="24dp"
android:text="Login" />
</RelativeLayout>
package com.example.phonecaller;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.content.Intent;
import android.view.View;

28
import android.view.View.OnClickListener;
import android.widget.Button;
public class Home extends Activity {
Button about,events,contact;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
about=(Button)findViewById(R.id.about);
events=(Button)findViewById(R.id.events);
contact=(Button)findViewById(R.id.contact);
about.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent nxt=new Intent(Home.this,MainActivity.class);
startActivity(nxt);
}
});
events.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent nxt=new Intent(Home.this,About.class);
startActivity(nxt);
}
});
contact.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {

29
// TODO Auto-generated method stub
Intent nxt=new Intent(Home.this,Help.class);
startActivity(nxt);
}
});
}
@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;
}

30
A2.SCREENSHOTS

31

Вам также может понравиться