2015년 1월 10일 토요일

How to use videoPlayer

I want to playing the video  

using the videoPlayer and The extension of the video I want to know something



Maybe you can search the forum and the documentation first. There are plenty of answers to your question. Then, if you built something and have a specific problem, come back and you will get specific advice.




Quiz Question Random logic

I make the index of question that have 5 question.then in the screen, i will make 3 question that call random from the index. And when the 3 question has correct answer, then the screen will mobe to another screen. How this logic? Plese help the built and step to make it :(



Did you do the tutorials, for example:
and:
?
If yes, show us what you tried by posting your blocks. Only then can we help you.


aiStarter not running


I have installed aiStarter (win XP) without changing anything. But when i try to run it, there is an error message that says that the application has a problem and it has to be stopped. More informations:  "AppName: aistarter.exe  AppVer: 0.0.0.0  ModName: aistarter.exe
ModVer: 0.0.0.0  Offset: 00007fee"

Can you help me with this;

--
Something appears wrong with the version number Dionisis.   Did you install/download from this link: Installing and Running the Emulator in AI2 ?

Then you should have gone, in Part 2 of the instructions gone,  to the Windows link (because you have Xp) here  Installing App Inventor 2 Setup on Windows

What version of aiStarter did you download?   It should be the one here  
  1. Download the installer.

and will be named something like AppInventor_Setup_Installer_v_2_1.exe  or 2.2 or so.  Is that the version of aistarter.exe you used?

Check if aistarter is in the correct directory...on my Win7 PC it is here, on your Xp PC it will be in a different location.
Did you install to the default location?   If you did not, do not use the uninstall.exe if you got it on a different drive (the uninstaller will, in that case, uninstall everything in the folder it is located in).  

--
Thank you Steve for your answer.

I'm sure that i've done everything right. I followed all the instructions. I' ve tried again and again but it doesn't work. I give up. I will try something else more easy for my students.

--
OK, sorry AI is not working for you....   Somewhere, you probably did NOT do something right or there is a hardware issue.

If you end up programming for Windows (instead of for Android), may I suggest something called Lazarushttp://www.lazarus.freepascal.org/  ... it is Pascal language based object oriented programming for Windows.  It is free and interesting enough it is now for Android too ....check it out. http://wiki.lazarus.freepascal.org/Portal:Android     Interesting, I did not know they added an Android capability.

--
I just got up and running and it would not work on one machine but I tried another and it worked..... you figure!

--
Great.  Could you explain "it would not work on one machine but I tried another and it worked.?"   Does this now mean that it AI2 and the emulator is successfully running on both your PC both from home and at Stanford?

What did you do to make it work on the new PC?  Thanks.

--

Wifi connectivity

can i use wifi as a connectivity resource in my application?



Wifi connects you to the internet. Therefore you can connect to anything that will act as a server to the client which is your phone. Could be a local server on your PC though.
What would you like to achieve?



This explains how App Inventor connects over WIFI :   http://appinventor.mit.edu/explore/support/explain-wifi-connection.html



Whether you will be able to control your home devices will depend or those devices. They should offer a way to connect to them via wifi and an API you can use to do the control. And if you want to control them away from your house, they should offer remote access. Study their documentation!
If there is a yes to the above questions, then yes, you can make an app with AI to control your home devices.


Re: Web form report: Receiving script errors upon signing int...

I have this exact same error.  I have used Chrome and Firefox on two different computers.  Sometimes I can work through to my app, but mostly not.  I finally finished my app last night, but now I cannot get back to it to build the app for market.  Very frustrating.


How to make a cancel button?

Hi, could somebody look at my code, because I have tried but it doesn't work and I have no clue on how to make the cancel button.Basically, if someone makes a booking, they are to able to click on the cancel button and clear their recorded that they have made. 

Could somebody help me please?





Does the other code work? Can you make a reservation OK?
 Try to get that working first. How are your listpickers initialized? It is not so nice to have the picked values in the listpicker itself. If I were you, I would add some labels to show these once picked. Then, when you cancel, you just reset the values in the labels.
Then, when you have that working, it is time to figure out what to do when the cancel button is pressed. I think that you are trying to reset a value in the tinyDB, but why are you having one?



Thanks I will try that.


Bug with two or more TinyDb and Clear all

Hello I have a bug.

In my apk i have 4 different tinyDB with 4 different name db_para; db_mc; db_jdb and db_inc

When, in my apk i want clear one of my  tiny_db, i use a call tiny_db/ ClearAll (for example Call db_mc clearAll)

but the 4 Tinydb was clear !!!!!

an idea ????



From the documentation:
There is only one data store per app. Even if you have multiple TinyDB components, they will use the same data store. To get the effect of separate stores, use different keys. Also each app has its own data store. You cannot use TinyDB to pass data between two different apps on the phone, although you can use TinyDb to shares data between the different screens of a multi-screen app.
When you are developing apps using the AI Companion, all the apps using that companion will share the same TinyDb. That sharing will disappear once the apps are packaged. But, during development, you should be careful to clear the TinyDb each time you start working on a new app.
See here: http://ai2.appinventor.mit.edu/reference/components/storage.html#TinyDB