Uploading an APK7:26 with Ben Jakuben
Uploading the APK file we just generated shows us a few things in the developer console, like what devices can and cannot run the app. After uploading we'll see how to take and then add screenshots to our listing.
Fun facts at the tap of a button! Learn how to make this app with Treehouse!
Fun and interesting facts at the tap of a button! Here’s your first Fun Fact: You can learn how to make this app and more at Treehouse by visiting http://www.teamtreehouse.com!
Okay. We are ready to add a new application. 0:00 So click right here. 0:02 Now, before we upload anything, 0:05 it's worth mentioning that we can get everything ready here in a draft status, 0:06 before actually publishing our app. 0:09 We can add all the app information first. 0:11 And we can even add the APK file, and 0:13 leave it in a draft status, until we're ready to click that big publish button. 0:15 Okay, so the first thing we need to put is the title, fun facts. 0:19 And I'll leave the language as English for fun facts. 0:23 Now next we can proceed with Uploading the APK or 0:26 going on to the Store Listing details. 0:29 But since we already have built the APK let's start with that. 0:31 Okay, so here we are in the APK section. 0:34 And there's a button down here to upload our first APK to Production. 0:37 There's a little bit of information here about licenses, but 0:40 we don't need that for this app. 0:43 If you wanna read more about when you might need a license key for your app. 0:44 Then check out the documentation on the Android developer site. 0:47 Okay, so we click this button. 0:51 So here we could browse to the directory where we built our APK or 0:52 we can go directly into Android Studio, grab the APK app release over 0:56 here from the project view and drag it here into the window. 1:00 Okay? It takes a second to process and verify. 1:04 And we're good, okay. 1:07 If there were any errors with our APK then we would see some errors or 1:08 warning here that we'd have to fix before we could proceed with the upload. 1:11 With a successful upload, like this, 1:15 the first thing we see is a list of devices that can and can not run this app. 1:17 Looks good here. 1:22 This list is generated based on a few things we set when we created our app. 1:23 Like the minimum version of the Android SDK. 1:26 We can browse the list here and make sure that it matches up with what we expect. 1:29 For example if I scroll down to the Nexus line, here in the Google 1:32 section we show all ten and sure it shows on all the different Nexus's. 1:37 Okay, I'm just scroll to the bottom and 1:41 click cancel and if we wanted to exclude any devices intentionally, like if we 1:42 knew there was a problem with our app on a specific device, then we could come 1:47 here to the manage excluded devices and we could add things manually here. 1:51 Once again, I'll scroll down and hit cancel. 1:56 Okay, here at the bottom is an option for a translation service, 1:58 if we wanted to translate our app into other languages. 2:01 Let's go back up to the top, and you'll notice that we were here in the production 2:04 tab, but there are also tabs for beta testing and for alpha testing. 2:08 This is really cool, we can upload an app to Google Play and 2:12 let users beta test it before we release it to the general public. 2:14 Let's take a look at beta testing. 2:18 We need to upload a separate APK file in here and 2:20 then we can add beta testers by way of a Google group or Google Plus community. 2:23 You can find more information about this in the distribute section of 2:27 the Android developer site. 2:30 Okay, so we're done with our APK. 2:31 Next we need to work through the details of our app listing on the store. 2:33 So, over here on the left, after the APK section, click on store listing. 2:37 Okay. So, we see the title that we 2:41 already added and now we need both a short and full description of the app. 2:42 I have got a few of these already prepared. 2:46 So, I am gonna paste in the short description. 2:48 And now, the long description as well. 2:50 Both of these are copying and 2:52 pasting in the teachers notes if you are uploading the fun facts yourself. 2:54 Although feel free to change them. 2:58 Now, if we scroll down, the next thing we need are screenshots. 2:59 It's recommend to add screenshots for each type of devices. 3:03 Phones, 7 inch tablet and a 10-inch tablet. 3:06 We can do this on a device or an emulator. 3:09 Let's look at how to take them on an emulator using the device monitor in 3:12 Android Studio. 3:15 Okay. So don't follow along with me just yet 3:16 because I am going to demonstrate a quick bug in case you run into it yourselves. 3:18 So first, I am going to run the Fun Facts app. 3:22 And I'm going to launch my Android 442 emulator, and run it in the same one. 3:25 So once the app loads in the emulator, go back to Android Studio and look for 3:30 this button up here, just to the right of the SDK manager. 3:34 This is for the Android Studio device monitor. 3:37 Once it opens, find your emulator over here on the left. 3:41 And then click on this little camera icon right here. 3:44 This opens a screenshot preview. 3:47 And, that's unfortunate, screen not available. 3:50 There's a bug with how the Android 44 versions of the emulator run with 3:54 this device monitor. 3:59 We are unable to take screenshots of those types of emulators. 4:00 So the workaround is to download an emulator. 4:03 For different a different version of Android, and 4:06 then we can just take screenshots in there. 4:08 So, let's take a look at how to do that. 4:10 Let's close this and go back into Android Studio. 4:11 And, we wanna go to the SDK Manager. 4:14 And then, once it loads, we just wanna get an older version of the Android SDK. 4:17 So, right now, we are using Android 4.4.2. 4:22 But if we scroll down, we can go to Android 4.2.2 and we can select to 4:25 install the SDK platform and this ARM EABI System Image. 4:29 This is the emulator image. 4:34 So, check these two and click on the Install button down here. 4:36 Now, mine are already installed. 4:39 So, I am just going to skip the actual installation. 4:40 So now, we need to create a new emulator with the new tools that we 4:43 just downloaded. 4:47 So, click on the AVD Manager here. 4:47 And in addition to our current version, we're gonna create a new one. 4:49 And I'll call this Android 422. 4:53 And for the device, I will pick a Nexus 4. 4:57 And I'm gonna change the target from 442 to 422. 4:59 'Kay? Make sure the CPU is set to ARM and, 5:03 again, you can play around with these different attributes. 5:05 I'm just going to check for host GPU and I need to pick a skin, 5:08 so I'll just say, no skin and then I'll click okay to create the emulator. 5:13 Okay it looks good, so I'm gonna start from here. 5:17 Select it and click start. 5:19 Then launch and now I'll wait just a minute for the emulator to launch. 5:22 If you're working on an older or slower computer, you may want to 5:26 close your existing emulator before attempting to launch a new one. 5:29 Okay. And once the emulator starts, 5:32 we can go back to the Android Studio and launch our app again. 5:33 And this time, instead of running in 4.4.2. 5:37 We wanna run it in 4.2.2 and click OK. 5:40 And there we go. 5:43 Now, our app is here in 4.2.2. 5:44 And now this time, if we go to the device monitor. 5:45 Once again, I'll select the emulator and 5:47 this time when I hit the screenshot button. 5:49 After a second to repair, we get the option to capture the image. 5:51 Okay. 5:55 The line looks rather huge because I'm running this on a retina Macbook pro. 5:56 So, the scale is a little bit off. 5:59 But if I, I can then save this screen shot wherever I want. 6:00 I'll just save mine on my desktop. 6:03 And we want, at least, two different screen shots. 6:05 So I'm gonna go back to the emulator and if I click on the button again. 6:08 We'll get a different screen. 6:11 And let's take a screen shot of this one as well. 6:12 So we'll come back here to device screen capture, refresh and 6:14 save the new version here. 6:18 I'll also save this one to the desktop so both are available. 6:21 Cool. So we're done with this one. 6:23 Now, all the screen shots are available as downloads in the teacher's notes. 6:25 Including ones for tablets. 6:29 If you wanted to create a tablet emulator and take screenshots, 6:30 you would do the same steps that we just walked through to create the 422 emulator. 6:33 You don't need to get anything from the SDK manager, 6:37 you can just go to the AVD manager and 6:40 create a new tablet version of an emulator running that same 422 version of Android. 6:42 Okay. So, back in our listing, 6:49 I am going to add the screenshots that I have linked below this video in 6:50 the teacher's notes. 6:53 So, first for the phone, let's add the first screenshot. 6:54 Screenshot 1 and click Open. 6:58 And then we'll do the same thing for screenshot 2. 6:59 And once they are in place, 7:02 we have the option to drag them around if we want to re-order them. 7:05 I'll leave the green one in front. 7:08 And then now let's do a 7" tablet. 7:09 We'll do the 7" screenshot. 7:11 And finally a 10" tablet, where I opted to take it in landscape mode just to show. 7:13 Okay, looking good. 7:20 Let's take a quick break and then we'll finish our store listing in the next video 7:21
You need to sign up for Treehouse in order to download course files.Sign up