1 00:00:00,000 --> 00:00:06,500 so now let's take a closer look at the AndroidManifest file, again this is a vitally important file, 2 00:00:06,500 --> 00:00:12,000 because it exposes information about your app to the android system. 3 00:00:12,000 --> 00:00:19,000 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. 4 00:00:19,000 --> 00:00:21,400 now i'm just gonna double click to open that manifest file. 5 00:00:21,400 --> 00:00:31,000 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 6 00:00:31,000 --> 00:00:35,800 which can be helpful when you first starting out, or you can just directly edit the xml. 7 00:00:35,800 --> 00:00:45,000 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. 8 00:00:45,000 --> 00:00:54,700 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. 9 00:00:54,700 --> 00:01:04,200 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. 10 00:01:04,200 --> 00:01:08,600 so things like code hinting is broken in a lot of places, particularly when we're dealing with xml. 11 00:01:08,600 --> 00:01:15,000 so this is where it can be helpful to go to some of these kinda visual screens. let's just walk through this. 12 00:01:15,000 --> 00:01:20,400 so in the manifest we defined the package which you already did when you create your project 13 00:01:20,400 --> 00:01:30,000 we have the version code which is the internal version code, and then we have the string which is actually presented to the user 14 00:01:30,000 --> 00:01:35,000 and we can see when we come down here, another thing we're gonna do from this screen later on is, 15 00:01:35,000 --> 00:01:41,000 this is where we actually export and sign our apk file. which we can upload to the market. 16 00:01:41,000 --> 00:01:48,800 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. 17 00:01:49,000 --> 00:01:58,300 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. 18 00:01:58,300 --> 00:02:04,500 again because we only dealing with gingerbread here, in this course, but again just wanna remind you , 19 00:02:04,500 --> 00:02:08,000 you should set it as lower as possible when you're actually building your application. 20 00:02:08,300 --> 00:02:16,000 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 21 00:02:16,000 --> 00:02:22,000 and this is what we'll actually be displayed in the luncher on the android device for your application, 22 00:02:22,000 --> 00:02:30,300 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. 23 00:02:31,000 --> 00:02:41,000 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. 24 00:02:41,000 --> 00:02:47,000 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 25 00:02:47,000 --> 00:02:54,000 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, 26 00:02:54,000 --> 00:03:04,000 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. 27 00:03:04,000 --> 00:03:13,900 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. 28 00:03:14,000 --> 00:03:22,000 so here we can see our main activity which is the one that first lunch when the user opens the application is here, 29 00:03:22,000 --> 00:03:31,500 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. 30 00:03:32,000 --> 00:03:42,000 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, 31 00:03:42,000 --> 00:03:46,400 again this is what the user sees when they go to install your application on the market, 32 00:03:46,400 --> 00:03:52,400 you're warned when you install an application. which permissions this application is asking for. 33 00:03:53,000 --> 00:03:58,000 instrumentation we're not gonna worry about that in this coarse. but generally speaking, 34 00:03:58,000 --> 00:04:05,300 it's a very simple file with a very scary set of screens that you have to walkthrough. 35 00:04:05,300 --> 00:04:13,000 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, 36 00:04:13,000 --> 00:04:19,900 but again, the manifest file is just a file that describes the capabilities, the permissions that are needed 37 00:04:19,900 --> 00:04:26,000 and things of that nature, to the android system. so it's basically a descriptor of your application. 38 00:04:26,000 --> 00:04:27,000 AndroidApp.blog.ir