{"id":655,"date":"2015-04-03T13:04:04","date_gmt":"2015-04-03T20:04:04","guid":{"rendered":"http:\/\/appinventor.pevest.com\/?p=655"},"modified":"2015-04-03T13:04:04","modified_gmt":"2015-04-03T20:04:04","slug":"what-is-inside-a-aia-project-file","status":"publish","type":"post","link":"https:\/\/coldstreams.com\/appinventor\/2015\/04\/03\/what-is-inside-a-aia-project-file\/","title":{"rendered":"What is inside a .aia project file?"},"content":{"rendered":"<p>As you may know, you can <a href=\"http:\/\/appinventor.pevest.com\/?p=422\">save your App Inventor project to your local computer<\/a> using the <em>Projects | Export selected project (.aia) to my computer<\/em> menu option:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2014\/11\/ExportSelected.png\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-423 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2014\/11\/ExportSelected.png\" alt=\"ExportSelected\" width=\"241\" height=\"318\" \/><\/a><\/p>\n<p>Use this feature to save a backup copy on your local computer or to share your code with others (email or transfer the file using DropBox &#8211; or similar &#8211; or merely copy to a USB thumb drive).<\/p>\n<h2>What is inside the .aia file?<\/h2>\n<p>Surprisingly, the .aia file is just a regular .zip file. You can verify by saving a copy to your local disk drive, and then rename the file to have a .zip file extension instead of .aia. Then use Windows Explorer, StuffIt Expander or other utility to open and decompress the .zip file.<\/p>\n<p><em><strong>PLEASE NOTE &#8211; DO NOT MODIFY THE CONTENT OF THESE FILES. \u00a0THIS INFORMATION IS NOT SOMETHING YOU NEED TO KNOW TO WRITE APP INVENTOR APPS AND\u00a0IS PROVIDED &#8220;AS IS&#8221; &#8220;FOR YOUR INFORMATION&#8221; ONLY.<\/strong><\/em><\/p>\n<p><!--more--><\/p>\n<p>On my Mac (you can do this on Windows too), I renamed the exported <em>ButtonChangeColor.aia<\/em> file to <em>ButtonChangeColor.zip<\/em>:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/ButtonChangeRenamedZip.png\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-658 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/ButtonChangeRenamedZip.png\" alt=\"ButtonChangeRenamedZip\" width=\"127\" height=\"140\" \/><\/a>Then, I opened the .<em>zip<\/em> file to find two folders &#8220;<em>src<\/em>&#8221; and &#8220;<em>youngandroidproject<\/em>&#8220;:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/InsideZip1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-659 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/InsideZip1.png\" alt=\"InsideZip1\" width=\"328\" height=\"231\" \/><\/a><\/p>\n<p>Open &#8220;<em>src<\/em>&#8221; and continue to open a sequence of folders stored inside one another until you get down to a folder with the name of your project. Here you will find these files:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/DeepInside.png\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-660 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/DeepInside-1024x162.png\" alt=\"DeepInside\" width=\"461\" height=\"73\" \/><\/a><\/p>\n<p>The file ending in .<em>bky<\/em> contains the <em>blockly<\/em> code that describes your App Inventor blocks code. &#8220;Blockly&#8221; is separate project upon which some of the\u00a0App Inventor system\u00a0is based. You can open these files in a text editor program to see what is inside; depending on your computer and how it is configured, you may need to rename these files to end in .<em>txt<\/em> in order to open them in your text editing program (e.g. Windows Notepad, Mac OS X TextEdit).<\/p>\n<p>Blockly code is a description of your program using the XML format (a web standard). As you look through this code snippet, you can see some of the components of your App Inventor program (or in this case, the components of ButtonChangeColor app), including variables, buttons, and the <em>if<\/em> statement, near the bottom:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/BlocklyCode.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-large wp-image-661 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/BlocklyCode-926x1024.png\" alt=\"BlocklyCode\" width=\"625\" height=\"691\" \/><\/a><\/p>\n<p>The .<em>scm<\/em> file describes the screen of your app:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/ScreenDescription.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-large wp-image-662 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/ScreenDescription-1024x215.png\" alt=\"ScreenDescription\" width=\"625\" height=\"131\" \/><\/a><\/p>\n<p>The <em>youngandroidproject<\/em> folder, shown up above, contains the project properties sheet:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/ProjectProperties.png\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-663 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/04\/ProjectProperties.png\" alt=\"ProjectProperties\" width=\"218\" height=\"121\" \/><\/a><\/p>\n<p>This text file describes various attributes of the overall project.<\/p>\n<p><em><strong>DO NOT ATTEMPT TO MODIFY THESE TEXT FILES AND LOAD THEM BACK INTO APP INVENTOR .AIA FILES. YOUR CHANGES ARE UNLIKELY TO PRODUCE ANYTHING USEFUL AND ARE MORE LIKELY TO RESULT IN ERRORS AND WASTE YOUR TIME!<\/strong><\/em><\/p>\n<p><strong>Please Share on Social Media<\/strong><\/p>\n<p>Please click on the buttons below this post to share with your friends on Facebook or other social media.<\/p>\n<p>If you are not already following this blog, click on the following links to like on Facebook, add to your Google+ circles or follow on Twitter or in your RSS news reader. Thank you for visiting!<\/p>\n<p><a href=\"https:\/\/www.facebook.com\/appinventor2\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2014\/10\/facebook-like.png\" alt=\"\" width=\"150\" \/><\/a><a href=\"https:\/\/plus.google.com\/107302082825289724871\/posts\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/coldstreams.com\/images\/plus-badge.png\" alt=\"\" width=\"48\" \/><\/a><a href=\"http:\/\/twitter.com\/appinventorplus\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/coldstreams.com\/images\/twitter-follow.png\" alt=\"\" width=\"100\" \/><\/a><a href=\"http:\/\/appinventor.pevest.com\/?feed=rss2\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/coldstreams.com\/images\/rss.png\" alt=\"\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you may know, you can save your App Inventor project to your local computer using the Projects | Export selected project (.aia) to my computer menu option: Use this feature to save a backup copy on your local computer or to share your code with others (email or transfer the file using DropBox &#8211; &hellip; <a href=\"https:\/\/coldstreams.com\/appinventor\/2015\/04\/03\/what-is-inside-a-aia-project-file\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">What is inside a .aia project file?<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[19,20,22,23,43,130,177],"class_list":["post-655","post","type-post","status-publish","format-standard","hentry","category-general","tag-android","tag-android-app","tag-app-inventor","tag-app-inventor-2","tag-blockly","tag-mit-app-inventor","tag-software-development"],"_links":{"self":[{"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/posts\/655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/comments?post=655"}],"version-history":[{"count":0,"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/posts\/655\/revisions"}],"wp:attachment":[{"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/media?parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/categories?post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/tags?post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}