Hi,
From the below given post
https://www.b4x.com/android/forum/threads/large-searchable-list-with-searchview-b4xserializator.61872/
As per Erel, "SearchView is very useful, however it was limited to about 500 items as it takes time to build the index and the UI is frozen until the index is ready (the main thread is busy building the index). Now with B4XSerializator and a small B4J program we can easily load 10,000 items or more to SearchView."
I could find the searchview in most of the modern android apps, but I avoided the use of SearchView in my B4A app because I face the problem stated above ie "The searchView takes time to build the index and the UI is frozen until the index is ready (the main thread is busy building the index)". As a solution to this issue, the new SearchView based on the B4XSerializator was released by B4X team.
There are also few open libraries in github, which I am not sure whether this can be wrapped and used in B4A and whether those libs also has the limitation of slow indexing or not.
Some of them are listed below
https://github.com/MiguelCatalan/MaterialSearchView
https://github.com/lapism/SearchView
https://github.com/Quinny898/PersistentSearch
I would like to use this new faster SearchView in my B4A app along with jRDC2 so that my UI doesn't freeze. According to Erel, this is not a generic requirement in jRDC, so I need to incorporate this myself in the jRDC
As per Erel's advice, "It will be simpler to add another handler in the server that is responsible for building DataToSend and call it with HttpUtils2. The searchview module should also be added along with the jRDC server app"
May be this is going to be useful for all those using jRDC to connect and work with Remote database and wish to use SearchView in their B4A app. If this works well, those who wish to include this SearchView feature in jRDC can include the required additional modules to their existing standard jRDC project supplied by the B4X team, compile it and use it.
I don't have any previous experience with B4J and seriously doesn't know where to start this.
So far I figured out (I guess) that I need the following
Any help to move forward will be appreciated.
Regards
Anser
From the below given post
https://www.b4x.com/android/forum/threads/large-searchable-list-with-searchview-b4xserializator.61872/
As per Erel, "SearchView is very useful, however it was limited to about 500 items as it takes time to build the index and the UI is frozen until the index is ready (the main thread is busy building the index). Now with B4XSerializator and a small B4J program we can easily load 10,000 items or more to SearchView."
I could find the searchview in most of the modern android apps, but I avoided the use of SearchView in my B4A app because I face the problem stated above ie "The searchView takes time to build the index and the UI is frozen until the index is ready (the main thread is busy building the index)". As a solution to this issue, the new SearchView based on the B4XSerializator was released by B4X team.
There are also few open libraries in github, which I am not sure whether this can be wrapped and used in B4A and whether those libs also has the limitation of slow indexing or not.
Some of them are listed below
https://github.com/MiguelCatalan/MaterialSearchView
https://github.com/lapism/SearchView
https://github.com/Quinny898/PersistentSearch
I would like to use this new faster SearchView in my B4A app along with jRDC2 so that my UI doesn't freeze. According to Erel, this is not a generic requirement in jRDC, so I need to incorporate this myself in the jRDC
As per Erel's advice, "It will be simpler to add another handler in the server that is responsible for building DataToSend and call it with HttpUtils2. The searchview module should also be added along with the jRDC server app"
May be this is going to be useful for all those using jRDC to connect and work with Remote database and wish to use SearchView in their B4A app. If this works well, those who wish to include this SearchView feature in jRDC can include the required additional modules to their existing standard jRDC project supplied by the B4X team, compile it and use it.
I don't have any previous experience with B4J and seriously doesn't know where to start this.
So far I figured out (I guess) that I need the following
- May be a new code module named "SearchViewHandler" in the jRDC Project ie something line "RDCHandler" which is supposed to handle the request that comes from the B4A app via httputils.
- Add the "SearchView" class module in the jRDC Project
- Do I need something like "DBRequestManager" which is already inluded in the B4A Project (client app)?
Any help to move forward will be appreciated.
Regards
Anser
Last edited: