How to Back up and Make Blocks Useful

71 views
Skip to first unread message

Techno Peace

unread,
Jun 19, 2019, 11:12:35 AM6/19/19
to MIT App Inventor Forum
Hello everyone

I wanna back up my App Inventor blocks, and want them be useful and found easily. Could you give me a trick or a way to do that please?

Chris Ward

unread,
Jun 19, 2019, 1:15:07 PM6/19/19
to MIT App Inventor Forum
Do you mean you want to recycle them for other projects? You can save the Project File (.aia) to your computer. Give It an appropriate name. When you need the Blocks for another Project, you can do one of two things:
  • Load the Project from your computer and save it with the name for your new Project
  • Or (if the new Project already exists) load the Project from your computer, copy the Blocks to the Backpack, go to your new Project, paste from the Backpack

Peter Mathijssen

unread,
Jun 19, 2019, 1:19:28 PM6/19/19
to MIT App Inventor Forum
You have also the possibility to save an image (png) of the handy blocks as you call them and you can drag and drop them in the block designer when you need them. In the png the block code is incorporated. 


Chris Ward

unread,
Jun 19, 2019, 1:58:50 PM6/19/19
to MIT App Inventor Forum
Hi Peter

I recall Evan mentioning that new method but it is not incorporated in nb177 is it? Just tried, nothing happens.

Peter Mathijssen

unread,
Jun 19, 2019, 2:55:30 PM6/19/19
to MIT App Inventor Forum
Yes it is incorporated. 

Selection_999(528).png


ABG

unread,
Jun 19, 2019, 3:46:13 PM6/19/19
to MIT App Inventor Forum
I am finding github helpful for storing those .PNG files
and distributing them without losing their embedded blocks.


Use the download link, and try to drag the downloaded .PNG file into
your Blocks Editor workspace and see if the DISTINCT procedure lands.

ABG

ABG

unread,
Jun 19, 2019, 3:55:01 PM6/19/19
to MIT App Inventor Forum
Here's a sample upload from github to the Blocks Editor,
give or take some fumbling ...

ABG

ABG

unread,
Jun 19, 2019, 3:58:55 PM6/19/19
to MIT App Inventor Forum
This is the public link to the repository ...

ABG

Techno Peace

unread,
Jun 19, 2019, 4:07:20 PM6/19/19
to mitappinv...@googlegroups.com
Thanks for these. ABG, Will I pay to back up my 100-1000 blocks png to github? 

ABG

unread,
Jun 19, 2019, 4:16:44 PM6/19/19
to MIT App Inventor Forum
Will I pay to back up my 100-1000 blocks png to github? 

I haven't paid a cent to Microsoft yet.
on the other hand, I haven't bothered to read their terms of service (licensing?),
and I keep backup copies on my (also free) Dropbox 
and Google Drive.

ABG
 

Techno Peace

unread,
Jun 19, 2019, 4:19:57 PM6/19/19
to MIT App Inventor Forum
Could you show me how to upload the blocks to github as png? It is what I'm looking for, and thanks. 

ABG

unread,
Jun 19, 2019, 4:51:31 PM6/19/19
to MIT App Inventor Forum
To upload blocks to github,
  1. Start a directory for your project in your Dropbox folder (I'm a belt and suspenders guy)
  2. export the .aia of your project to that directory.
  3. Download the Blocks Image there too.
  4. Do a Clean Up Blocks in the Blocks Editor.
  5. Starting from the top, Download the .PNG for each block, giving it an appropriate file name
  6. (For procedures, you can copy the procedure name to the clipboard for the file rename)
  7. Sign up for a free account at github.com
  8. Start a new repository at github.com, with your app name
  9. Do a directory upload, and mark it all public.
ABG

ABG

unread,
Jun 19, 2019, 4:59:42 PM6/19/19
to MIT App Inventor Forum

Techno Peace

unread,
Jun 19, 2019, 5:40:33 PM6/19/19
to MIT App Inventor Forum
Okey thank you.

Chris Ward

unread,
Jun 19, 2019, 6:27:50 PM6/19/19
to MIT App Inventor Forum
@ Peter - aha! I thought it would work via the workspace right-mouse menu, given that also produces a .png. (head slap)

So, it is a very useful method, would be great to do something similar in the Designer.

Peter Mathijssen

unread,
Jun 20, 2019, 2:01:33 AM6/20/19
to MIT App Inventor Forum
How would that work in your view. Save a button with all it settings to an outside file? If it would have to work from inside the designer you should be able to safe for instance the button with all its properties and all the associated blocks in one go. That would be something special. 

But very happy with the new feature. 
Reply all
Reply to author
Forward
0 new messages