Debugging our Adobe Air application directly on our Android Device
Last we left off we saw how to create an Android application and even see how we can upload it right into our device. In this video we will see how can we debug our application live and get the debugging information right into our editor.
Video Transcript
00:00Last we left off, we saw how to create an Android application and even see how we could upload it, package it, and put it on our phone.
00:08In this video, we're going to see how could we debug the application, and in other words, how could we get the application feedback directly from the application back into our Flash Professional.
00:18Before we do that, I want to show you what is the feedback that we're going to try to generate and try to get back.
00:24If you click on Command-Return, you should right now get your application running inside of the ADL, or if it's not, go inside of your control panel, and in your test movie menu option, you could select the in-air debug launcher, the mobile version.
00:41Once you do that, you'll get the mobile version of your application.
00:46The thing I want you to notice is the output that we get, which was hello from Android, which was something that we created on our timeline, the trace command.
00:57The next thing that we want to do is we want to connect our phone and enable us to actually see this trace come back from our phone, even when we run our application from the phone.
01:08Now with that said, for that to happen, our phone must have a few configurations set up.
01:14One of the first configurations is the phone has to be in USB debug.
01:20Every single Android device works a bit differently, but I want to show you inside of my Android is once you click into the settings of your phone and you just scroll all the way to the bottom of the screen, you'll see the developer options.
01:35Once you click into the developer options, you want to set the developer options to be on, and you want to enable USB debugging.
01:42All you have to do is check for your specific phone. How do you create the USB debugging?
01:47Once your phone is open, unlocked and sent into USB debugging, I'm going to now connect my phone to the USB to the computer.
01:55All right, the phone is connected now through USB.
02:03Now, the next step that I need to do is to actually refresh my list and then send my testing directly to the phone.
02:11So I'm going to go into my control panel again, and in my test movie, I'm going to go to the on device via USB.
02:18And I could see in this case, my phone is already listed and I could click right into it.
02:23Once I click right into it, you'll see that my phone will automatically get it will publish.
02:29And once the publishing process is complete, it would then go directly into the phone.
02:35Now, I'm not going to show you the phone at the second, but I will.
02:38I'm going to stop and take it out of the USB because I just don't have a long enough cord.
02:42Once I take it out, because I don't have Adobe Air installed, it's automatically showing me that I need to install Adobe Air.
02:48So that's exactly what I'm going to do next.
02:50I'm just going to click on that install button to make sure that I do have Adobe Air.
02:55It's going to take me into the app store.
02:57And in the app store, I'm just going to click on install.
03:00Once I accept and install and complete this process, I'm going to go back and test this out one more time.
03:06So I'll see you once this download is complete and I have Adobe Air installed on my mobile device.
03:12All right. Adobe Air is now installed on my phone.
03:14So again, just to re echo, we need Adobe Air on the phone.
03:17We need to have our phone unlocked and we need to be setting it to enable USB debugging.
03:23Once we have all these three parameters configured and I'm just going to unlock my phone because it automatically locks itself.
03:30Once we have all these configurations, all that's left for us to do is we want to debug to be able to see where we get those traces.
03:36So to do that, I'm going to click on to the instead of the control menu, which doesn't have debugging enabled in it.
03:42I'll click on the debug menu and in the debug menu, I'll debug movie and again,
03:47select it through a USB device and select my my device.
03:52Once I do that, it will start debugging the application.
03:56And once our application will be published and sent on all the way to our phone, we'll see that it should work.
04:04And I'm just going to make sure my phone remains unlocked.
04:09Here we go. So now if we look into our output, we'll see that we're getting that trace.
04:13Hello from Android, which is really coming from our phone.
04:16And we'll see that our application is running on the device itself.
04:20As soon as I disconnected it from the plug automatically, the debug bug mode ended, but our application is still running.
04:28So there you go. That's all you really need for the basics of how to start working with Android Air extension.
04:35So good luck with that.
