hi,

I am displaying listview within activity.and for list view i am
loading data from server on scroll event.

like
public void onScroll(AbsListView view, int firstVisible, int
visibleCount,
                        int totalCount) {
                boolean loadMore = /* maybe add a padding */
                firstVisible + visibleCount >= totalCount;
                if (loadMore) {
                        if (loadMore) {

                                if (!isAlive) {
                                        isAlive = true;
                                        new BackgroundProcess().execute();
                                }
                        }
                }
        }

my problem is that when the activity loads first time onScroll method
is called by default.

is there anyway to prevent this.

regards,
hitendra gohil

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to