2015년 1월 10일 토요일

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


댓글 없음:

댓글 쓰기