so now let's take a closer look at the AndroidManifest file, again this is a vitally important file,
because it exposes information about your app to the android system.
so it's important that you have everything setup correctly in here. so i've just created a blank project, i haven't done anything with this.
now i'm just gonna double click to open that manifest file.
now one of the things about the way this is setup here in Eclipse is you can either go through this kind of visual editor to set all of these things
which can be helpful when you first starting out, or you can just directly edit the xml.
now you'll notice how simple this xml file looks here in comparison to some of the screens which have just tons and tons of options.
so generally speaking once you get the hang of things, most people probably work directly in manifest.xml view that we're just editing xml.
now i will say one thing about the android developer tools is well they are very good but there are certain places where things are not as good as they could be.
so things like code hinting is broken in a lot of places, particularly when we're dealing with xml.
so this is where it can be helpful to go to some of these kinda visual screens. let's just walk through this.
so in the manifest we defined the package which you already did when you create your project
we have the version code which is the internal version code, and then we have the string which is actually presented to the user
and we can see when we come down here, another thing we're gonna do from this screen later on is,
this is where we actually export and sign our apk file. which we can upload to the market.
so let's go through here, and we'll go to the application tag and these all correspond to areas of the actual xml view.
so manifest here is that first tab, application is right here. and we can also see it uses the SDK, min SDK version equal to 10.
again because we only dealing with gingerbread here, in this course, but again just wanna remind you ,
you should set it as lower as possible when you're actually building your application.
so we'll go to application here, and here we can set a whole host of different things, so here we have the label for our application
and this is what we'll actually be displayed in the luncher on the android device for your application,
if you wanna use a specific theme which will get to in a future movie, here we reference what icon we wanna use for our application.
and all applications by default include a default icon for you to use, you're obviously wanna customize it with your own icon when you're building your application.
we can set again all of these different things, i'm not gonna go over all of these different properties, by it can be useful here
let's say for things like permissions, because if i click this, we now have a nice pull down menu with all of the options,
the code hinting in the xml side, doesn't always work the way it was intended, so usually i'll go back and forth, and use a combination of things.
now you can see under "Application Nodes" here's where our activity is, so each activity in our application has to be defined in the xml.
so here we can see our main activity which is the one that first lunch when the user opens the application is here,
if we want to add other activities to our application which we usually will want to do. we also have to define them here in the manifest file.
so if we go through we have a permissions area, and this is where, if we want to request certain permissions that we need in order for our application to work,
again this is what the user sees when they go to install your application on the market,
you're warned when you install an application. which permissions this application is asking for.
instrumentation we're not gonna worry about that in this coarse. but generally speaking,
it's a very simple file with a very scary set of screens that you have to walkthrough.
so again for my self i'm only working here in the xml view and for the most part that's what we're gonna do in this coarse,
but again, the manifest file is just a file that describes the capabilities, the permissions that are needed
and things of that nature, to the android system. so it's basically a descriptor of your application.
AndroidApp.blog.ir