2017년 1월 11일 수요일

Difference between AI and Thunkable?


what is the difference between AI2 and Thunkable?

--
see an overview about the different App Inventordistributions here: Overview: Different App Inventor Distributions and Versions

so what did Thunkable add?
from this article http://www.i-programmer.info/news/98-languages/9509-thunkable-forks-mit-app-inventor-.html

So far the Thunkable team has added support for Google Maps and Material Design. Useful but not revolutionary. It also claims to be working on an iOS version, something made possible by the open sourcing of Apple's Swift language

btw. Material design also is possible using MIT AppInventor, see here Material Theme by Boban, so the only difference currently is the added Google Maps component...

if you are looking for an App Inventor distribution, which offers some more functionality, then you should look into Hossein's Appy Builder, see here http://appybuilder.com/

however all distributions do not offer the extension functionality up to now...
for more information concerning extensions see here: Announcing App Inventor Extension Components  and an overview about available extensions see here https://puravidaapps.com/extensions.php

-- 
As Taifun mentioned.

Google Map offered even in the free version of AppyBuilder.

-- 
Thanks for the replies. I didn't realize there were so many flavours of AI.

-- 
Some of the flavors of AI and AI itself have proven itself to be maintained and developed. Others are there but little action can be seen. I left for instance a reply for the developers of Thunkable because it is so quiet on there website. Still no answer. Maybe they are really active but i cannot SEE it. They say on there website "Let's get in touch", but nothing happens. They also say on there website " You can use the many built-in app templates as they are, or make changes." but i don't see any templates built-in Thunkable. 

I started making an app in Thunkable as a test and it was working great, but loaded it back into AI2 because i don't know what progress Thunkable is making. 

-- 

Numbering the slider


Is it possible to have the slider have a number "0" with a marker on top of the very left of the slider and number "100" with a marker above the very right of the slider? This way people can see that the very left is "0" and very right is "100"

--

Is it possible to have the slider have a number "0" with a marker on top of the very left of the slider and number "100" with a marker above the very right of the slider? This way people can see that the very left is "0" and very right is "100"

-- 
Not directly from the component but using arrangements and labels: 






-- 
thank you. Exactly what i needed

-- 


ios? esempio? (ios? example?)


First, out of curiosity, someone can tell me un'appcreata mitt with app inventor 2 to download? I would like to see an example of using this app over the program.

i can create the same app for Android, and also for ios? or mitt app inventor 2 you can only do Android?

--
Hello, you can only program for Android

-- 
You can develop apps ONLY for Android.
You can check the gallery for .aia that are developed by community members.

-- 
AppInventor is only for Android, you can sample it in different network. Maybe knowing your needs can be easier to direct you.

-- 


search results for set-and-coerce-property


Re: call to 'set-and-coerce-property!' has too few arguments (3; must be 4)

That while loop in your procedure is trouble. A while loop should never depend on something happening from outside the loop. It will send your app ...
16. 9. 16. 작성자: Abraham Getzler - 작성자 4명의 게시물 15개 27회 조회

Re: Build Error Message.

That "too few arguments set-and-coerce property" tends to happen when there is a version issue, like having the wrong companion. reload the ...
16. 4. 17. 작성자: Hal Abelson - 작성자 6명의 게시물 15개 21회 조회

After tons of programing hours, I only get a white screen now.

