How can i run method from B4A that is in library jar file?
I have B4AGallery that is fantastic library but i need to clear list items before inserting new one items. I found that i need to call this:
package:
it.giuseppe.salvi.library.photogallery.adapter
public class:
PhotoGalleryBaseAdapter
Function:
public void Clear()
{
itemsView.clear();
notifyDataSetChanged();
}
I try it this way but when running apk i get error.
So i don't know how to call this public function in B4A using reflector.
I have B4AGallery that is fantastic library but i need to clear list items before inserting new one items. I found that i need to call this:
package:
it.giuseppe.salvi.library.photogallery.adapter
public class:
PhotoGalleryBaseAdapter
Function:
public void Clear()
{
itemsView.clear();
notifyDataSetChanged();
}
I try it this way but when running apk i get error.
B4X:
Dim args1(1) As Object
args1(0) = True
Dim r As Reflector
r.RunStaticMethod("it.giuseppe.salvi.library.photogallery.adapter.PhotoGalleryBaseAdapter" , "Clear" , args1, Null)
So i don't know how to call this public function in B4A using reflector.