 Okay, this is going to be a rather short tutorial just building on to what we did last time with phone gap and their online builder for applications for mobile devices for iPhone Android Windows mobile blackberry so forth and so on and last time I showed you how to package your entire application that you wrote in HTML using JavaScript and CSS and all the necessary files for that into a zip file and Uploading it but I also mentioned and I know since I mentioned it people are going to ask so I figured might as well do a Video on it basically making app. That's just a portal straight to your site And I plan on doing this in a future video manually writing out the code in Java for a Android app in this series, but I'm going to show you how to do it very simply here And I actually haven't tested this out, but I'm going to assume that it works So hopefully I don't look like a fool here. I'm going to say Vim I'm in an empty folder by the way on my system I'm just going to use Vim as my text editor once again always just use whatever text editor you are most comfortable with for writing out your code so Looking at my web browser here This is the app that we created in the first part of this series Basically, it's just a list that we can quickly search through I've uploaded to my site at films like chris.com forward slash scripts forward slash list forward slash Index dot html that's where it is now if you're watching this video two years from now three years from now ten years from now It may not be there anymore. So don't ask, but you can go there. It might still be there. I'll try to leave it up So going back here, I'm going to use Vim as my text there And I'm going to create my index dot html because you may need an index that html For phone gap. It's going to be the main page of your application So now that I've I'm in the editor here. I'm going to say I'm going to say script. I'm going to just write this up just as it's a And html file, but I really don't need all the html stuff in here. It's not that important I'm just writing the script part of it and I'm going to say window dot location Equals and I'm going to give it my URL that I just said so http colon forward slash forward slash Filmsbychris.com forward slash scripts forward slash List forward slash index dot html, of course, this could be a php php file or whatever I can point it directly to Filmsbychris if I wanted to So this is a simple Redirect here using JavaScript. In fact, I'll go Google Chrome as my browser just to show you to test it out before we package it up I'll hit enter there and there you go It opened up my browser and redirected to that site automatically Going back here now. We'll just zip that up. I'll zip it up using zip I'll say I'll call it my app dot zip and Zip it my html. So there's one file in there to play it to 10% its size So if we list it out you can see it went from Well, since it's one file that actually got bigger But in most cases when you Compressing multiple files it does get smaller. There's not enough information in there for it to compress That's getting into how we compress files and it's an interesting read if you ever look that up. Anyway Going back here. I'm going to go to build phone build dot phone gap comm Also, you know once again as always be sure to watch the previous videos in the story Especially the one right before this because I'm skipping over a lot that I just did in the previous video There should be an annotation to the playlist somewhere on the screen. I'm going to go get hub Authorize this app. I'm already logged into my get hub account I'm going to agree to their terms and complete my registration here. Okay So now I'm going to upload that zip file. I'm allowed to upload one zip file to this and I need to go to My app. Okay. There's the zip file. We just created open We'll give it a name. I'll call it my redirect Of course call it whatever you want. There's also under settings. You can create an icon stuff I'm just going to leave all that blank. I'm going to say ready to build and it's going to start building it I'll click over here. And again if you go to settings here, you can create Icons and other information for this package. I'm just create. I'm just going to use the default and When it's done building and just as I showed in the last one IOS and Blackberry are going to fail at compiling because I don't have any keys I have to sign up to get some signature keys Android uses keys, but they're not required once again I think they're required if you want to post something in the Google Play store but if you're just going to distribute the APK on your website no signature key required and HP and and the Windows mobile don't require them at all So that's it for this tutorial other than showing you that it works in which case I'm going to cut to a camera view here and I'll scan this little QR code With my phone and install it. I could also click the APK there if I wanted to so Thank you for watching and here's the app working. Hopefully once again, I didn't really test this before I made this video Okay, here we are and I've got my phone ready. I'm going to open up Google goggles The only reason I see that this may not work is that it may not allow you to redirect outside of The current application like off the local domain, but we'll see I'll click the phone or the camera button there Come up here. It took a picture. It scans the bar code and I click the link and It starts to download it Go back to my home screen here. Go to the toolbar. It's done downloading I'll click on the APK. It gives me options. I'll say package installer it gets whole bunch of Permissions I'm going to click install And it's done installing I can now click open. I know you can't really read that I'll click open and in theory It should open up our application on the internet loading There we go it worked so that redirected to my site so we're actually inside a Local application. That's just a portal to my website so I can search through our list here Whoop if I type in letters that work and if those were clickable buttons They would do something so sorry about the quality of filming this like this But I just wanted to show you that it does work and all I had to do was either scan that QR code or Download the APK and install it on my phone. Thank you for watching. Please visit filmsbychrist.com. That's Chris the K and if you haven't watched the rest of the videos in this series on making your applications Work across platforming across device Chris with the K link in the description. Have a great day