ERROR: appinventor/ai_HVEeghen/PoisonRoom3/Screen1.yail line 36: call to ' set-and-coerce-property-and-check!' has too few arguments (4; must ...
16. 1. 19. 작성자: Federico Garay - 작성자 2명의 게시물 2개 34회 조회

My app is crashing when apk is built and launched. please help me! URJENT.

Please help me It is very urgent. I built the app, launched it on play store but the app is crashing and my users are complaining for the app. java.lang.
16. 1. 9. 작성자: Simerneet Singh - 작성자 2명의 게시물 2개 35회 조회

Multiple login ERROR.

ERROR: appinventor/ai_madis_valdre/Logil/Profile_Screen.yail line 163: call to ' set-and-coerce-property!' has too few arguments (3; must be 4).
15. 12. 16. 작성자: Madis Valdre - 작성자 2명의 게시물 2개 8회 조회

java.lang.OutOfMemoryError:

Hello , occurring errors in my app and I do not understand why. Often occur on the Samsung Galaxy S6 Edge and Notes 4 , but the application crashes ...
15. 11. 21. 작성자: Boom - 작성자 3명의 게시물 3개 155회 조회

Problems whit my App.

Hello , occurring errors in my app and I do not understand why. Often occur on the Samsung Galaxy S6 Edge and Notes 4 , but the application crashes ...
15. 11. 21. 작성자: Boom - 작성자 1명의 게시물 1개 4회 조회

Samsung S6 Android 5.1 not compatible with AI2?

Just released a new app. An easy game with 1 screen and no special demands. The APK is 4.1 Mb. But again, like with similar apps, on a Samsung ...
15. 10. 8. 작성자: Speule Vurniks - 작성자 3명의 게시물 8개 98회 조회

Re: Average number of crashes per 100 installs.

Hi Steve,. as I told Peter, the phones are all Samsung: S4, S5 and S6. I asked a professional programmer if she could have a look, but she only knows ...
15. 9. 30. 작성자: Speule Vurniks - 작성자 3명의 게시물 9개 46회 조회

Re: New Screens and Renaming.

7.1*) in Screen1_copy.yail remove (set-and-coerce-property! 'Screen1 'Icon "Icon. jpg" 'text) and (set-and-coerce-property! 'Screen1 'VersionName ...
15. 8. 31. 작성자: anonimo9991 - 작성자 3명의 게시물 4개 27회 조회

AI companion doesn't connect.

... you probably caught the culprit! ERROR: appinventor/ai_xxx/xxx/Screen1.yail line 75: call to 'set-and-coerce-property!' has too few arguments (3; ...
15. 7. 19. 작성자: Enora Nedelec - 작성자 1명의 게시물 1개 25회 조회

Clock issue.

Error from Companion: java.lang.RuntimeException: invalid syntax in eval form:< string>:1:667: call to 'set-and-coerce-property!' has too few ...
15. 6. 24. 작성자: Nicholas Crawford - 작성자 4명의 게시물 4개 189회 조회

URGENT HELP NEEDED.

ERROR: appinventor/ai_petesandra/Bird_Bash/Game.yail line 352: call to 'set- and-coerce-property!' has too few arguments (3; must be 4). ERROR: ...
15. 6. 7. 작성자: JBK Games - 작성자 2명의 게시물 2개 25회 조회

Unable to create .apk file.

ERROR: appinventor/ai_naliniumesh/PocketAccounts/Screen1.yail line 47: call to 'set-and-coerce-property-and-check!' has too few arguments (4; ...
15. 5. 13. 작성자: Nalini Shah - 작성자 2명의 게시물 2개 17회 조회

Can't package my app.

ERROR: appinventor/ai_NoyzBlade/Popcorn_scare/Screen1.yail line 542: call to 'set-and-coerce-property!' has too few arguments (3; must be 4).
15. 4. 28. 작성자: Noyz Blade - 작성자 2명의 게시물 2개 62회 조회

Force close app.

Hello everyone! I'm new in app inventor world, so first I would like to welcome you . My application works quite good at MIT AI2 companion, but not ...
15. 4. 21. 작성자: Michał Zen - 작성자 3명의 게시물 8개 66회 조회

Re: ERROR: duplicate declaration of ...

When I wrote there the commas the ERROR (duplicate of declaration) disapears. Do you think it is the reason of ERROR - set-and-coerce-property ??
15. 1. 3. 작성자: Matej Fausek - 작성자 3명의 게시물 18개 115회 조회

Error Compiling .apk.

ERROR: appinventor/ai_flyoffacliff/ifit4/Manual_Control.yail line 13: call to 'set- and-coerce-property!' has too few arguments (3; must be 4). ERROR: ...
14. 12. 1. 작성자: Ben J. - 작성자 5명의 게시물 9개 1097회 조회

求救 打包apk遇到錯誤.

ERROR: appinventor/ai_andreewr13/TestReadFile_SplitNFind/app01.yail line 21: call to 'set-and-coerce-property!' has too few arguments (3; must be ...
14. 12. 1. 작성자: xx900221 - 작성자 2명의 게시물 2개 187회 조회

Re: Error during building project into apk file.

... issue appears to be a coding error in you app (ERROR: appinventor/ ai_yoojehyeon2/Familyapp/Profile1.yail line 27: call to 'set-and-coerce-property ...
14. 8. 14. 작성자: SteveJG - 작성자 3명의 게시물 5개 1134회 조회

HELP.

appinventor/ai_liketotallymilk/one/Screen1.yail line 47: call to 'set-and-coerce- property!' has too few arguments (3; must be 4). Kawa compile time: ...
14. 6. 13. 작성자: Rainbow Trout - 작성자 2명의 게시물 2개 24회 조회

Pass data between screens.

RuntimeExceptions: invalid syntax in eval form: “string”:1:194:call to set-and- coerce-property!' has too few arguments (3; must be 4). Below are screen ...
14. 2. 22. 작성자: BJ Van Gundy - 작성자 3명의 게시물 9개 807회 조회

After tons of programing hours, I only get a white screen now


Hello helpfull people. I am so worried becouse I am creating a point and click game, and after so many hours of programing, suddenly I only get a white screen when I use my companion, and it keeps restarting over and over every 10 seconds, but only to get the white screen again.
On the block editor it appears a red triangle in a random block (different every time) with the message "companion connection error".
What did I tried (with the same result)
- using firefox
- different phones and tablet
- creating a copy of my project, where I deleted many images and blocks in case it was too heavy to run

and finally when I try to build it to see if it runs fine if I install it on my phone, I get this message (and I cant understand exactly ehat it means)

App Inventor is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Determining permissions
________Generating manifest file
________Attaching native libraries
________Copying native libraries
________Attaching component assets
________Compiling source files
(compiling appinventor/ai_HVEeghen/PoisonRoom3/Screen1.yail to appinventor.ai_HVEeghen.PoisonRoom3.Screen1)

ERROR: appinventor/ai_HVEeghen/PoisonRoom3/Screen1.yail line 36: call to 'set-and-coerce-property-and-check!' has too few arguments (4; must be 5)
ERROR: appinventor/ai_HVEeghen/PoisonRoom3/Screen1.yail line 36: call to 'set-and-coerce-property-and-check!' has too few arguments (4; must be 5)
Kawa compile time: 8.283 seconds

I hope all my work wasn't a waste of time.
Thank you for your time. 

--
Look at all of your blocks in Screen1.
The error message is saying that one of the blocks is missing an argument block.
It might be a math equals block that has only one block on one side of the equal sign, for example.
It might be a component method block like Canvas1.Drawline that is missing one of the x1,y1,x2 or y2 arguments, etc.
Sometimes the problem block is not obvious as all blocks look OK.
But if you rearrange the blocks you may see a lone block that was not attached, but was sitting next to a socket. 
If that is the case then you will now be able to locate the socket for the block and reattach it.
When your two indicators on the bottom left corner of the Blocks viewer shows 0s for Errors and Warnings, then this message will not occur so you should check each screen before building an apk.

--

Can't package my app


Whenever i try to package my app it reads

App Inventor is unable to compile this project.The compiler error output was
________Preparing application icon
________Creating animation xml
________Determining permissions
________Generating manifest file
________Attaching native libraries
________Copying native libraries
________Attaching component assets
________Compiling source files
(compiling appinventor/ai_NoyzBlade/Popcorn_scare/Screen1.yail to appinventor.ai_NoyzBlade.Popcorn_scare.Screen1)

ERROR: appinventor/ai_NoyzBlade/Popcorn_scare/Screen1.yail line 542: call to 'set-and-coerce-property!' has too few arguments (3; must be 4)
ERROR: appinventor/ai_NoyzBlade/Popcorn_scare/Screen1.yail line 542: call to 'set-and-coerce-property!' has too few arguments (3; must be 4)
Kawa compile time: 2.845 seconds

I have no clue what to do and i am completely lost. it is a 2 screen app, and possibly three, and i am downloading it now to see how it is working. Anything helps, thanks!

--
There is a problem with respect to Screen1.

One of the following  possibly applies to your code (all may not apply to your code):

1)  You have coding errors in your blocks.  In the Blocks editor, look in the lower 
left corner of the window for the yellow and red triangle icons. If the red icon has a value larger than 0, 
you have a serious coding error.  Find the block in your code that has a red triangle and 
fix it.   Red triangles always inhibit creating an apk or running a project in the 
emulator or possibly creating an aia file.     Yellow triangles are more forgiving, 
however, sometimes, these need to be fixed because they trip an internal warning and not filling puzzle piece sockets that are left un-filled can sometimes cause issues if the app needs a value that is not filled.

2) Your source file (the aia file) is larger than the 5Mb limit allowed in AI2 (the aia can not be larger than 5Mb). You may have put images or other resources in your Media (resources) that you do not use in the app.  All the images and sounds in resources count toward the 5Mb limit along with the source code.    You can program apps larger than 5Mb in the browser, but the apps will not compile and might not run in the emulator or the project may not save as an aia. If this is the case you need to reduce the size of your image and/or sound files.   Most image files can be made quite small by resizing them using a photo manipulation program on your PC to less than 50Kb each.

3)  You might have more than 10 Screens in your app.  AI2 becomes unstable when more than ten screens are used.  Projects CAN be built with slightly more screen but then you should expect your app to occasionally behave erratically.

4) You might have set a Screen icon in the Designer Properties for your project that is too large. Use an image size of 48x48 px  instead and only use jpg or png images.  *.ico files are not supported.  The 'icon' (actually an image) Google Play requires when posting needs to be 520x520 for their display.  The smaller 'icons' work for the app's icon (the one shown on the device's screen that is pressed to activate the app.

5) You did not code the entire project using App Inventor 2.   If you used one of the third-party AI2 clones,you might not be able to load a Project into the AI2 compiler or create an apk with the standard AI2.

