Professional Documents
Culture Documents
A
Major project Report
Submitted
In partial fulfillment
For the award of the Degree of
Bachelor of I. T. sem 6th
by
Candidate’s Declaration
Pet Care
Abstract
Table of Contents
Intent…………………………………………………………………………………...x
Pet Care……………………………………………………………………...……….xii
INTRODUCTION
Android are also used on game consoles, digital cameras, PCs and other
electronics.
Linux kernel:
The android uses the powerful Linux kernel and it supports wide range of
hardware drivers. The kernel is the heart of the operating system that
manages input and output requests from software. This provides basic
system functionalities like process management, memory management,
device management like camera, keypad, display etc the kernel handles
all the things. The Linux is really good at networking and it is not
necessary to interface it to the peripheral hardware. The kernel itself does
not interact directly with the user but rather interacts with the shell and
other programs as well as with the hard ware devices on the system.
Libraries:
The on top of a Linux kennel there is a set of libraries including open
source web browser such as webkit, library libc. These libraries are used
to play and record audio and video. The SQLite is a data base which is
useful for storage and sharing of application data. The SSL libraries are
responsible for internet security etc.
Android Runtime:
The android runtime provides a key component called Dalvik Virtual
Machine which is a kind of java virtual machine. It is specially designed
and optimized for android. The Dalvik VM is the process virtual machine
in the android operating system. It is a software that runs apps on android
devices.
XML in Android
In Android there are several xml files used for several different purposes.
Below we define each and every one.
1. Layout XML Files: Layout xml files are used to define the actual
UI(User interface) of our application. It holds all the
elements(views) or the tools that we want to use in our application.
Like the TextView’s, Button’s and other UI elements.
5. Drawable xml Files: These are those xml files that are used to
provide various graphics to the elements or views of application.
When we need to create a custom UI we use drawable xml files.
Suppose if we need to define a gradient color in the background
of Button or any custom shape for a view then we create a
Drawable xml file and set it in the background of View.
6. Color xml File (colors.xml): This file is used to define the color
codes that we used in our app. We simply define the color’s in this
file and used them in our app from this file.
Intent
Navigation is the must for any apps as smart phones or tablets provide
rich set of data in multiple pages and hence navigation is essentially
required.
Implicit Intent
The amount of application that can be done using implicit intents are
many. Some of the examples are as follows:
• Call
• Dialpad
• Contact
• Browser
• Call Log
• Gallery
• Camera
Example code :
1. findViewById(R.id.btnGallery).setOnClickListener(new
View.OnClickListener() {
2.
3. //perform Gallery open action
4. @Override
5. public void onClick(View v) {
6.
7. Intent i = new Intent();
8. i.setAction(Intent.ACTION_VIEW);
9. i.setData(Uri.parse("content://media/external/images/media/"));
10. startActivity(i);
11. }
12. });
Explicit Intent
1. // Currently in MainActivity
2.
3. Intent intent = new Intent(this, LoginActivity.class);
4. startActivity(intent);
Pet Care
Main Activity.xml
android:layout_marginTop="20dp"
android:src="@drawable/bili" />
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="26sp"
android:textColor="#FFFFFF"
android:text="Cat"
android:layout_gravity="center_horizontal"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10sp"
android:layout_gravity="center">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_marginRight="40sp">
<ImageView
android:layout_width="wrap_content"
android:layout_marginLeft="20dp"
android:layout_height="wrap_content"
android:layout_marginTop="40dp"
android:src="@drawable/bird" />
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="26sp"
android:textColor="#FFFFFF"
android:text="Birds"
android:layout_gravity="center_horizontal"
/>
</LinearLayout>
<LinearLayout
android:layout_marginLeft="40sp"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:src="@drawable/fish" />
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="26sp"
android:textColor="#FFFFFF"
android:text="Fish"
android:layout_gravity="center_horizontal"
/>
</LinearLayout>
</LinearLayout>
</ScrollView>
MainActivity.java
package com.example.aryan.petcare;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Toast;
@Override
public void onBackPressed() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage("Do You Want To Exit??");
builder.setCancelable(true);
builder.setNegativeButton("No", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.cancel();
}
});
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
finish();
}
});
AlertDialog alertDialog=builder.create();
alertDialog.show();
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
Activity_ Splashscreen
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/nyc"
android:background="#69b4e2"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Pet Care"
android:textStyle="bold"
android:textColor="#a19999"
android:background="#69b4e2"
android:textSize="60sp" />
<ProgressBar
android:id="@+id/prograss_bar"
android:layout_width="300dp"
android:layout_height="18dp"
android:layout_gravity="center"
android:layout_marginLeft="2dp"
Industrial Project ReportPage xvii
Pet Care
android:layout_marginRight="2dp"
android:layout_marginTop="20dp"
android:background="#000000"
android:progressTint="#03ffe6"
/>
</LinearLayout>
Activity_activityonedog.xml
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.aryan.petcare.Activityonedog">
<TextView
android:layout_width="wrap_content"
android:text=" The smartest dog breeds might surprise you. These
top ten canine Einsteins all share two qualities: the ability to quickly learn
new commands, and the obedience to perform them 95% of the time or
better. While not every dog fits on this list, recent research, such as that
by Dr. Brian Hare, shows that most dogs are much smarter than we ever
knew.
For quick reference, here are the top 10 smartest dog breeds as reported in
Dr. Stanley Coren’s groundbreaking book ‘The Intelligence of Dogs.’
Some of these dog breeds are the greatest guard dogs, working dogs,
therapy dogs, and police dogs.
Border collie
Poodle
German shepherd
Golden retriever
Doberman pinscher
Shetland sheepdog
Labrador retriever
Papillon
Rottweiler
Australian cattle dog
Let’s meet these masterminds of the dog world!
There’s a reason that people are devoted to this breed! These beautiful
dogs are a unique crossbreed of blue merle shepherds imported from
England and the native Australian dingo. High energy and hard-working,
these smart dogs thrive in an active home doing intensive sports like
agility, rally obedience, herding trials, and flyball.
9. Rottweiler
Rottweiler Top 10 Smartest Dog Breeds
ROTTWEILER (FLICKR/OVER Z RAIN)
Ancient Roman cattle herders, cart pullers, and guardians, rottweilers are
renowned for gentleness with family and friends, and strength and
bravery in defending them. Thorough training and socialization is an
absolute must for puppies to mature into solid canine citizens.
8. Papillon
papillon top 10 smartest dog breeds
The papillon is named for its graceful feathered ears. Royal portraiture
shows small spaniels resembling the papillon as far back as the 16th
century! This toy breed is active, companionable, and highly trainable—
the smartest of the toy dog breeds.
7. Labrador Retriever
Labrador Retriever - Top 10 Smartest Dog Breeds
LOTTE (FLICKR/ANDREAS)
The most popular dog breed in the U.S., the Labrador retriever is named
for the cold waters off Newfoundland where they were first bred. A short
thick coat, webbed feet, and a heavy tail help this intelligent dog swim
long distances in cold water.
In addition to their hunting prowess, Labs are popular favorites for canine
water rescue, therapy work, and assistance dog training. Labs excel in the
canine sport of dock jumping.
6. Shetland Sheepdog
Shetland Sheepdog - Smartest Dog Breeds
LUNA (FLICKR/LOOWGREN)
The Shetland sheepdog may look just like a miniature collie, but they
started out as a local variant of the Icelandic sheepdog found in the
Shetland Islands. These small dogs were then bred to rough collies to
create this unique breed. Playful and energetic, the sheltie is equally at
home working on the farm or in the ‘burbs, showing off in agility, flyball,
and obedience.
5. Doberman Pinscher
doberman-pinscher-smartest-dog-breed
DOBERMAN (FLICKR/JUANEDC)
and make wonderful family dogs that love to play and are extremely
loyal.
4. Golden Retriever
golden-retriever-smartest-dog-breeds
SAMMY (FLICKR/THOMAS TEUBERT)
Originally hailing from Scotland, this popular dog breed was started in
1865 from a lone yellow pup in a litter of black wavy-coated retrievers,
crossbred with a local water spaniel by Lord Tweedmouth of Guisachan.
This gorgeous, friendly dog still excels in retrieving, as well as agility and
obedience, and as service dogs. But they’re favorite job is being the
family pet.
3. German Shepherd
german-shepherd-smartest-dog-breed
GERMAN SHEPHERDS (FLICKR/DAMIAN SYNNOTT)
As Germany modernized and the need for herding dogs declined, von
Stephanitz worked with police and dog clubs to develop a set of
protection and obedience tests known as Schutzhund.
2. Poodle
poodle-smartest-dog-breeds
POODLE (FLICKR/ZOE KAHANA)
More than just a foofoo haircut, poodles consistently land on the list of
smartest dog breeds. This intelligent dog was originally bred in Germany
for bird hunting and water retrieving.
1. Border Collie
Border Collie - Smartest Dog Breeds
BORDER COLLIE (FLICKR/EMILY WAUGH)
</LinearLayout>
</ScrollView>
Activity_activitythree.xml:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.aryan.petcare.Activityonedog">
<TextView
android:layout_width="wrap_content"
android:text="1. Cockatiels
Of all the surveys we received, the bird that rated No. 1 was the cockatiel,
with 23 percent of the votes. This bird was a favorite with both beginning
bird owners and experienced birdkeepers who still could not resist their
charms.
Cathy and Sandy Giancarlo agree with the assessment that cockatiels are
very affectionate pets. Although they also own a lovebird, a budgie, a
crimson rosella, a red lory, a rosy Bourke’s parakeet, Gouldian finches
and a canary, they chose a cockatiel as the best pet bird. “Aladdin likes to
be scratched behind her head and wants to stay with me the whole time
she is out of her aviary,” stated Cathy.
bird is the fact that they are a relatively inexpensive and easy species to
maintain. “My cockatiel is not expensive to care for because the cage is
not huge, his toys are small, and he does not destroy them, either,” wrote
Therese Heise of Illinois about her cockatiel Mr. Beeker.
There are two subspecies of African grey parrot: the timneh African grey
and the Congo African grey (pictured above).
Ricky Lowrimore of Texas loves the way his African grey is both
affectionate and independent. “Irma can astound me sometimes by
answering my questions, then other times she can be like a baby and
wants her way. But, I love her best because she knows when I’m sad and
she will come to me and cuddle.”
Another benefit of grey ownership is the size of the bird. “It isn’t too
large for a bird, yet it is a great size to handle,” wrote Beverly A.
Remington of New York.
Another thing potential African grey owners need to keep in mind is the
cost of the bird and its cage. However, this expense is not indicative of
what the bird will cost over time. As Aditi Czarnomski of Minnesota, the
proud owner of a grey named Jasmine, put it, “The initial investment in a
bird and their supplies can be pricey, but after that the expense is
minimal. I spend more on my dog per month than on Jasmine. Toys can
add up in expense and so can high-quality pellets, but that goes along
with the territory.”
3. Budgerigars
Budgerigars, also known as budgies or parakeets, took home 8 percent of
the total vote, placing them third out of the top 10 birds. The fans of these
birds remarked on their playfulness, their affectionate nature and that they
were easy to maintain and cost much less than other birds.
On the practical side, many voters mentioned their small size, and the
benefits that accompany that, as one of the major advantages of the
species. “Their size fits into most any home. Their noise level is low, they
do not damage furniture and their toys are not destroyed as fast,” wrote
Sue Dial of Michigan, who owns budgie Gina.
However, although owners may think that their budgies take up very little
space, their pets frequently believe differently. As Californian Ifsha
Rahman, owner of budgie Junior, stated, “Space requirements are not too
much: a large cage, ladder and a play pen — although my budgie thinks
he owns the place and walks over to dance in front of a full-length
mirror.”
Budgies are also loved because of their charm and talking ability. Dial
wrote that they are “good talkers, affectionate and energetic,” while Sarah
Stern of Florida remarked that, “Budgies are very easy to care for and
they make great company — they love to show off when they play.”
4. Cockatoos
Cockatoos also took 8 percent of the total votes. The species that got the
most votes within the cockatoo category was the umbrella cockatoo, with
38 percent.
cockatoo are just a few examples of the qualities owners love about their
pets. “Joey is the nicest bird I have ever seen. She is gentle, loving and
extremely intelligent. She talks but doesn’t have a large vocabulary yet.
She knows three tricks — play catch, play basketball and roller skates —
and she also knows verbal commands: go to sleep; be quiet; go to your
cage.”
Umbrella cockatoos are one of the larger birds, and umbrella cockatoo
owners reaffirmed that taking care of their fair feathered friends comes
with the territory. Bethke wrote, “My cockatoos have the largest Prevue-
Hendrix cage made to share. They also have many homemade perches
and T-stands. They are expensive — I think most of my grocery bill goes
to them not — including pellets — and they just love destroying those
expensive toys. They don’t really take any more time than a young child
would.”
5. Conures
Conures received 7 percent of the total vote. Among the conures, green-
cheeked conures were the favored bird with 25 percent of the vote.
“Green cheeks are really great, especially for the first-time bird owner
who wants a little more interaction than is usually possible with a
cockatiel. Ninety-nine percent are naturally gentle, usually quiet —
except for alarm calls — and can speak a few words. They are also very
loyal. They aren’t extremely messy and they don’t destroy their toys,”
wrote Michigan resident Rae Owen, owner of Cheeky, a green cheek.
Another reader agreed with the belief that green cheeks are the best: “I
think the best pet is my green cheek because she is the most affectionate,
lovable, sweet and smart bird ever. You can teach her anything and she
picks it up immediately. In the past two months she has learned 12 tricks,
and she got them down in less than 15 minutes each. She loves to snuggle
under my bathrobe at night and she follows me wherever I go around the
house,” stated Rose Adler of Massachusetts, owner of green cheek
Dixie."
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textStyle="bold"/>
</LinearLayout>
</ScrollView>