2014년 11월 29일 토요일

use blocks=object on another screen & few toughts on database in App inventor


at 1st) 
I'd be very pleased if I can include  procedures variables ( especialy those customized by myself).. from one screen to another so it'd be really object oreinted - and maybe also another existing blocks from scren 2,3..x like there's option for 'any other component' - you click on it and options list reveals

2nd) 
why not enable real database enviroment - cause right now I can only wokr with TinyDB - I know storage limitations on MIT servers. But it'd be nice if I can create normal database - e.g with InnoDB engine ( create tables, foreign keys...so I can create a real production app and don't need to rebuild it or rewrite), but the size'd be limited - certain amount of space = certain amount of rows so the usage of the disk space won't be any bigger. Or is maybe if teh developrers create some API to connect my DB stored somewehre else on the internet

--

ad 1: yes, these are great suggestions!

currently global variables are only global for each screen, to pass values from one screen to another screen use TinyDB or pass a list in the open another screen with start value method http://appinventor.mit.edu/explore/ai2/support/blocks/control.html#openscreenwithvalue

ad 2: yes, it would be nice to have a SQlite component, which is anoffline relational database, this would be easy to implement and there already have been discussions in the past...

In the App Inventor Open Source Group Hossein presented his very nice SQLite enhancement for App Inventor, which offers access to the local SQLite database on Android devices for App Inventor apps.

However, it has been saidthe primary target audience for App Inventor are people with little or no programming experience. And let me add something to make that a little bit clearer: there is no secondary target audience!
Which means, Hossein's SQLite enhancement in its current form will never make it into MIT App Inventor.

I prepared a workaround see here 
How to access the local SQLite database on your device with App Inventor
 also AiLiveComplete offers a SQlite component


Or is maybe if teh developers create some API to connect my DB stored somewehre else on the internet
for online databases you have several possibilities, for example to use a fusiontable, see the Pizza Party tutorial or see here https://puravidaapps.com/tutorials.php#db

--
so it means I've to download AILiveComplete by Hossein and then I can 'run' SQLite in appinventor? and does it run it on Linux?

--
No.  What it means is you got to post on Hossein's AILIveComplete forum and ask there; or pay Taifun for his third party solution.  LINUX? -- ask Taifun or Hossein.

App Inventor is a free  entry level compiler intended for beginning programmers and to be used primarily in a classroom environment, to stimulate one's imagination.  Taifun's post indicated there are no plans by the MIT AI Development team to incorporate SQLLite in App Inventor.

Another solution: start programming in the Java based Eclipse or Android Studio, free professional compilers  or a relatively inexpensive compiler like Basic4Android or one of the expensive compilers available commercially.  These tools can use sqlLite .. (I am not sure about B4A).

And another solution:  Write your own solution for App Inventor, AI is an OpenSource project:  http://appinventor.mit.edu/appinventor-sources/   Plug-in controls are possible.

--
so it means I've to download AILiveComplete by Hossein and then I can 'run' SQLite in appinventor? and does it run it on Linux?

for questions about AiLiveComplete, please ask here: https://groups.google.com/forum/#!forum/apptomarket

--

댓글 없음:

댓글 쓰기