6) If you incorrectly modified the project's Manifest files using a third-party tool, you may have issues.

7)  Sometimes, if you have LOTS of Layouts on a single screen,  the apk might not compile. How many is a lot?  I do not know, keep adding layouts and buttons, compile and try again...when the server crashes, you got a lot.


These are some of the issues that could prevent an app from compiling the apk.

Are any of these familiar?   Check some things.   If you still have issues, there are other things that could be causing the problem, so return and tell us a bit about your project.

Do you have an aia file?    Hope so, depending on what you find out there a many possible remedies.

--

Build Error Message


I'm erroring out while attempting to build, and I'm not sure where the problem might be.

"...yail line 29:call to 'set-and-coerce-property!' has too few arguments (3, must be 4)"

--
check for red warnings and fix them before building
-- 
I'm showing 0 warnings.

-- 
see also these threads set-and-coerce-property how that issue has been solved in the past

-- 
Yeah, I managed to stumble that far, but I'm seeing .scm and .bky file types only, and no .yail files

-- 

Yeah, I managed to stumble that far, but I'm seeing .scm and .bky file types only, and no .yail files

??? 
-- 
Yeah, I've been looking through the 30,000+ blocks I have so far for an empty socket, but I figured that tracking it by the error line might be easier.

-- 
I exported the file as an .aia, changed the file type to .zip, and tried to read packageFORM.yail to see what element was on line 29.  I can access packageFORM.bky and .scm, but don't see any .yail files.

