2017년 1월 13일 금요일

Youtube link error plz...


I'm trying to link youtube video to my app button. But it doesn't work...
plz.. help me out... 

--

Including a file in the downloadable app


Hi, I am currently making an app that I want to use in a museum. Scanning a barcode will bring up information about an object. It seems to work just fine, but I am using an local text-file to hold my object data as a database. How can I include this database text-file in the apk? I also tried it with the use of TinyDB, but here I also can not find a way to include a preset database in the apk file. I want the database to be available for the user of the app as soon as he has downloaded it. Using internet access instead of a local textfile is not an option because this would give too high a load on the wireless network of the museum.

--
How can I include this database text-file in the apk?
upload the text file as asset into the app and use the file component to read it

-- 

Help for manuplating files


Sir i wanna ask how  i can make a app where we put files online and the user are able to download it just by clicking on download button and there is any paltform of mit2 where we make changes to app like we put files in app and user just get the files in there app no need to update it.............................

--
Here is an example using the Web component.
-- 

How do I 'MAKE TEXT' ?


I want to tell a, 'STORY' about my subject ; but cannot fine a 'MAKE TEXT' control ?
How am I supposed to explain thing to the user ; if I can't make simple TEXT LAYOUT ?

--
Use the JOIN block.

-- 
Thanks John , ..But what is the ; ABG ? JOIN to What ?

-- 
ABG is the power user's initials.
The Text join block joins and blocks that have values such as variables, numbers, calculations, Label.Text, etc.
-- 
Yes, I found the ;'JOIN' block ; But what will the ; 'JOIN' block ; 'LEFT' - side connector ; connect too ?

--
 
You can attach the join block to a set <variable> block or to a set <component>.Text block, for example.

-- 
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.

-- 
Thanks, Scott ; for your time and help ?

-- 

error 400


I am making  some app  I receive the following message upon trying to save (Submit button) to the fusion table:

"There's been a transmission error. 400 Bad Request Invalid query: Parse error near ';' (line 1, position 0)."

--
Frequently Made Errors with Fusiontables and how to fix them

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

-- 

Open Fusion Table from sublistpicker


I need help on how to display fusion Table after I pick a sublist from the options.

I have been trying to figure this out for the past week but no clue and videos doesn't show how, Any help will be greatly appreciated

fusion table.png 표시 중



emulator.png 표시 중
--
do the Pizza Party tutorial to learn how to work with fusiontables
you will receive the result in the fusiontables control got result event...

-- 
Alright Taifun, I will give it a go and get back to this. Thanks

-- 


Creating an App that presents events...


Hi, I am actually new in the MIT App Inventor world, and I am doing this school project and I don't know If it is possible to do it or not. I want to create (wich a started already) an App that will present most of the events that are going to happen in Tahiti (like concerts, sales, upcoming movies, telethon, marathons...), so I'll need to connect it to a server for it to update my App all the time if i want to add more events to it. When I start the App it leads you to the Homescreen, where you can chose what categorie of event you want to see, wich will send you to another screen with those kinds of evens depending of what they chose... Is it possible to make it with MIT AppInventor ?

-- 
Does this app (1) come with a live person to collect all these upcoming events into a data base, or should it be (2) self-feeding?

If it is self-feeding, it will have to scrape a lot of different web sites (that you will have to discover and decode)
using the Web component.

Start by reading up on Fusion Tables, and Web parsing.
My FAQ:

-- 

App inventor in dutch/nederlands


any idea when dutch translate will be released?

I use it to teach some kids but English is not their native language and the loose a lot of time/energy in the translation.

While it would be a great advantage ...

--
Follow this thread to find all translation progress ...

-- 

no translation into Russian


Hello, dear creators. I noticed that not all of the components and descriptions of them have been translated. I offer translation as a native speaker.
Component:
ProximitySensor  ->  "ДатчикПриближения"
Description on RU:

