02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

Android APK File

Alan explores the APK file for mobile/air development.

Video Transcript

00:01All right, so the third part of this Android application
00:05bit is that I'm going to close this.
00:09Actually, no, we'll keep this guy open here.
00:12So I've shown how you can really easily
00:15create an Android application and push it to your device.
00:20And I've briefly gone over how to use the debugger.
00:25Now, I will say that the advanced debugger features
00:29are only available on the Macs.
00:31So you can get some simple trace statements going out
00:34and print statements when you are debugging.
00:36However, if you want the advanced features
00:39like the conditional breakpoints and exception breakpoints,
00:42you'll have to upgrade to the Macs version for that.
00:46So we have deploying on device, debugging on device.
00:52So now I want to briefly show how
00:55some really good tools available to you
00:57for manipulating your mobile properties.
01:00Because as we just saw before, if you
01:02remember when I first created the project,
01:04I had all the default settings.
01:06So the first thing to really keep in mind here
01:09is that I want to show you what I'll
01:11be referencing here in a second, is that we have the APK.
01:16For anyone who's not familiar, this
01:17is the actual executable that is running on the device.
01:23And we have, of course, the Swift
01:24that we've been generating with, and then
01:27the application descriptor file.
01:30So actually, these are the three minimal components
01:34that you'd need to build a mobile application.
01:40And I'll just briefly open up this descriptor file.
01:45And I've actually gone ahead and cleaned out
01:47a lot of the extra comments.
01:48By default, there's a whole lot of extra comments
01:51and extra data in here.
01:52I'll kind of briefly, perhaps, this
01:55is one from a different application.
01:56This is what it'll look like when you generate it
02:00from a brand new FTT project from scratch,
02:03or if you delete your descriptor file
02:06and have to create a new one.
02:08This is pulling, because this is how it is from the SDK.
02:11It has all these extra comments.
02:12And actually, at first, it's going
02:14to be kind of overwhelming, because there's a lot on here.
02:17There's a lot here to read, and it
02:18can be really, really confusing.
02:20However, all I've done is I've just
02:22taken this and chopped out all that additional stuff.
02:26And this is actually the gist of what
02:29you need for mobile applications, and specifically
02:33for an Android application.
02:35And it's pretty self-evident.
02:36We have the ID.
02:38And I'm not sure how much Chris got into this.
02:41But the application ID, this is pretty important to know,
02:47because this needs to be unique for your application,
02:51because this is actually how Android knows specifically
02:56the exact application.
02:58Because suppose I have two programs on an Android phone.
03:03One is My Supercool Camera, and then someone else
03:06makes an application called My Supercool Camera.
03:10You could actually have those both on your device,
03:13but their ID, their application ID, would be different.
03:16So that's why they suggest to use this reverse domain
03:21convention here.
03:22So like, for example, I'm using com.pyrofosher.sampleapp.
03:26And so this is actually how FTT and Android,
03:28this is how when they're communicating to each other,
03:30this is actually the string, the Viya that they use,
03:33to say, hey, uninstall com.pyrofosher.sampleapp,
03:38because they're not actually saying uninstall my application.
03:42Because there could be a duplicate application there
03:44with the same name.
03:46So we go file name, pretty evident.
03:49You can see our mobile Android.
03:52And the name of the application, this
03:54will be the name that appears, that's
03:56more physical to the user with the actual C. Version number,
04:01this is very important to know when
04:03you do release your application.
04:05Because if you do release a new update,
04:08and you want to push that to your users,
04:11to your customers, make sure that you
04:13have a way of incrementing your version numbers.
04:16Otherwise, your phone won't be able to distinguish the two.
04:22Initial window, is there some basic properties
04:24that some of the D and Chris have already gone over?
04:28So I won't spend too much on that.
04:31And also, Chris actually did touch on this,
04:33and I will say that this is actually very, very important
04:36too, is that you need to make sure you have the Android
04:39permission set, and this is necessary for debugging.
04:44So always make sure you have this set.
04:47All right.

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!