http://stackoverflow.com/questions/21658944/app-inventor-compile-error-login-template-wordpress

-- 
30000 blocks?? Not sure but THAT might be the problem.

If you didn't already, check this previous post too. There's a nice list at the bottom of things to check.

-- 
The blocks window is not showing any errors.

The source file is only 137k. There are only 3 icon sized assets.

There are only 4 screens.

The app icon is a 48x48 gif.

The entire thing has only been coded in AI2.

I haven't modified any manifest files.

I do have 1 screen with (I'm assuming) a lot of layouts, but the program had been working fine before with all of them existing, just not hooked up to any blocks.

Does this mean that there's no way to convert the information in the error message into anything  meaningful?

-- 

but don't see any .yail files.

it looks like the yail files are not available anymore inside the aia file? I will ask someone from the development team...


 I've been looking through the 30,000+ blocks

this sounds like you should redesign your app and look into avoiding redundancy...

-- 
That "too few arguments set-and-coerce property"  tends to happen when there is a version issue, like having the wrong companion.   reload the companion and see if that helps.

Also, I believe there was a change so that the yail file is not generated until you build the app.
Andrew, Jeff, is that correct?

In any event, try building the app and see if the yail file appears.
-- 
only png and jpg files are supported for the app icon

The blocks window is not showing any errors.

The source file is only 137k. There are only 3 icon sized assets.

There are only 4 screens.

The app icon is a 48x48 gif.

The entire thing has only been coded in AI2.

I haven't modified any manifest files.

I do have 1 screen with (I'm assuming) a lot of layouts, but the program had been working fine before with all of them existing, just not hooked up to any blocks.



Does this mean that there's no way to convert the information in the error message into anything  meaningful?

--
@Hal - I'm running into the error when I'm trying to build, not while running the companion.

@Boban - I mistyped, the images are pngs.

-- 
Be sure to check all 4 screens for 0 errors and 0 warnings.
Each screen is separate.

-- 

How to connect my app with another app dictionnary?


I'm working with my team on a competition called technovation. So our goal is to create an android mobile  application which provide kids with an animated storie. But maybe there is some difficult words that's why we want to connect our app with another app dictionary that must be downloaded from the play store. This application is called "Dictionnaire Anglais - Offline" and in this web site we found the package of the app http://thesaurus.altervista.org/dictionary
But, we don't know  how to make it work with the appinventor we think it can be using the activity starter. So can you help us because we have a deadline and we must do it. Thank you.

--
http://thesaurus.altervista.org/dictionary
Your Android application can trigger a dictionary pack by creating an intent as explained in Android section. 
see the documdntation here Using the Activity Starter Component


It is also possible to retrieve the meaning of a word by querying the Dictionary content provider using the procedure described in Content Provider Basics
this will not be possible using the built-in blocks of AppInventor, you will have to create an extension to be able to do that

more information about how to create an extension see here Announcing App Inventor Extension Components
however that will be more advanced and will require some Java skills...

-- 

youtube upload and metadata


I've implemented with success a snippet that upload a video on youtube, now I'm searching to rename the title of video and other parameters too.
Unfortunately there isn't a lot documentation, someone know what is wrong in this snippet?

--
I've implemented with success a snippet that upload a video on youtube
great! congratulations!
it would be nice if you also could provide your solution to the community...


now I'm searching to rename the title of video and other parameters too.

1. probably the commas are a problem? any link to the documentation? probably you have to uri encode them using the Web.UriEncode block ...
2. first try to update as few parameter as possible (keep the json string as small as possible) and if you get this working, then try more parameters
--

Is There a Way to Convert a String Into a Component Name?


Is there any way to convert an FString into a component so that it will be recognized by something like a "set TextBox.Text > of component" block?

--
no, that's not possible, but you can add all your components into a list, see also

-- 

Trouble accessing other screens in current block section


I am currently having an issue accessing other screens in the blocks section that I am currently working with. For example, I have an "if, then" statement where if "Button1" is clicked, it will then send the user to my "Screen2". My difficulty is with how exactly I do that. I am using this (check attached screenshot) block right now to do so, but I don't think the text block with the exact screen's name is working for me. 

Please offer assistance if possible, thank you. 

 unnamed.png


--
your screenshot looks fine, asuming there is a screen called ColdSecondList
see also

-- 
Thank you! 
-- 

>= not work correct?


Hello guys ı will make a litle app using Thunkable.I use canvas for my app.

Rule user can only touch near imagesprites.I coded but ı stuck with control it Here my code and aia file.I dont know why 2. 3. controls give false for >= block 

aia file 

block

--
app
this is the MIT App Inventor forum
for questions about thunkable, please ask there

from the thunkable advertisement:
Actual human support if you have problems with your app

-- 
Hi Taifun I know this forum for app inventor but Thunkable fork of AI2 and supported by AI team.And there is a option for other services when create a new thread 

(Optional) Which App Inventor Service are you using?

Nvm Thanks for reply I will ask Thunkable team

-- 
yes, and for all other App Inventor distributions, please ask in the corresponding forum. thank you

-- 

Multiple lines of text


Is it possible to have the written text go to the next line after every two words. For example, if I write, " I read the whole book" into the blocks and it automatically puts it into three lines like this:
I read the whole book

--
Start with an empty string called result and an empty list called Words.

Set Words to split (your input text) at " ".
That will give you a list of text pieces, one per word.

Now build up your result, word by word.
As you add each word to result, follow it with either a blank or a \n depending on whether or not the index is odd or even, respectively.

FOR EACH n = 1 to length(Words)
  set result = JOIN(result, 
                               SELECT ITEM n FROM Words,
                               IF mod(n,2) = 1 THEN " " ELSE "\n")
END FOR

-- 
Is this something I can do with the blocks of MIT appinventor? Its seems like this is JavaScript and I'm not too familiar with that. Seems confusing with the blocks.

-- 
this is some pseudo code
you will have to use the corresponding App Inventorblocks

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook   http://www.appinventor.org/book2 ... the links are at the bottom of the Web page.  The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro  and the aia files for the projects in the book are here:  http://www.appinventor.org/bookFiles  
How to do a lot of basic things with App Inventor are described here:  http://www.appinventor.org/content/howDoYou/eventHandling  .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of AppInventor, then try something and follow the
 Top 5 Tips: How to learn App Inventor

You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.

--