CPSC 110-08: Computing on Mobile Phones
Fall 2011

Sharing Your Source Code

For this course, with its emphasis on free and open source software (FOSS), it is encouraged that you share your source code. In fact, for 2-person projects it's necessary that we share our code and the method outlined here will show you how:

  1. Create a File Cabinet Page: Login in to your Portfolio and create a new page (tab on the top right). Select the File Cabinet. Name your page something like MyApps.

  2. Download Your Project's Source Code: From within the App Inventor Designer page, select "My Projects" and then checkmark the project you want to share. Under the "More Actions" tab, choose "Download Source". This will download a file named "MyApp.zip". Save it on your desktop.

  3. Don't Unzip This File: If you are sharing it with a partner, just email it, as is (not unzipped), to your partner. Your partner should use the "My Projects > More Actions > Upload Source" option to upload the Zip file.

  4. Upload to Zip File To Your Portfolio Page: Click on the link to your MyApps (file cabinet) page and choose the Add File. Then browse to your ZIP file and upload it.

  5. Your ZIP's URL: In order to link to your ZIP file you'll need to know its URL (Uniform Resource Locator) for your file. Assuming your file cabinet is named MyApps and your app is named MyApp, your URL will be: https://sites.google.com/site/yourportfolioname/MyApps/MyApp.zip. Type carefully. It's case sensitive.

  6. Create a Link to Your ZIP File: To create a link to the ZIP file on your Portfolio page, follow these steps:

Sharing Your App

This tutorial shows you how to share your app with friends and others who have Android phones. We will create a file that can be downloaded to an Android phone. We'll upload that file to our Portfolios. Then we'll create a 2-D bar code, a QR Code and post that on our Portfolios. Your friends will then use a bar code reader app on their Android phones to download your app.

  1. Create a File Cabinet Page: Login in to your Portfolio and create a new page (tab on the top right). Select the File Cabinet. Name your page something like MyApps.

  2. Package Your App for a Phone: When your app is finished select the Download to this Computer under the Package for Phone tab. This will create what is called an APK file, an Android package file -- a file that is bundled to be downloaded to an Android phone. If your app is named MyApp, your APK file will be named MyApp.apk.

  3. Upload your APK File to Portfolio File Cabinet: Click on the link to your MyApps page and choose the Add File. Then browse to your APK file and upload it.

  4. Your APK's URL: In order to link to your APK file you'll need to know its URL (Uniform Resource Locator) for your file. Assuming your file cabinet is named MyApps and your app is named MyApp, your URL will be: https://sites.google.com/site/yourportfolioname/MyApps/MyApp.apk. Type carefully. It's case sensitive.

  5. Create a Link to Your APK: To create a link to the APK on your Portfolio page, follow these steps:

  6. Generate the QR Code Image: Go to the following site, http://qrcode.kaywa.com/, and paste your URL into the text box and click the "Generate" button. This will generate a 2-d barcode image.

  7. Save the QR Image: Right click and save this image to your desktop or somewhere. The default name for the file will be something like "img.php" or "img.php.png". You'll want to rename it to "myapp.png" or something similar. The file name must have a ".png" extension in order to upload it.

  8. Upload the QR Code Image to your Portfolio: Upload the saved QR Image to your Portolio page -- by selecting Insert > Image while in edit mode. After copying and saving the QR image, upload it to your portfolio.

  9. Download to Your Phone: Test that the QR code is correct by downloading the app to your phone using the Barcode Scanner app. If not already installed on your phone, you can find one by searching the Android Market. Once you've installed Barcode Scanner, point it at your QR code and download your app.

  10. That's It! Just point your friends to your Portfolio.