Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 134
Registered: ‎01-11-2011
My Device: curve

how to know scroll is done

Hi all


I am creating a field.and on navigation movement i need to download data from server.I want to do it when the navigation stopped otherwise download thread start for each scroll.Need help.

New Contributor
Posts: 4
Registered: ‎09-16-2012
My Device: Simulator
My Carrier: MTS

Re: how to know scroll is done

[ Edited ]

You should use TouchEvent.UP event in Manager.touchEvent() method.

Very simple example code (for your Manager subclass implementation):


boolean isInScroll;

boolean touchEvent(TouchEvent message){
case TouchEvent.UP:
isInScroll = false;
//start download data from server here...
case TouchEvent.MOVE:
isInScroll = true;
return super.touchEvent(message);


Just feel the sense...