android is not working -


greeting,i developing 1 app implementing load more on recyclerview view using interface.

but problem work fine first time , after monloadmorelistener null,i dont know why monloadmorelistener null.

so not load next element

this code , listener follows onloadmorelistener.java

public interface onloadmorelistener {     void onloadmore(); } 

the main problem @ first time load data well. , when scroll list down , when reach @ last item load next data @ first time after doesnt work...

i checked monloadmorelistener become null.

so please give solution. getting irritated because of it. please me.solve problem because important me.i searched on internet didnt

thanks in advance

as see, first time create adapter = new dataadapter(); in oncreate() method , set adapter.setonloadmorelistener(new onloadmorelistener()). later in getproducts() method recreate adapter (check jsonarrayrequest->onresponse) , lose onloadmorelistener. problem suppose.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -