0% found this document useful (0 votes)
53 views

Prepared By, Nichetech © Nichetech Com. Sol. Pvt. LTD

The document discusses the structure and components of an Android application project. It describes the different folders such as SRC, GEN, assets, and res, and what they contain. It also covers the Android activity lifecycle and methods like onCreate, onStart, onResume.

Uploaded by

Vishal Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Prepared By, Nichetech © Nichetech Com. Sol. Pvt. LTD

The document discusses the structure and components of an Android application project. It describes the different folders such as SRC, GEN, assets, and res, and what they contain. It also covers the Android activity lifecycle and methods like onCreate, onStart, onResume.

Uploaded by

Vishal Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Prepared By,

NicheTech
NicheTech Com. Sol. Pvt. Ltd.
http://www.nichetechsolutions.com/

SRC :- Folder contain the .java extension files that means


you can write you application code inside this file.

GOOGLE API 4.0:- Contain the file named android.jar


which contains all class library needed for running the
android application.

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

GEN:- Contains the R.java file, a compiler-generated file


that references all the resources found in your project.

Assets:- contains all the assets used by your


application, such as HTML, text files, databases, etc

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

res :- This folder contains all the resources used in your


application.

This is the manifest file for your Android application.


Here you specify the permissions needed by your
application, as well as other features (such as intentfilters, receivers, etc.).
Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

MAIN.XML:-

The @string in this case refers to the strings.xml file


located in the res/values folder. Hence, @string/hello
refers to the hello string defined in the strings.xml file,
which is FirstBasicAndroid, MainActivity!:

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

R.JAVA

R.JAVA File using eclipse automatically generate the content,


you are not suppose to modify the content of R.JAVA file

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

The Activity base class defines a series of events that


governs the life cycle of an activity. The Activity
class defines the following events: ( Check out the next
slides).

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

onCreate() Called when the activity is first created


onStart() Called when the activity becomes visible to the user
onResume() Called when the activity starts interacting with the
user
onPause() Called when the current activity is being paused and
the previous activity is
being resumed
onStop() Called when the activity is no longer visible to the user
onDestroy() Called before the activity is destroyed by the
system (either manually or by
the system to conserve memory)
onRestart() Called when the activity has been stopped and is
restarting again
Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

In android site, user or web developer can also apply the


designing .

if you apply the above designing theme then, your activity


will appear as dialog box.

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

If you are interested to hide the title of activity if required


WHAT YOU SUPPOSE TO DO?

import the library import android.view.window;


As well as import android.util.Log;

Use the requestWindowFeature() method and pass it the


Window.FEATURE_NO_TITLE constant, like this:

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

Your Activity title


is hide now !

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

Write the code inside the main yourprojectname.java file

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

Out Put

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

Prepared By, NicheTech (C) NicheTech Com. Sol. Pvt. Ltd

You might also like