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

Our first Android App in FDT

Alan shows us how to start up a new mobile Android application using FDT 5 and tests his work on his mobile phone. In less then 4 minutes Alan shows us how to create an application and get it onto your mobile device.. let me say this again in less then 4 minutes...(and he wasn't rushing :)

Video Transcript

00:00All right, so everything is still good.
00:02So here we are.
00:05So the first part is, this is going
00:06to be a live coding demo here for everybody.
00:10So first thing I'm going to do is I'm going to show just how
00:13quickly and easy it is just to simply get to the device.
00:19So I'm going to do a new FTT project here.
00:24And let's just call it Simple Android.
00:33All right, I'm going to choose Mobile as 3.
00:36And I'm going to skip these additional options.
00:38I'll go back and talk about what these options mean later on.
00:41But again, I'm just showing the straight to device,
00:44how we can get an instant feedback.
00:47Yeah, I'll finish.
00:49Our project is created.
00:52And I'm actually going to, let's go ahead and write
00:57a little bit of code here.
01:00I'm going to, just so we can actually
01:02see something gone here, both on the desktop
01:04but actually on the device as well.
01:07It's .stage, it's do its add event listener.
01:26All right, so here we go.
01:27I just made a very simple application here.
01:29And all we can do is that on every enter frame,
01:33we're just going to build some random circles
01:35and pop them on the stage.
01:37So I would always suggest the first thing to do
01:40is when you're ready to, when you're
01:42curious about testing on a device,
01:45is to actually test it out using the Adobe Debug Launcher.
01:49And I'll show you how to do that.
01:50So what we're going to do is that I'm just
01:52going to click on my main file here, right here.
01:54And let's just stick with Run As.
01:57And then you see here I have the option
01:58for mobile application.
02:02So what pops up here is this Run Configuration window.
02:05And it's already got the presets all available for me.
02:09You can see Google Android.
02:10I got my mobile preset for Droid.
02:13Actually, let's go ahead and choose an Access 1, Apply.
02:18And I'm going to run this guy.
02:22So this is what my application is doing.
02:24Very basic, simple, we're adding circles on the screen.
02:27So now I want to see how it is on my device.
02:31Now, you guys have to take my word for here.
02:33But I've just plugged in my Android phone.
02:38And I haven't done anything special
02:39other than set the mobile device to debug mode, which
02:44is a little bit beyond the scope.
02:45But it's usually just in the settings.
02:48And you go to Applications, and then you manage,
02:50and you say Enable USB Debugging.
02:53And I've plugged into my computer here.
02:56So now, all I have to do here to test it on my device here,
03:00I'll just go to Run As, Mobile Device.
03:03Actually, I'm going to do something a little different.
03:05I'm going to go to my Run Configurations here.
03:07And so this is the guy before.
03:09Remember, before we were doing the ADL.
03:13This time, I'm going to simply choose On Device, Apply, Run.
03:18And as we read the console here, you'll
03:20see a bunch of debug information coming up.
03:24And you'll see that you can actually
03:25see what FTT is doing right now.
03:28A lot of stuff you can generally ignore.
03:30But we've made it really transparent
03:32about what's going on here.
03:33And so you can see it's actually launched successful.
03:36So it's actually running on my device right now.
03:38I don't have a camera here to show you,
03:40so you have to take my word for it.
03:42However, you actually just saw that it actually
03:44handled everything for us.
03:46So it handled my packaging.
03:48It generated some dummy keys for us.
03:52It actually uninstalled any previously installed applications
03:57that have the same ID.
03:59I'll get back into that on the next part here.
04:02Unsolved successful.
04:04And then it reinstalls this application and then launches
04:08it.
04:09So it's that easy.
04:11That's the first part there of how easy it is just
04:14to simply build an application and have
04:17it run on your Android device as quick as possible.

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!