"Невидимый компонент, который может измерять близость объекта в см по отношению к экрану устройства. Этот датчик, как правило, используется для определения, приложен ли телефон к уху; т.е. позволяет определить, как далеко объект находится от устройства. Многие устройства возвращают абсолютное расстояние в см, но некоторые возвращают только ближнее и дальнее значения. В этом случае датчик обычно сообщает свое максимальное значение диапазона при отдалении и наименьшее значение при максимальном приближении к сенсору."

Sincerely.

--
more information about the translation process see here http://pootle.appinventor.mit.edu/

-- 
See the list at the bottom of this page:

Become an App Inventor Translator!

Contact Boris for issues with the Russian translation.

--

Favorite Button


I am working on an app, I would like a "favorite" function implemented so that when I view a fusion table there should be an option to mark as favorite thereby sending it to another screen.
Is there any method of doing something like that please?

--
If you are viewing a Fusion Table in your app, you are probably using WHERE clauses in the SQL SELECT to show your favorite rows and columns.

If you save the complete SQL SELECT statement that you generate in a list, then keep it up to date in TinyDB,
that would act like a Favorites list.

-- 

Text.change


Is there a way to work with numbers in a textbox as the text changes? I have a app I am trying to build & I want to do math with the numbers entered in a few text boxes but I don't want to have to click a button to calculate it. I would like it to work as the text is changed. I can use get or lost focus but then I need something like on error resume next so it wont error if there is blank text.
 Just wondering

--
Test before calculating with the is a number Math block.

-- 
but I don't want to have to click a button to calculate it.
use a cock component to do the calculation 

-- 
 I figured out the is a number block it works the same as If isnumeric in vb. But trying to get my math equations into the blocks is kicking my but. 

This is what I am trying to do but not sure yet if I can with this?


        Tf = TextBox1.Text
        RH = TextBox2.Text
        P = TextBox3.Text
        P = P * 33.863867
        TC = (Tf - 32) * (5 / 9)
        tk = TC + 273.16
        Es = 6.11 * 10.0# ^ (7.5 * TC / (237.7 + TC))
        E1 = RH * Es / 100
        Tv = tk / (1 - (E1 / P) * (1 - 0.622))
        Tv = Tv - 273.16
        Tv = (9 / 5) * Tv + 32
        Tv = Tv + 460
        psta = P / 33.863867
        x = (17.326 * psta) / Tv
        Da = 145366 * (1 - (x ^ 0.235))
        dap = psta - E1
        z = 1 - (0.01 * RH)
        TextBox5.Text = Math.Round(Da, 2)

-- 
Wow. Thanks Taifun. That was a big help. One more question and I will try to stop bugging you and get this figured out. Is there a way to make temporary fields like TC, TK, ect or will have to add hidden fields to hold them? For example is there a way to say Dim TC as single and then TC = 100 and then use TC in my math or will I have to add a hidden label or something to hold TC ?  

-- 
Is there a way to make temporary fields like TC, TK, ect or will have to add hidden fields to hold them? 
what about using variables?

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.

-- 
Look in particular for local variables.

-- 

web components and header filelds


I'm implementing a POST request where the response will include a Location HTTP header:


so the question is: how I can take Location field from the header using only web components?

-- 
how does an example response look like?
just extract the location information from the response, see the available text blocks here http://appinventor.mit.edu/explore/ai2/support/blocks/text.html

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

--
I'm reading this page in order to upload a video on youtube:


in this page at Step 2 is wrote

