I think the best way to learn and understand a new method is to use example.
Eventhought I searched a lot in our community,I got some example.But I don't konw how to use KVS with B4X.
Maybe some expert can share a small example. That's will be helpful to newbee !
- With B4XPages, you don't need the Starter Service in most of cases
- To export a B4XPages, use the link on the top of B4XMainPage ('Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=KVS.zip)
A key / value persistent store. The data is serialized using B4XSerializator and is stored in an internal database. The database can be shared between B4A, B4i and B4J. Using KVS is similar to using a Map. You initialize it once and then you can put or get items with Put, Get or GetDefault...
I copy the code to B4X formate.
But got some wrong.
It cann't work well.
There must be something I have not get the ponit !
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
B4A Version: 11.00
Parsing code. (0.02s)
Java Version: 11
Building folders structure. (0.03s)
Running custom action. (0.05s)
Compiling code. (0.05s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (0.07s)
Linking resources (0.26s)
Compiling debugger engine code. Error
B4A line: 26
End Sub
shell\src\b4a\example\main_subs_0.java:170: 错误: 无法将类 b4xmainpage_subs_0中的方法 _process_globals应用到给定类型;
b4xmainpage_subs_0._process_globals();
^
需要: RemoteObject
找到: 没有参数
原因: 实际参数列表和形式参数列表长度不同
1 个错误
- With B4XPages, you don't need the Starter Service in most of cases
- To export a B4XPages, use the link on the top of B4XMainPage ('Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=KVS.zip)
- With B4XPages, you don't need the Starter Service in most of cases
- To export a B4XPages, use the link on the TIP of B4XMainPage ('Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=KVS.zip)