If your request succeeds, the API server will respond with a 200 (OK) HTTP status code, and the response will include a Location HTTP header that specifies the URI for the resumable session. This is the URI that you will use to upload your video file.
The example below shows a sample API response to the request in step 1:
so my question is if I can use web component or not to implement a upload video file on youtube (web.got hasn't a Location field).

--
probably yes, you will have to try it
my guess is, you will get the location in the responseContent of the Web.GotText event

-- 
But web.got give access to header?

--
it has been said " the response will include a Location HTTP header
therefore my guess is, you will get the location in the responseContent of the Web.GotText event
just try something to find it out, see also tip 2 here

--
the responseContent is empty, also if responseCode=200, for this reason I've posted it.
--
which means, the web component currently is not able to receive that information

you might want to create your own web extension and add the response header as parameter in the web.gottext event

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...

--

GPS speed


The MIT LS documentation shows the LS component has a speed block that might be useful in your app. When you read the MITtutorial explaining ...
1월 3일 작성자: SteveJG - 작성자 4명의 게시물 6개 30회 조회
I cannot receive the complete texting message from my gps-tracker. Complete message: last: . lat:40.92755 long:5.42913 speed:000.9 . T:12/31/16 ...
1월 2일 작성자: Bernard - 작성자 3명의 게시물 5개 31회 조회
Anyone have a hint on a way to speed it up? Is there a way (if I keep interrogating the sensor) to tell when it has finally estimated a position? Thanks,
1월 2일 작성자: Harry Mangurian - 작성자 2명의 게시물 2개 17회 조회
Non-visible component providing location information, including longitude, latitude, altitude (if supported by the device), speed (if supported by the ...
16. 10. 22. 작성자: Abraham Getzler - 작성자 2명의 게시물 10개 23회 조회
... threads about this topic. See for example these threads https://groups.google. com/forum/#!searchin/mitappinventortest/GPS$20speed%7Csort:date .
16. 4. 15. 작성자: Taifun - 작성자 2명의 게시물 2개 8회 조회
Impossible to make an instantaneous speed GPS speedometer with App Inventor Jordan. The best one can do is take a gps fix at one point, then ...
15. 10. 25. 작성자: SteveJG - 작성자 2명의 게시물 2개 250회 조회
A property in the LS called Accuracy keeps track of the reliability, so depending on how fast the motorcycle is moving (and if it is obeying speed ...
15. 7. 27. 작성자: SteveJG - 작성자 3명의 게시물 3개 31회 조회
The ability to get the speed and track/course info directly from the GPS sensor would be very helpful to me as well! Thanks for considering.. Thomas.
15. 5. 20. 작성자: Thomas1980nl - 작성자 4명의 게시물 6개 710회 조회
speed:055.5 T:02/25/15 11:22 http://maps.google.com/maps?f=q&q=50.12345, 5.12345&z=16. I want to extract parts of the text and save them in a ...
15. 5. 1. 작성자: Jeroen - 작성자 2명의 게시물 2개 20회 조회
AI2 has no control to determine speed. You could use the gps to save location coordinates then save a second set of coordinates a few seconds later.
15. 2. 3. 작성자: SteveJG - 작성자 2명의 게시물 2개 24회 조회
One should never ask the gps to get a fix more frequently than about five ms .. about the speed most phones will take to get a fix under 'average ...
14. 12. 25. 작성자: SteveJG - 작성자 3명의 게시물 7개 43회 조회
Dear Stuart,. as a part of my app I need the same functionality, and was wondering could you please give me an advice for the following: My distance ...
14. 11. 30. 작성자: OG - 작성자 3명의 게시물 6개 119회 조회
just wondered if it was possible to superimpose the speed from gps sensors on top of the camcorder so when played back you can see the speed ...
14. 10. 1. 작성자: Raif Jackson - 작성자 2명의 게시물 2개 29회 조회
When the symbol is absent, I do not get updates appearing in the app (in another post I mention that the speed and direction results are constantly ...
14. 9. 11. 작성자: Stuart Ord - 작성자 2명의 게시물 3개 14회 조회
Getulio sent the following by email: Thanks a lot. Your answer is very useful, I´ll be careful doing that. Regards,. Getúlio.
14. 7. 27. 작성자: SteveJG - 작성자 2명의 게시물 3개 70회 조회
The inaccuracy of the sensor and gps at times, may be more significant in your calculation of speed than the distance calculation method you use.
14. 6. 28. 작성자: SteveJG - 작성자 4명의 게시물 6개 129회 조회
I have not tried the emulator, so maybe that is the difference you experienced in loading speed. I am new to the event-driven programming used in ...
14. 6. 21. 작성자: David Kay - 작성자 2명의 게시물 6개 223회 조회
Can it calculate speed. Yes.. with 'good accuracy? Probably not. Why. You will have to record the initial location and the time, save the position and ...
14. 6. 8. 작성자: SteveJG - 작성자 2명의 게시물 8개 104회 조회
5: to display coures(direction of travel), bearing(direction to next mark/waypoint) distance to mark and speed. in the attatched picture youll see the ...
14. 5. 29. 작성자: Sailor man - 작성자 4명의 게시물 5개 67회 조회
What it may have is the same reading it had when the runner was 10 meters earlier into the run; if you do a calculation, his speed would be zero. better ...
14. 3. 3. 작성자: SteveJG - 작성자 3명의 게시물 4개 365회 조회
Software developed with tools like Eclipse or Android Studio (that have tools not presently available to AI2 programmers to adjust the speech speed, ...
14. 3. 3. 작성자: SteveJG - 작성자 3명의 게시물 4개 128회 조회

Responsive Websites not loading properly in AI2web viewer. Itworks in thunkable


I am trying to load a Responsive Website in AI2-Web-viewer. Responsive/Fixed (both of them doesn't work well). However tried the same with Thunkable it works good. Not sure if this is going to be fixed in future ? Is there any alternative workaround to fix this in AI-2 Web-viewer ?

--
Try you webapge with my this app, it made also with AI. And using Only AI WebView component. How it looks?


-- 


Tiny DB not saving right


In our STEMCommunity screen, we have it so you enter text, its saves to the db, and displays the text in a list viewer. 

What we are having trouble with, is that 

when we re open the screen, the text previously entered and displayed does not show up, 
and when new text is entered, if previous entered text was there, the new text would just replace the old text. 

I have attached the aia of our app, please look and if you have any way to help us, please let us know by Sunday at the lastest.


--
If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...


To download the aia file, upload it to  App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...

-- 
No i mean i know how to open the aia, i just attached the file in case people wanted to download and give us some advice. I attached the screenshots of the programming we have for the screen

MuseBlocks.PNG 표시 중

MuseBlocks2.PNG 표시 중

MuseBlocks3.PNG 표시 중

MuseScreenShot.PNG 표시 중

-- 

when we re open the screen, the text previously entered and displayed does not show up, 

you will have to use TinyDB.GetVAlue to read tha old post from TinyDB and assign it to the textbox


and when new text is entered, if previous entered text was there, the new text would just replace the old text. 
this is what you are doing, if you want to store all entered texts, you then have to store the list global NewPost instead of PostTextbox.Text

btw. why do you store additionally in TinyWebDB?
also you should switch screens correctly to avoid issues, see here

also this does not make sense...
PostsWebDB is a TinyWebDB component and not some text... what are you trying to do?

-- 
There are several problems ...

In the second shot, you are trying to TEXT JOIN a list to a string to a list in the middle of a button procedure.
Won't work.  
Explain what that is supposed to accomplish?

In the third screen shot, you are trying to save a TinyWebDB component as a member of a list newPost.
The component is a piece of software, not data.

When data comes back from your TinyWebDB, you immediately ask for it again?
That would send your app into a coma, unless you pace yourself with a clock.
Maybe you don't need to do that at all?

You are opening Screen1 from another screen.
See the topics on how to manage screens in the Screens section of this FAQ ...

You don't seem to have enough tags or variables,
to distinguish between just the one newest post (newpost) versus allthe posts so far (allposts).

(end of patience, not of bugs.)

-- 
Thank you both so much! I didn't think i would get such a quick reply, so thank you for that too. I will try what you both said and let you know how it goes. Thanks again!

--